This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {Component} from 'react'; | |
| import { | |
| Text, | |
| StyleSheet, | |
| ScrollView, | |
| View | |
| } from 'react-native'; | |
| import {Calendar, LocaleConfig} from 'react-native-calendars'; | |
| LocaleConfig.locales['ua'] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react' | |
| import { View } from 'react-native' | |
| import { connect } from 'react-redux' | |
| import _ from 'lodash' | |
| import { | |
| searchChanged, | |
| getMovies | |
| } from '../actions' | |
| import { Header, Layout, ImageCard, Search } from '../components/uikit' | |
| import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { TouchableOpacity, TextInput, View, StyleSheet } from 'react-native' | |
| import { ifIphoneX } from 'react-native-iphone-x-helper' | |
| import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons' | |
| import { BLUE, W } from '../../../constants' | |
| const Search = ({ | |
| iconRight, | |
| onPressRight, | |
| onChangeText, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { TouchableOpacity, View, Text, StyleSheet } from 'react-native' | |
| import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons' | |
| import { ifIphoneX } from 'react-native-iphone-x-helper' | |
| import Ionicons from 'react-native-vector-icons/Ionicons' | |
| import { BLUE, W } from '../../../constants' | |
| const Header = ({ | |
| iconLeft, | |
| iconRight, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { | |
| TouchableOpacity, | |
| StyleSheet, | |
| Text | |
| } from 'react-native' | |
| import { | |
| Icon | |
| } from 'native-base' | |
| import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Наименование | react-native init | Expo | |
|---|---|---|---|
| Вы можете добавить собственные модули написанные на Java / Objective-C | Да | Нет | |
| Вес стандартного приложения Hello World | 5 мБ | 25 мБ | |
| Требуется Android Studio и XCode для запуска проектов | Да | Нет | |
| Шрифты необходимо импортировать вручную в XCode | Да | Нет | |
| Если вы хотите поделиться этим приложением вам нужно отправить весь файл (apk; ipa) | Да | Нет | |
| Предоставляет JS API из коробки (Push-Notifications; Asset Manager) | Нет | Да | |
| Вы можете использовать библиотеки которые используют собственный код в Objective-C/Java | Да | Нет | |
| Совместное использование приложения (с помощью QR-кода или ссылки) | Сложней | Легче |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { createDrawerNavigator } from 'react-navigation' | |
| //import { createBottomTabNavigator } from 'react-navigation' | |
| import MaterialIcons from 'react-native-vector-icons/MaterialIcons' | |
| //import Ionicons from 'react-native-vector-icons/Ionicons' | |
| import One from './src/screen1' | |
| import Two from './src/screen2' | |
| import Three from './src/screen3' | |
| import { BLUE } from './constants' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "parser": "babel-eslint", | |
| "plugins": [ | |
| "react", | |
| "react-native" | |
| ], | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "modules": true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { TouchableOpacity, View, Text, StyleSheet, SafeAreaView } from 'react-native' | |
| import Ionicons from 'react-native-vector-icons/Ionicons' | |
| import { w, BLUE } from '../../../constants' | |
| const Header = ({ | |
| detail, | |
| leftIcon, | |
| leftColor, | |
| headerColor, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { PureComponent } from 'react' | |
| import { TouchableOpacity, Dimensions, Image, View, Text } from 'react-native' | |
| import { Helmet } from 'react-helmet' | |
| import { Header } from '../common' | |
| import { find } from 'lodash' | |
| import { data } from './data' | |
| import './styles.css' | |
| import ArrowNext from '../ArrowNext.png' | |
| import ArrowBack from '../ArrowBack.png' | |
| import { constants } from '../../constants' |