Skip to content

Instantly share code, notes, and snippets.

{"lastUpload":"2019-10-14T20:40:42.002Z","extensionVersion":"v3.4.3"}
// Originally from
// https://github.com/eyaleizenberg/react-native-floating-label-text-input/blob/master/index.js
// It has been copied and modified because at the time of writing it would not work with React 15
// Also, as such, there are some problems with integrating it, requiring changes in the code.
'use strict';
import React from 'react'
import { StyleSheet, Text, View, TextInput, Animated } from 'react-native'
// Originally from
// https://github.com/eyaleizenberg/react-native-floating-label-text-input/blob/master/index.js
// It has been copied and modified because at the time of writing it would not work with React 15
// Also, as such, there are some problems with integrating it, requiring changes in the code.
'use strict';
import React from 'react'
import { StyleSheet, Text, View, TextInput, Animated } from 'react-native'
/*1. самый дешевый телефон с самой большой памятью и черного цвета*/
/*2. чем отличается розовый айфон о
*/
var phones = [
{model:'iPhone',
price: 5500,
color: 'black',
memory: '8GB'},
{model:'iPhone',
price: 6500,
var numbers =[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var filtered = numbers.filter(function (number) {
/*even number*/
return number % 2 === 0;
})
console.log(filtered);
var pets= ['cat', 'dog', 'rat'];
for (var i = 0; i < 3; i++ ){
pets[i] = pets[i] + 's';
// log the numbers 0 through 9
}
console.log(pets);
@Nik19872
Nik19872 / arrays.js
Created December 12, 2015 00:56
javascripting
var pizzaToppings = ["tomato sauce", "cheese", "pepperoni"];
console.log(pizzaToppings);
@Nik19872
Nik19872 / for-loop.js
Created December 12, 2015 00:54
for-loop
var total =0;
var limit = 10;
for (var i = 0; i < 10; i++ ){
total += i;
// log the numbers 0 through 9
}
console.log(total);