├── .env ├── assets ├── .gitkeep └── images │ ├── home.png │ ├── contacts.png │ ├── home@2x.png │ ├── home@3x.png │ ├── profile.png │ ├── contacts@2x.png │ ├── contacts@3x.png │ ├── profile@2x.png │ ├── profile@3x.png │ ├── home-selected.png │ ├── home-selected@2x.png │ ├── home-selected@3x.png │ ├── profile-selected.png │ ├── rn-starter-logo.png │ ├── contacts-selected.png │ ├── rn-starter-logo@2x.png │ ├── rn-starter-logo@3x.png │ ├── contacts-selected@2x.png │ ├── contacts-selected@3x.png │ ├── profile-selected@2x.png │ └── profile-selected@3x.png ├── .env.staging ├── .npmrc ├── src ├── screens │ ├── splashScreen │ │ ├── splashScreen.styles.js │ │ ├── index.js │ │ └── splashScreen.jsx │ ├── homeScreen │ │ ├── index.js │ │ ├── homeScreen.styles.js │ │ └── homeScreen.jsx │ ├── contactsScreen │ │ ├── index.js │ │ ├── contactsScreen.styles.js │ │ └── contactsScreen.jsx │ ├── profileScreen │ │ ├── index.js │ │ ├── profileScreen.styles.js │ │ └── profileScreen.jsx │ ├── signInScreen │ │ ├── index.js │ │ ├── signInScreen.styles.js │ │ └── signInScreen.jsx │ └── signUpScreen │ │ ├── index.js │ │ ├── signUpScreen.styles.js │ │ └── signUpScreen.jsx ├── i18n │ ├── index.js │ ├── locales │ │ ├── de.json │ │ └── en.json │ └── i18n.js ├── components │ ├── input │ │ ├── index.js │ │ ├── input.styles.js │ │ └── input.jsx │ ├── text │ │ ├── index.js │ │ ├── text.styles.js │ │ └── text.jsx │ ├── tabIcon │ │ ├── index.js │ │ ├── tabIcon.styles.js │ │ └── tabIcon.jsx │ ├── mainButton │ │ ├── index.js │ │ ├── mainButton.styles.js │ │ └── mainButton.jsx │ └── connectionError │ │ ├── index.js │ │ ├── connectionError.styles.js │ │ └── connectionError.jsx ├── navigation │ ├── index.js │ └── appNavigation.jsx ├── resources │ ├── user │ │ ├── user.selectors.js │ │ ├── user.constants.js │ │ ├── user.api.js │ │ ├── user.reducer.js │ │ └── user.actions.js │ ├── config.js │ ├── reducer.js │ └── store.js ├── helpers │ ├── api │ │ ├── index.js │ │ ├── api.error.js │ │ └── api.client.js │ ├── storage.js │ ├── getKeyboardType.js │ └── validate.js ├── themes │ ├── metrics.js │ ├── colors.js │ ├── images.js │ └── fonts.js ├── App.jsx └── hooks │ └── useForm.js ├── app.json ├── demo └── demo.gif ├── .env.development ├── android ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── app │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ └── AndroidManifest.xml │ │ └── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── app │ │ │ └── ReactNativeFlipper.java │ ├── proguard-rules.pro │ ├── build_defs.bzl │ ├── _BUCK │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── .eslintrc ├── ios ├── app │ ├── Images.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── starter-logo-1024.png │ │ │ ├── starter-logo-20-2x.png │ │ │ ├── starter-logo-20-3x.png │ │ │ ├── starter-logo-29-2x.png │ │ │ ├── starter-logo-29-3x.png │ │ │ ├── starter-logo-40-2x.png │ │ │ ├── starter-logo-40-3x.png │ │ │ ├── starter-logo-60-2x.png │ │ │ ├── starter-logo-60-3x.png │ │ │ └── Contents.json │ ├── AppDelegate.h │ ├── main.m │ ├── Info.plist │ ├── AppDelegate.m │ └── LaunchScreen.storyboard ├── app.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── appTests │ ├── Info.plist │ └── appTests.m ├── app-tvOSTests │ └── Info.plist ├── Podfile ├── app-tvOS │ └── Info.plist ├── app.xcodeproj │ ├── xcshareddata │ │ └── xcschemes │ │ │ ├── app.xcscheme │ │ │ └── app-tvOS.xcscheme │ └── project.pbxproj └── Podfile.lock ├── index.js ├── babel.config.js ├── __tests__ └── App-test.jsx ├── metro.config.js ├── .gitignore ├── LICENSE ├── CONTRIBUTING.md ├── .all-contributorsrc ├── package.json ├── CODE_OF_CONDUCT.md └── README.md /.env: -------------------------------------------------------------------------------- 1 | MODE=PROD 2 | -------------------------------------------------------------------------------- /assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.env.staging: -------------------------------------------------------------------------------- 1 | MODE=STAGE 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact=true 2 | -------------------------------------------------------------------------------- /src/screens/splashScreen/splashScreen.styles.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/i18n/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './i18n'; 2 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app", 3 | "displayName": "app" 4 | } 5 | -------------------------------------------------------------------------------- /src/components/input/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './input'; 2 | -------------------------------------------------------------------------------- /src/components/text/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './text'; 2 | -------------------------------------------------------------------------------- /src/components/tabIcon/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './tabIcon'; 2 | -------------------------------------------------------------------------------- /src/navigation/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './appNavigation'; 2 | -------------------------------------------------------------------------------- /src/components/mainButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './mainButton'; 2 | -------------------------------------------------------------------------------- /src/screens/homeScreen/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './homeScreen'; 2 | -------------------------------------------------------------------------------- /src/screens/contactsScreen/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './contactsScreen'; 2 | -------------------------------------------------------------------------------- /src/screens/profileScreen/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './profileScreen'; 2 | -------------------------------------------------------------------------------- /src/screens/signInScreen/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './signInScreen'; 2 | -------------------------------------------------------------------------------- /src/screens/signUpScreen/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './signUpScreen'; 2 | -------------------------------------------------------------------------------- /src/screens/splashScreen/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './splashScreen'; 2 | -------------------------------------------------------------------------------- /src/components/connectionError/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './connectionError'; 2 | -------------------------------------------------------------------------------- /demo/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/demo/demo.gif -------------------------------------------------------------------------------- /.env.development: -------------------------------------------------------------------------------- 1 | MODE=DEV 2 | ANDROID_API_URL=http://10.0.2.2:3001 3 | IOS_API_URL=http://localhost:3001 -------------------------------------------------------------------------------- /src/i18n/locales/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "no connection": "Bitte überprüfen Sie Ihre Verbindung." 3 | } 4 | -------------------------------------------------------------------------------- /assets/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/home.png -------------------------------------------------------------------------------- /src/resources/user/user.selectors.js: -------------------------------------------------------------------------------- 1 | export const getUserAuthenticated = ({ user }) => user.authenticated; 2 | -------------------------------------------------------------------------------- /assets/images/contacts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/contacts.png -------------------------------------------------------------------------------- /assets/images/home@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/home@2x.png -------------------------------------------------------------------------------- /assets/images/home@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/home@3x.png -------------------------------------------------------------------------------- /assets/images/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/profile.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | app 3 | 4 | -------------------------------------------------------------------------------- /assets/images/contacts@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/contacts@2x.png -------------------------------------------------------------------------------- /assets/images/contacts@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/contacts@3x.png -------------------------------------------------------------------------------- /assets/images/profile@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/profile@2x.png -------------------------------------------------------------------------------- /assets/images/profile@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/profile@3x.png -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "@paralect/eslint-config", 4 | "plugin:react-hooks/recommended" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /assets/images/home-selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/home-selected.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /assets/images/home-selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/home-selected@2x.png -------------------------------------------------------------------------------- /assets/images/home-selected@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/home-selected@3x.png -------------------------------------------------------------------------------- /assets/images/profile-selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/profile-selected.png -------------------------------------------------------------------------------- /assets/images/rn-starter-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/rn-starter-logo.png -------------------------------------------------------------------------------- /assets/images/contacts-selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/contacts-selected.png -------------------------------------------------------------------------------- /assets/images/rn-starter-logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/rn-starter-logo@2x.png -------------------------------------------------------------------------------- /assets/images/rn-starter-logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/rn-starter-logo@3x.png -------------------------------------------------------------------------------- /assets/images/contacts-selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/contacts-selected@2x.png -------------------------------------------------------------------------------- /assets/images/contacts-selected@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/contacts-selected@3x.png -------------------------------------------------------------------------------- /assets/images/profile-selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/profile-selected@2x.png -------------------------------------------------------------------------------- /assets/images/profile-selected@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/assets/images/profile-selected@3x.png -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/helpers/api/index.js: -------------------------------------------------------------------------------- 1 | import apiClient from './api.client'; 2 | import ApiError from './api.error'; 3 | 4 | export { apiClient, ApiError }; 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /src/components/tabIcon/tabIcon.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | export default StyleSheet.create({ 4 | tabIcon: { 5 | width: 25, 6 | }, 7 | }); 8 | -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-1024.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-20-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-20-2x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-20-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-20-3x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-29-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-29-2x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-29-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-29-3x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-40-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-40-2x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-40-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-40-3x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-60-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-60-2x.png -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-60-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paralect/react-native-starter/HEAD/ios/app/Images.xcassets/AppIcon.appiconset/starter-logo-60-3x.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/App'; 3 | import { name as appName } from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /src/resources/user/user.constants.js: -------------------------------------------------------------------------------- 1 | export const USER_AUTHENTICATED = 'USER_AUTHENTICATED'; 2 | export const USER_SIGNED_IN = 'USER_SIGNED_IN'; 3 | export const USER_LOGGED_OUT = 'USER_LOGGED_OUT'; 4 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'app' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /ios/app/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/app/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /src/screens/splashScreen/splashScreen.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, ActivityIndicator } from 'react-native'; 3 | 4 | function SplashScreen() { 5 | return ( 6 | 7 | 8 | 9 | ); 10 | } 11 | 12 | export default SplashScreen; 13 | -------------------------------------------------------------------------------- /ios/app.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/app.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = (api) => { 2 | api.cache(true); 3 | return { 4 | presets: ['module:metro-react-native-babel-preset'], 5 | plugins: [ 6 | ['module-resolver', { 7 | root: ['./src'], 8 | alias: { 9 | assets: './assets', 10 | }, 11 | }], 12 | ], 13 | }; 14 | }; 15 | -------------------------------------------------------------------------------- /src/screens/homeScreen/homeScreen.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import fonts from 'themes/fonts'; 3 | 4 | export default StyleSheet.create({ 5 | screen: { 6 | flex: 1, 7 | justifyContent: 'center', 8 | alignItems: 'center', 9 | }, 10 | text: { 11 | ...fonts.style.title, 12 | }, 13 | }); 14 | -------------------------------------------------------------------------------- /src/screens/contactsScreen/contactsScreen.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import fonts from 'themes/fonts'; 3 | 4 | export default StyleSheet.create({ 5 | screen: { 6 | flex: 1, 7 | justifyContent: 'center', 8 | alignItems: 'center', 9 | }, 10 | text: { 11 | ...fonts.style.title, 12 | }, 13 | }); 14 | -------------------------------------------------------------------------------- /src/themes/metrics.js: -------------------------------------------------------------------------------- 1 | import { Dimensions } from 'react-native'; 2 | 3 | const { width, height } = Dimensions.get('window'); 4 | 5 | const metrics = { 6 | screenHeight: width < height ? height : width, 7 | screenWidth: width < height ? width : height, 8 | headerHeight: 64, 9 | tabBarHeight: 70, 10 | }; 11 | 12 | export default metrics; 13 | -------------------------------------------------------------------------------- /__tests__/App-test.jsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | 6 | import 'react-native'; 7 | 8 | // Note: test renderer must be required after react-native. 9 | import renderer from 'react-test-renderer'; 10 | 11 | import React from 'react'; 12 | import App from '../src/App'; 13 | 14 | 15 | it('renders correctly', () => { 16 | renderer.create(); 17 | }); 18 | -------------------------------------------------------------------------------- /src/components/text/text.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | import fonts from 'themes/fonts'; 4 | import colors from 'themes/colors'; 5 | 6 | export default StyleSheet.create({ 7 | text: { 8 | ...fonts.style.text, 9 | fontFamily: fonts.type.base, 10 | color: colors.fontText, 11 | letterSpacing: 0.8, 12 | }, 13 | }); 14 | -------------------------------------------------------------------------------- /src/helpers/storage.js: -------------------------------------------------------------------------------- 1 | import AsyncStorage from '@react-native-community/async-storage'; 2 | 3 | export function getItem(key) { 4 | return AsyncStorage.getItem(key); 5 | } 6 | 7 | export function setItem(key, value) { 8 | return AsyncStorage.setItem(key, value); 9 | } 10 | 11 | export function removeItem(key) { 12 | return AsyncStorage.removeItem(key); 13 | } 14 | -------------------------------------------------------------------------------- /src/themes/colors.js: -------------------------------------------------------------------------------- 1 | const colors = { 2 | white: '#FFFFFF', 3 | orange: '#F38237', 4 | yellow: '#F7C45D', 5 | gray: '#D8D8D8', 6 | red: '#E43B30', 7 | 8 | mainTheme: '#147DFA', 9 | border: '#B5C1CF', 10 | error: '#eb4b5f', 11 | 12 | font: '#777777', 13 | fontLogo: '#009BCA', 14 | fontTitle: '#4B5363', 15 | fontText: '#69768C', 16 | }; 17 | 18 | export default colors; 19 | -------------------------------------------------------------------------------- /src/screens/profileScreen/profileScreen.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import fonts from 'themes/fonts'; 3 | 4 | export default StyleSheet.create({ 5 | screen: { 6 | flex: 1, 7 | justifyContent: 'center', 8 | alignItems: 'center', 9 | paddingHorizontal: 44, 10 | }, 11 | text: { 12 | ...fonts.style.title, 13 | marginBottom: 16, 14 | }, 15 | }); 16 | -------------------------------------------------------------------------------- /src/resources/config.js: -------------------------------------------------------------------------------- 1 | import { Platform } from 'react-native'; 2 | import Config from 'react-native-config'; 3 | 4 | const getApiUrl = () => { 5 | if (Config.MODE !== 'DEV') { 6 | return Config.API_URL; 7 | } 8 | return Platform.OS === 'android' ? Config.ANDROID_API_URL : Config.IOS_API_URL; 9 | }; 10 | 11 | export default { 12 | apiUrl: getApiUrl(), 13 | applicationId: 'app', 14 | }; 15 | -------------------------------------------------------------------------------- /src/screens/homeScreen/homeScreen.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | 4 | import Text from 'components/text'; 5 | 6 | import styles from './homeScreen.styles'; 7 | 8 | function HomeScreen() { 9 | return ( 10 | 11 | Home Screen 12 | 13 | ); 14 | } 15 | 16 | export default HomeScreen; 17 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/screens/contactsScreen/contactsScreen.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | 4 | import Text from 'components/text'; 5 | 6 | import styles from './contactsScreen.styles'; 7 | 8 | function ContactsScreen() { 9 | return ( 10 | 11 | Contacts Screen 12 | 13 | ); 14 | } 15 | 16 | export default ContactsScreen; 17 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/app/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.app; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "app"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | resolver: { 18 | sourceExts: ['jsx', 'js', 'ts', 'tsx'], 19 | }, 20 | }; 21 | -------------------------------------------------------------------------------- /src/resources/user/user.api.js: -------------------------------------------------------------------------------- 1 | import { apiClient } from 'helpers/api'; 2 | 3 | export const signUp = userData => apiClient 4 | .post('account/signup', userData); 5 | 6 | export const signIn = (email, password) => apiClient 7 | .post('account/signin', { email, password }); 8 | 9 | export const verifyEmailDev = _signupToken => apiClient 10 | .get(`account/verifyEmail/${_signupToken}`); 11 | 12 | export const signOut = () => apiClient 13 | .post('account/logout'); 14 | -------------------------------------------------------------------------------- /src/i18n/i18n.js: -------------------------------------------------------------------------------- 1 | import I18n from 'i18n-js'; 2 | import * as RNLocalize from 'react-native-localize'; 3 | 4 | import en from './locales/en.json'; 5 | import de from './locales/de.json'; 6 | 7 | const locales = RNLocalize.getLocales(); 8 | 9 | if (Array.isArray(locales)) { 10 | I18n.locale = locales[0].languageTag; 11 | } 12 | 13 | I18n.fallbacks = true; 14 | I18n.defaultLocale = 'en'; 15 | I18n.translations = { 16 | en, 17 | de, 18 | }; 19 | 20 | export default I18n; 21 | -------------------------------------------------------------------------------- /src/helpers/getKeyboardType.js: -------------------------------------------------------------------------------- 1 | export default (type) => { 2 | switch (type) { 3 | case 'email': { 4 | return 'email-address'; 5 | } 6 | case 'number': { 7 | return 'number-pad'; 8 | } 9 | case 'phone': { 10 | return 'phone-pad'; 11 | } 12 | case 'decimal': { 13 | return 'decimal-pad'; 14 | } 15 | case 'numeric': { 16 | return 'numeric'; 17 | } 18 | default: { 19 | return 'default'; 20 | } 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /src/components/tabIcon/tabIcon.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { Image } from 'react-native'; 4 | 5 | import styles from './tabIcon.styles'; 6 | 7 | function TabIcon({ source }) { 8 | return ( 9 | 14 | ); 15 | } 16 | 17 | TabIcon.propTypes = { 18 | source: PropTypes.number.isRequired, 19 | }; 20 | 21 | export default TabIcon; 22 | -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | 4 | import AppNavigation from './navigation'; 5 | import ConnectionError from './components/connectionError'; 6 | 7 | import configureStore from './resources/store'; 8 | 9 | const { store } = configureStore(); 10 | 11 | function App() { 12 | return ( 13 | 14 | 15 | 16 | 17 | ); 18 | } 19 | 20 | export default App; 21 | -------------------------------------------------------------------------------- /src/resources/reducer.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | 3 | import { USER_LOGGED_OUT } from './user/user.constants'; 4 | import user from './user/user.reducer'; 5 | 6 | const appReducer = combineReducers({ 7 | user, 8 | }); 9 | 10 | const rootReducer = (state, action) => { 11 | if (action.type === USER_LOGGED_OUT) { 12 | // eslint-disable-next-line no-param-reassign 13 | state = undefined; 14 | } 15 | return appReducer(state, action); 16 | }; 17 | 18 | export default rootReducer; 19 | -------------------------------------------------------------------------------- /src/resources/store.js: -------------------------------------------------------------------------------- 1 | /* global __DEV__ */ 2 | 3 | import { 4 | createStore, applyMiddleware, compose, 5 | } from 'redux'; 6 | import thunk from 'redux-thunk'; 7 | 8 | import reducer from './reducer'; 9 | 10 | let composeEnhancers = compose; 11 | 12 | if (__DEV__) { 13 | composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; 14 | } 15 | 16 | export default () => { 17 | const store = createStore(reducer, composeEnhancers(applyMiddleware(thunk))); 18 | return { 19 | store, 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /src/themes/images.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable global-require */ 2 | 3 | const images = { 4 | logo: require('assets/images/rn-starter-logo.png'), 5 | home: require('assets/images/home.png'), 6 | contacts: require('assets/images/contacts.png'), 7 | profile: require('assets/images/profile.png'), 8 | homeActive: require('assets/images/home-selected.png'), 9 | contactsActive: require('assets/images/contacts-selected.png'), 10 | profileActive: require('assets/images/profile-selected.png'), 11 | }; 12 | 13 | export default images; 14 | -------------------------------------------------------------------------------- /src/helpers/api/api.error.js: -------------------------------------------------------------------------------- 1 | class ApiError extends Error { 2 | data; 3 | 4 | status; 5 | 6 | constructor(data, status) { 7 | super(data); 8 | 9 | this.name = this.constructor.name; 10 | 11 | // a workaround to make `instanceof ApiError` work in ES5 with babel 12 | this.constructor = ApiError; 13 | this.__proto__ = ApiError.prototype; // eslint-disable-line 14 | 15 | this.data = data; 16 | this.status = status; 17 | } 18 | } 19 | 20 | ApiError.prototype = Error.prototype; 21 | 22 | export default ApiError; 23 | -------------------------------------------------------------------------------- /src/components/mainButton/mainButton.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | import colors from 'themes/colors'; 4 | import fonts from 'themes/fonts'; 5 | 6 | export default StyleSheet.create({ 7 | button: { 8 | width: '100%', 9 | height: 46, 10 | backgroundColor: colors.mainTheme, 11 | marginBottom: 8, 12 | borderRadius: 4, 13 | justifyContent: 'center', 14 | alignItems: 'center', 15 | }, 16 | title: { 17 | color: colors.white, 18 | fontWeight: fonts.weight.semiBold, 19 | fontSize: fonts.size.subtitle, 20 | }, 21 | }); 22 | -------------------------------------------------------------------------------- /src/components/input/input.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | import colors from 'themes/colors'; 4 | import fonts from 'themes/fonts'; 5 | 6 | export default StyleSheet.create({ 7 | inputContainer: { 8 | marginBottom: 16, 9 | width: '100%', 10 | }, 11 | input: { 12 | height: 46, 13 | paddingHorizontal: 8, 14 | borderWidth: 1, 15 | borderColor: colors.border, 16 | borderRadius: 4, 17 | }, 18 | label: {}, 19 | error: { 20 | ...fonts.style.error, 21 | position: 'absolute', 22 | bottom: -14, 23 | left: 8, 24 | }, 25 | }); 26 | -------------------------------------------------------------------------------- /src/screens/signUpScreen/signUpScreen.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | import colors from 'themes/colors'; 4 | import fonts from 'themes/fonts'; 5 | 6 | export default StyleSheet.create({ 7 | container: { 8 | flex: 1, 9 | justifyContent: 'center', 10 | paddingHorizontal: 44, 11 | }, 12 | title: { 13 | ...fonts.style.title, 14 | textAlign: 'center', 15 | marginBottom: 20, 16 | }, 17 | link: { 18 | color: colors.mainTheme, 19 | }, 20 | signinContainer: { 21 | flexDirection: 'row', 22 | width: '100%', 23 | paddingLeft: 8, 24 | }, 25 | }); 26 | -------------------------------------------------------------------------------- /src/components/connectionError/connectionError.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | export default StyleSheet.create({ 4 | connectionErrorView: { 5 | position: 'absolute', 6 | height: 60, 7 | flex: 1, 8 | backgroundColor: '#eb4b5f', 9 | width: '100%', 10 | justifyContent: 'center', 11 | alignItems: 'center', 12 | }, 13 | connectionErrorText: { 14 | color: '#ffffff', 15 | }, 16 | closeButtonText: { 17 | color: '#ffffff', 18 | fontSize: 25, 19 | lineHeight: 25, 20 | }, 21 | closeButton: { 22 | padding: 5, 23 | position: 'absolute', 24 | top: 0, 25 | right: 0, 26 | }, 27 | }); 28 | -------------------------------------------------------------------------------- /src/components/text/text.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | import React from 'react'; 3 | import { Text as RNText } from 'react-native'; 4 | 5 | import styles from './text.styles'; 6 | 7 | function Text({ children, style, ...rest }) { 8 | return ( 9 | 10 | {children} 11 | 12 | ); 13 | } 14 | 15 | Text.propTypes = { 16 | children: PropTypes.oneOfType([ 17 | PropTypes.arrayOf(PropTypes.node), 18 | PropTypes.node, 19 | ]), 20 | style: RNText.propTypes.style, 21 | }; 22 | 23 | Text.defaultProps = { 24 | children: null, 25 | style: null, 26 | }; 27 | 28 | export default Text; 29 | -------------------------------------------------------------------------------- /src/resources/user/user.reducer.js: -------------------------------------------------------------------------------- 1 | import { 2 | USER_AUTHENTICATED, 3 | USER_SIGNED_IN, 4 | USER_LOGGED_OUT, 5 | } from './user.constants'; 6 | 7 | export default (state = {}, action) => { 8 | switch (action.type) { 9 | case USER_SIGNED_IN: 10 | return { 11 | ...state, 12 | ...action.userInfo, 13 | authenticated: true, 14 | }; 15 | case USER_AUTHENTICATED: 16 | return { 17 | ...state, 18 | authenticated: true, 19 | }; 20 | case USER_LOGGED_OUT: 21 | return { 22 | ...state, 23 | authenticated: false, 24 | }; 25 | default: 26 | return state; 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /src/components/mainButton/mainButton.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | import React from 'react'; 3 | import { TouchableOpacity } from 'react-native'; 4 | 5 | import Text from 'components/text'; 6 | 7 | import styles from './mainButton.styles'; 8 | 9 | function MainButton({ title, onPress }) { 10 | return ( 11 | 15 | {title} 16 | 17 | ); 18 | } 19 | 20 | MainButton.propTypes = { 21 | title: PropTypes.string.isRequired, 22 | onPress: PropTypes.func.isRequired, 23 | }; 24 | 25 | export default MainButton; 26 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /src/screens/signInScreen/signInScreen.styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import colors from 'themes/colors'; 3 | import fonts from 'themes/fonts'; 4 | 5 | export default StyleSheet.create({ 6 | container: { 7 | flex: 1, 8 | justifyContent: 'center', 9 | alignItems: 'center', 10 | paddingHorizontal: 44, 11 | }, 12 | logo: { 13 | marginBottom: 8, 14 | }, 15 | logoText: { 16 | marginBottom: 60, 17 | color: colors.fontLogo, 18 | fontSize: 18, 19 | fontWeight: '500', 20 | }, 21 | title: { 22 | ...fonts.style.title, 23 | textAlign: 'center', 24 | marginBottom: 24, 25 | }, 26 | link: { 27 | color: colors.mainTheme, 28 | }, 29 | signupContainer: { 30 | flexDirection: 'row', 31 | width: '100%', 32 | paddingLeft: 8, 33 | }, 34 | }); 35 | -------------------------------------------------------------------------------- /ios/appTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/app-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/i18n/locales/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "no connection": "Please check your connection.", 3 | "example": "Open up App.js to start working on your app!", 4 | 5 | "signInScreen": { 6 | "title": "Sign in with existing account", 7 | "noAccount": "Do not have an account?", 8 | "signUp": "Sign Up", 9 | }, 10 | 11 | "signUpScreen": { 12 | "title": "Create account now!", 13 | "haveAccount": "Already have an account?", 14 | "signIn": "Sign In" 15 | }, 16 | 17 | "errorMessage": { 18 | "firstName/empty": "First name field is empty", 19 | "lastName/empty": "Last name field is empty", 20 | "email/empty": "Email field is empty", 21 | "password/empty": "Password field is empty", 22 | "confirmPassword/empty": "Confirm password field is empty", 23 | "confirmPassword/match": "Confirm password and password do not match" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/screens/profileScreen/profileScreen.jsx: -------------------------------------------------------------------------------- 1 | import React, { useCallback } from 'react'; 2 | import { useDispatch } from 'react-redux'; 3 | import { View } from 'react-native'; 4 | 5 | import * as userActions from 'resources/user/user.actions'; 6 | import MainButton from 'components/mainButton'; 7 | import Text from 'components/text'; 8 | 9 | import styles from './profileScreen.styles'; 10 | 11 | function ProfileScreen() { 12 | const dispatch = useDispatch(); 13 | 14 | const onSignOutPress = useCallback(() => { 15 | dispatch(userActions.signOut()); 16 | }, [dispatch]); 17 | 18 | return ( 19 | 20 | Profile Screen 21 | 25 | 26 | ); 27 | } 28 | 29 | export default ProfileScreen; 30 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'app' do 7 | config = use_native_modules! 8 | 9 | use_react_native!(:path => config["reactNativePath"]) 10 | 11 | target 'appTests' do 12 | inherit! :complete 13 | # Pods for testing 14 | end 15 | 16 | # Enables Flipper. 17 | # 18 | # Note that if you have use_frameworks! enabled, Flipper will not work and 19 | # you should disable these next few lines. 20 | use_flipper! 21 | post_install do |installer| 22 | flipper_post_install(installer) 23 | end 24 | end 25 | 26 | target 'app-tvOS' do 27 | # Pods for app-tvOS 28 | 29 | target 'app-tvOSTests' do 30 | inherit! :search_paths 31 | # Pods for testing 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /src/themes/fonts.js: -------------------------------------------------------------------------------- 1 | import colors from './colors'; 2 | 3 | const type = { 4 | base: 'Avenir', 5 | }; 6 | 7 | const size = { 8 | header: 28, 9 | title: 21, 10 | subtitle: 16, 11 | regular: 14, 12 | medium: 13, 13 | small: 12, 14 | tiny: 10, 15 | }; 16 | 17 | const weight = { 18 | regular: '400', 19 | madium: '500', 20 | semiBold: '600', 21 | bold: '700', 22 | extraBold: '800', 23 | }; 24 | 25 | const style = { 26 | header: { 27 | fontSize: size.header, 28 | fontWeight: weight.bold, 29 | color: colors.headerFont, 30 | }, 31 | title: { 32 | fontSize: size.title, 33 | fontWeight: weight.semiBold, 34 | color: colors.fontTitle, 35 | }, 36 | subtitle: { 37 | fontSize: size.subtitle, 38 | fontWeight: weight.semiBold, 39 | }, 40 | text: { 41 | fontSize: size.regular, 42 | fontWeight: weight.regular, 43 | }, 44 | error: { 45 | fontSize: size.tiny, 46 | color: colors.error, 47 | }, 48 | }; 49 | 50 | export default { 51 | type, 52 | size, 53 | weight, 54 | style, 55 | }; 56 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Pods 26 | ios/Pods 27 | 28 | # Android/IntelliJ 29 | # 30 | build/ 31 | android/app/release/ 32 | .idea 33 | .gradle 34 | local.properties 35 | *.iml 36 | bin/ 37 | 38 | # node.js 39 | # 40 | node_modules 41 | npm-debug.log 42 | yarn-error.log 43 | 44 | # BUCK 45 | buck-out/ 46 | \.buckd/ 47 | *.keystore 48 | 49 | # fastlane 50 | # 51 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 52 | # screenshots whenever they are needed. 53 | # For more information about the recommended setup visit: 54 | # https://docs.fastlane.tools/best-practices/source-control/ 55 | 56 | */fastlane/report.xml 57 | */fastlane/Preview.html 58 | */fastlane/screenshots 59 | 60 | # Bundle artifact 61 | *.jsbundle 62 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017-present, Paralect LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.2" 6 | minSdkVersion = 16 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.5.3") 16 | // NOTE: Do not place your application dependencies here; they belong 17 | // in the individual module build.gradle files 18 | } 19 | } 20 | 21 | allprojects { 22 | repositories { 23 | mavenLocal() 24 | maven { 25 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 26 | url("$rootDir/../node_modules/react-native/android") 27 | } 28 | maven { 29 | // Android JSC is installed from npm 30 | url("$rootDir/../node_modules/jsc-android/dist") 31 | } 32 | 33 | google() 34 | jcenter() 35 | maven { url 'https://www.jitpack.io' } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/hooks/useForm.js: -------------------------------------------------------------------------------- 1 | import { useState, useCallback } from 'react'; 2 | import { containErrors } from 'helpers/validate'; 3 | 4 | const useForm = (defaultValues, handleSubmit, validateForm) => { 5 | const [values, setValues] = useState(defaultValues); 6 | const [errors, setErrors] = useState({}); 7 | 8 | const onChange = useCallback(field => (value) => { 9 | const newValues = { 10 | ...values, 11 | [field]: value, 12 | }; 13 | 14 | setValues(newValues); 15 | }, [values]); 16 | 17 | const onSubmit = useCallback(async () => { 18 | let validationErrors = {}; 19 | if (validateForm) { 20 | validationErrors = validateForm(values); 21 | } 22 | 23 | if (containErrors(validationErrors)) { 24 | setErrors(validationErrors); 25 | } else { 26 | try { 27 | await handleSubmit(values); 28 | } catch (serverErrors) { 29 | setErrors(serverErrors); 30 | } 31 | } 32 | }, [values, handleSubmit, validateForm]); 33 | 34 | const setFocus = useCallback(inputRef => () => { 35 | if (inputRef.current) { 36 | inputRef.current.focus(); 37 | } 38 | }, []); 39 | 40 | const form = { values, errors }; 41 | 42 | return [form, onChange, onSubmit, setFocus]; 43 | }; 44 | 45 | export default useForm; 46 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.54.0 29 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # CONTRIBUTING 2 | 3 | Contributions are always welcome, no matter how large or small. Before contributing, 4 | please read the [code of conduct](CODE_OF_CONDUCT.md). 5 | 6 | ## Pull Requests 7 | 8 | We actively welcome your pull requests. 9 | 10 | 1. Fork the repo and create your branch from `master`. 11 | 2. If you've added code that should be tested, add tests. 12 | 3. If you've changed APIs, update the documentation. 13 | 4. Ensure the test suite passes. 14 | 5. Make sure your code lints. 15 | 6. PR's must be rebased before merge (feel free to ask for help) 16 | 7. You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you. 17 | 18 | ## Add yourself as a contributor 19 | 20 | This project follows the [all contributors](https://github.com/kentcdodds/all-contributors) specification. To add yourself to the table of contributors on the README.md, 21 | please use the automated script as part of your PR: 22 | 23 | ```console 24 | npm run add-contributor 25 | ``` 26 | 27 | Follow the prompt. If you've already added yourself to the list and are making a 28 | new type of contribution, you can run it again and select the added contribution 29 | type. 30 | 31 | ## License 32 | 33 | By contributing to Paralect Ship, you agree that your contributions will be licensed 34 | under its [MIT license](LICENSE). 35 | -------------------------------------------------------------------------------- /src/components/connectionError/connectionError.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState, memo } from 'react'; 2 | import { View, TouchableOpacity } from 'react-native'; 3 | import { useNetInfo } from '@react-native-community/netinfo'; 4 | import PropTypes from 'prop-types'; 5 | 6 | import Text from 'components/text'; 7 | 8 | import i18n from 'i18n'; 9 | import styles from './connectionError.styles'; 10 | 11 | function ConnectionError({ isClosable }) { 12 | const [errorText, setErrorText] = useState(null); 13 | const netInfo = useNetInfo(); 14 | 15 | useEffect(() => { 16 | if (netInfo.isConnected) { 17 | setErrorText(null); 18 | } else { 19 | setErrorText(i18n.t('no connection')); 20 | } 21 | }, [netInfo]); 22 | 23 | if (!errorText) { 24 | return null; 25 | } 26 | 27 | return ( 28 | 29 | 30 | {errorText} 31 | 32 | {isClosable && ( 33 | setErrorText(null)} 36 | > 37 | 38 | × 39 | 40 | 41 | )} 42 | 43 | ); 44 | } 45 | 46 | ConnectionError.propTypes = { 47 | isClosable: PropTypes.bool, 48 | }; 49 | 50 | ConnectionError.defaultProps = { 51 | isClosable: true, 52 | }; 53 | 54 | export default memo(ConnectionError); 55 | -------------------------------------------------------------------------------- /android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.app", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.app", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /ios/app/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "starter-logo-20-2x.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "starter-logo-20-3x.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "starter-logo-29-2x.png", 17 | "idiom" : "iphone", 18 | "scale" : "2x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "starter-logo-29-3x.png", 23 | "idiom" : "iphone", 24 | "scale" : "3x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "starter-logo-40-2x.png", 29 | "idiom" : "iphone", 30 | "scale" : "2x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "filename" : "starter-logo-40-3x.png", 35 | "idiom" : "iphone", 36 | "scale" : "3x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "starter-logo-60-2x.png", 41 | "idiom" : "iphone", 42 | "scale" : "2x", 43 | "size" : "60x60" 44 | }, 45 | { 46 | "filename" : "starter-logo-60-3x.png", 47 | "idiom" : "iphone", 48 | "scale" : "3x", 49 | "size" : "60x60" 50 | }, 51 | { 52 | "filename" : "starter-logo-1024.png", 53 | "idiom" : "ios-marketing", 54 | "scale" : "1x", 55 | "size" : "1024x1024" 56 | } 57 | ], 58 | "info" : { 59 | "author" : "xcode", 60 | "version" : 1 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /.all-contributorsrc: -------------------------------------------------------------------------------- 1 | { 2 | "projectName": "react-native-starter", 3 | "projectOwner": "paralect", 4 | "repoType": "github", 5 | "repoHost": "https://github.com", 6 | "files": [ 7 | "README.md" 8 | ], 9 | "imageSize": 100, 10 | "commit": false, 11 | "commitConvention": "eslint", 12 | "contributors": [ 13 | { 14 | "login": "SobakaSlava", 15 | "name": "SobakaSlava", 16 | "avatar_url": "https://avatars1.githubusercontent.com/u/23057064?v=4", 17 | "profile": "https://github.com/SobakaSlava", 18 | "contributions": [ 19 | "code", 20 | "doc", 21 | "ideas" 22 | ] 23 | }, 24 | { 25 | "login": "arlovaalina", 26 | "name": "arlovaalina", 27 | "avatar_url": "https://avatars2.githubusercontent.com/u/29101647?v=4", 28 | "profile": "https://github.com/arlovaalina", 29 | "contributions": [ 30 | "code", 31 | "ideas" 32 | ] 33 | }, 34 | { 35 | "login": "IharKrasnik", 36 | "name": "Ihar", 37 | "avatar_url": "https://avatars3.githubusercontent.com/u/2302873?v=4", 38 | "profile": "https://github.com/IharKrasnik", 39 | "contributions": [ 40 | "ideas", 41 | "review" 42 | ] 43 | }, 44 | { 45 | "login": "hovoodd", 46 | "name": "hovoodd", 47 | "avatar_url": "https://avatars1.githubusercontent.com/u/23063254?v=4", 48 | "profile": "https://github.com/hovoodd", 49 | "contributions": [ 50 | "ideas", 51 | "review" 52 | ] 53 | } 54 | ], 55 | "contributorsPerLine": 7 56 | } 57 | -------------------------------------------------------------------------------- /ios/app-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /src/components/input/input.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | import React from 'react'; 3 | import { TextInput, View } from 'react-native'; 4 | import getKeyboardType from 'helpers/getKeyboardType'; 5 | 6 | import Text from 'components/text'; 7 | 8 | import styles from './input.styles'; 9 | 10 | function Input({ 11 | type, 12 | label, 13 | onChange, 14 | placeholder, 15 | blurOnSubmit, 16 | onSubmitEditing, 17 | value, 18 | error, 19 | returnKeyType, 20 | getRef, 21 | }) { 22 | return ( 23 | 24 | {label && {label}} 25 | 38 | {error && {error}} 39 | 40 | ); 41 | } 42 | 43 | Input.propTypes = { 44 | type: PropTypes.string, 45 | label: PropTypes.string, 46 | placeholder: PropTypes.string, 47 | onChange: PropTypes.func.isRequired, 48 | value: PropTypes.string, 49 | error: PropTypes.string, 50 | returnKeyType: PropTypes.string, 51 | getRef: PropTypes.shape(), 52 | blurOnSubmit: PropTypes.bool, 53 | onSubmitEditing: PropTypes.func, 54 | }; 55 | 56 | Input.defaultProps = { 57 | type: 'none', 58 | label: null, 59 | value: '', 60 | placeholder: '', 61 | error: null, 62 | returnKeyType: 'done', 63 | getRef: { current: null }, 64 | blurOnSubmit: true, 65 | onSubmitEditing: null, 66 | }; 67 | 68 | export default Input; 69 | -------------------------------------------------------------------------------- /ios/appTests/appTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native" 9 | 10 | @interface appTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation appTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /src/resources/user/user.actions.js: -------------------------------------------------------------------------------- 1 | import { Alert } from 'react-native'; 2 | import config from 'resources/config'; 3 | 4 | import ApiError from 'helpers/api/api.error'; 5 | import { setItem, removeItem } from 'helpers/storage'; 6 | 7 | import { 8 | USER_SIGNED_IN, 9 | USER_LOGGED_OUT, 10 | } from './user.constants'; 11 | 12 | import * as api from './user.api'; 13 | 14 | export const signUp = userData => async () => { 15 | try { 16 | const payload = await api.signUp(userData); 17 | return payload; 18 | } catch (error) { 19 | if (error.status === 400) { 20 | throw new ApiError(error.data, error.status); 21 | } else { 22 | Alert.alert( 23 | 'SignUp Failed', 24 | 'Sorry, something went wrong.', 25 | [{ text: 'OK', style: 'cancel' }], 26 | ); 27 | throw new ApiError({ errors: [] }, error.status); 28 | } 29 | } 30 | }; 31 | 32 | export const signIn = (email, password) => async (dispatch) => { 33 | try { 34 | const userInfo = await api.signIn(email, password); 35 | config.token = userInfo.accessToken; 36 | await setItem('token', userInfo.accessToken); 37 | dispatch({ type: USER_SIGNED_IN, userInfo }); 38 | } catch (error) { 39 | if (error.status === 400) { 40 | throw new ApiError(error.data, error.status); 41 | } else { 42 | Alert.alert( 43 | 'SignIn Failed', 44 | 'Sorry, something went wrong.', 45 | [{ text: 'OK', style: 'cancel' }], 46 | ); 47 | throw new ApiError({ errors: [] }, error.status); 48 | } 49 | } 50 | }; 51 | 52 | export const signOut = () => async (dispatch) => { 53 | try { 54 | await api.signOut(); 55 | config.token = null; 56 | await removeItem('token'); 57 | dispatch({ type: USER_LOGGED_OUT }); 58 | } catch (error) { 59 | Alert.alert( 60 | 'SignOut Failed', 61 | 'Sorry, something went wrong.', 62 | [{ text: 'OK', style: 'cancel' }], 63 | ); 64 | } 65 | }; 66 | 67 | export const verifyEmailDev = _signupToken => async () => { 68 | await api.verifyEmailDev(_signupToken); 69 | }; 70 | -------------------------------------------------------------------------------- /src/helpers/validate.js: -------------------------------------------------------------------------------- 1 | import i18n from 'i18n'; 2 | 3 | const firstNameValidator = (value) => { 4 | const errors = []; 5 | if (!value || value.trim() === '') { 6 | errors.push(i18n.t('errorMessage.firstName/empty')); 7 | } 8 | return errors; 9 | }; 10 | 11 | const lastNameValidator = (value) => { 12 | const errors = []; 13 | if (!value || value.trim() === '') { 14 | errors.push(i18n.t('errorMessage.lastName/empty')); 15 | } 16 | return errors; 17 | }; 18 | 19 | const emailValidator = (value) => { 20 | const errors = []; 21 | if (!value || value.trim() === '') { 22 | errors.push(i18n.t('errorMessage.email/empty')); 23 | } 24 | return errors; 25 | }; 26 | 27 | const passwordValidator = (value) => { 28 | const errors = []; 29 | if (!value || value.trim() === '') { 30 | errors.push(i18n.t('errorMessage.password/empty')); 31 | } 32 | return errors; 33 | }; 34 | 35 | const confirmPasswordValidator = ({ confirmPassword, password }) => { 36 | const errors = []; 37 | if (!confirmPassword || confirmPassword.trim() === '') { 38 | errors.push(i18n.t('errorMessage.confirmPassword/empty')); 39 | } 40 | if (confirmPassword !== password) { 41 | errors.push(i18n.t('errorMessage.confirmPassword/match')); 42 | } 43 | return errors; 44 | }; 45 | 46 | export const validate = (value, key) => { 47 | switch (key) { 48 | case 'firstName': 49 | return firstNameValidator(value); 50 | case 'lastName': 51 | return lastNameValidator(value); 52 | case 'email': 53 | return emailValidator(value); 54 | case 'password': 55 | return passwordValidator(value); 56 | case 'confirmPassword': 57 | return confirmPasswordValidator(value); 58 | default: 59 | return []; 60 | } 61 | }; 62 | 63 | export const getServerErrors = (commonErrors, key) => { 64 | return commonErrors 65 | .filter(error => Object.keys(error)[0] === key) 66 | .map(error => error[key]); 67 | }; 68 | 69 | export const containErrors = (errors) => { 70 | return Boolean(Object.keys(errors) 71 | .filter(key => errors[key].length).length); 72 | }; 73 | -------------------------------------------------------------------------------- /ios/app/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | app 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleURLTypes 24 | 25 | 26 | CFBundleTypeRole 27 | Editor 28 | CFBundleURLName 29 | app 30 | CFBundleURLSchemes 31 | 32 | app 33 | 34 | 35 | 36 | CFBundleVersion 37 | 1 38 | LSRequiresIPhoneOS 39 | 40 | NSAppTransportSecurity 41 | 42 | NSAllowsArbitraryLoads 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | NSLocationWhenInUseUsageDescription 54 | 55 | UILaunchStoryboardName 56 | LaunchScreen 57 | UIRequiredDeviceCapabilities 58 | 59 | armv7 60 | 61 | UISupportedInterfaceOrientations 62 | 63 | UIInterfaceOrientationPortrait 64 | UIInterfaceOrientationLandscapeLeft 65 | UIInterfaceOrientationLandscapeRight 66 | 67 | UIViewControllerBasedStatusBarAppearance 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-starter", 3 | "version": "0.0.1", 4 | "description": "React-native starter", 5 | "main": "src/App.jsx", 6 | "private": false, 7 | "author": "Paralect", 8 | "license": "MIT", 9 | "keywords": [ 10 | "react-native", 11 | "paralect" 12 | ], 13 | "scripts": { 14 | "android": "react-native run-android", 15 | "ios": "react-native run-ios", 16 | "start": "react-native start", 17 | "eslint": "eslint --ext js --ext jsx .", 18 | "add-contributor": "all-contributors add", 19 | "generate-contributors": "all-contributors generate" 20 | }, 21 | "dependencies": { 22 | "@react-native-community/async-storage": "1.10.0", 23 | "@react-native-community/masked-view": "0.1.10", 24 | "@react-native-community/netinfo": "5.9.7", 25 | "@react-navigation/bottom-tabs": "5.11.1", 26 | "@react-navigation/native": "5.8.9", 27 | "@react-navigation/stack": "5.12.6", 28 | "axios": "0.21.0", 29 | "i18n-js": "3.8.0", 30 | "prop-types": "15.7.2", 31 | "react": "16.13.1", 32 | "react-native": "0.63.3", 33 | "react-native-config": "1.4.1", 34 | "react-native-gesture-handler": "1.8.0", 35 | "react-native-localize": "2.0.0", 36 | "react-native-reanimated": "1.13.2", 37 | "react-native-safe-area-context": "3.1.9", 38 | "react-native-screens": "2.15.0", 39 | "react-redux": "7.2.2", 40 | "redux": "4.0.5", 41 | "redux-thunk": "2.3.0" 42 | }, 43 | "devDependencies": { 44 | "@babel/core": "7.12.3", 45 | "@babel/runtime": "7.12.5", 46 | "@paralect/eslint-config": "1.1.0", 47 | "all-contributors-cli": "6.19.0", 48 | "babel-eslint": "10.1.0", 49 | "babel-jest": "26.6.3", 50 | "babel-plugin-module-resolver": "4.0.0", 51 | "eslint": "7.13.0", 52 | "eslint-plugin-import": "2.22.1", 53 | "eslint-plugin-jsx-a11y": "6.4.1", 54 | "eslint-plugin-react": "7.21.5", 55 | "eslint-plugin-react-hooks": "4.2.0", 56 | "jest": "26.6.3", 57 | "metro-react-native-babel-preset": "0.64.0", 58 | "react-test-renderer": "17.0.1" 59 | }, 60 | "jest": { 61 | "preset": "react-native" 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/helpers/api/api.client.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | import config from 'resources/config'; 4 | 5 | import ApiError from './api.error'; 6 | 7 | // Do not throw errors on 'bad' server response codes 8 | axios.interceptors.response.use( 9 | axiosConfig => axiosConfig, 10 | error => error.response || {}, 11 | ); 12 | 13 | const generalError = { 14 | _global: ['Unexpected error occurred.'], 15 | }; 16 | 17 | const throwApiError = ({ data = {}, status = 500 }) => { 18 | throw new ApiError(data, status); 19 | }; 20 | 21 | const httpRequest = method => async (url, data) => { 22 | let urlWithSlash = url; 23 | 24 | if (urlWithSlash[0] !== '/') { 25 | urlWithSlash = `/${urlWithSlash}`; 26 | } 27 | const options = { 28 | headers: { 29 | Authorization: `Bearer ${config.token}`, 30 | 'X-Application-ID': config.applicationId, 31 | }, 32 | method, 33 | url: `${config.apiUrl}${urlWithSlash}`, 34 | }; 35 | 36 | if (data) { 37 | if (data.blob) { 38 | options.responseType = 'blob'; 39 | } 40 | 41 | if (method === 'get') { 42 | options.params = data; 43 | } else { 44 | options.data = data; 45 | } 46 | } 47 | 48 | const response = await axios(options); 49 | if (!response) { 50 | throwApiError({ 51 | data: { errors: generalError }, 52 | status: 500, 53 | }); 54 | return null; 55 | } 56 | 57 | response.data = response.data || {}; 58 | response.status = response.status || 500; 59 | 60 | if (response.status >= 200 && response.status < 300) { 61 | return response.data; 62 | } 63 | if (response.status === 400) { 64 | throwApiError(response); 65 | } 66 | 67 | response.data.errors = response.data.errors || generalError; 68 | throwApiError(response); 69 | return null; 70 | }; 71 | 72 | export const getRequest = httpRequest('get'); 73 | export const postRequest = httpRequest('post'); 74 | export const putRequest = httpRequest('put'); 75 | export const deleteRequest = httpRequest('delete'); 76 | 77 | const apiClient = { 78 | get: getRequest, 79 | post: postRequest, 80 | put: putRequest, 81 | delete: deleteRequest, 82 | }; 83 | 84 | export default apiClient; 85 | -------------------------------------------------------------------------------- /ios/app/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | 8 | #ifdef FB_SONARKIT_ENABLED 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | 16 | static void InitializeFlipper(UIApplication *application) { 17 | FlipperClient *client = [FlipperClient sharedClient]; 18 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 19 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 20 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 21 | [client addPlugin:[FlipperKitReactPlugin new]]; 22 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 23 | [client start]; 24 | } 25 | #endif 26 | 27 | @implementation AppDelegate 28 | 29 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 30 | { 31 | #ifdef FB_SONARKIT_ENABLED 32 | InitializeFlipper(application); 33 | #endif 34 | 35 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 36 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 37 | moduleName:@"app" 38 | initialProperties:nil]; 39 | 40 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 41 | 42 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 43 | UIViewController *rootViewController = [UIViewController new]; 44 | rootViewController.view = rootView; 45 | self.window.rootViewController = rootViewController; 46 | [self.window makeKeyAndVisible]; 47 | return YES; 48 | } 49 | 50 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 51 | { 52 | #if DEBUG 53 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 54 | #else 55 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 56 | #endif 57 | } 58 | 59 | - (BOOL)application:(UIApplication *)application 60 | openURL:(NSURL *)url 61 | options:(NSDictionary *)options 62 | { 63 | return [RCTLinkingManager application:application openURL:url options:options]; 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/app/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.app; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 48 | } 49 | 50 | /** 51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 53 | * 54 | * @param context 55 | * @param reactInstanceManager 56 | */ 57 | private static void initializeFlipper( 58 | Context context, ReactInstanceManager reactInstanceManager) { 59 | if (BuildConfig.DEBUG) { 60 | try { 61 | /* 62 | We use reflection here to pick up the class that initializes Flipper, 63 | since Flipper library is not available in release mode 64 | */ 65 | Class aClass = Class.forName("com.app.ReactNativeFlipper"); 66 | aClass 67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 68 | .invoke(null, context, reactInstanceManager); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/screens/signInScreen/signInScreen.jsx: -------------------------------------------------------------------------------- 1 | import React, { useRef, useCallback } from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { View, Image } from 'react-native'; 4 | import { useDispatch } from 'react-redux'; 5 | 6 | import i18n from 'i18n'; 7 | import { validate, getServerErrors } from 'helpers/validate'; 8 | import useForm from 'hooks/useForm'; 9 | 10 | import * as userActions from 'resources/user/user.actions'; 11 | 12 | import Input from 'components/input'; 13 | import Text from 'components/text'; 14 | import MainButton from 'components/mainButton'; 15 | 16 | import images from 'themes/images'; 17 | import styles from './signInScreen.styles'; 18 | 19 | function SignInScreen({ navigation }) { 20 | const dispatch = useDispatch(); 21 | const passwordInput = useRef(null); 22 | 23 | const onSignIn = useCallback(async (values) => { 24 | try { 25 | await dispatch(userActions.signIn(values.email, values.password)); 26 | } catch ({ data }) { 27 | const { errors } = data; 28 | const error = { 29 | email: getServerErrors(errors, 'email'), 30 | password: getServerErrors(errors, 'password'), 31 | }; 32 | throw error; 33 | } 34 | }, [dispatch]); 35 | 36 | const validateForm = useCallback((values) => { 37 | const validationErrors = { 38 | email: validate(values.email, 'email'), 39 | password: validate(values.password, 'password'), 40 | }; 41 | return validationErrors; 42 | }, []); 43 | 44 | const [form, onChange, onSubmit, setFocus] = useForm({}, onSignIn, validateForm); 45 | 46 | const onSignUp = useCallback(() => { 47 | navigation.navigate('SignUp'); 48 | }, [navigation]); 49 | 50 | return ( 51 | 52 | 57 | React Native starter 58 | {i18n.t('signInScreen.title')} 59 | 69 | 77 | 81 | 82 | 83 | {i18n.t('signInScreen.noAccount')} 84 |   85 | 86 | 90 | {i18n.t('signInScreen.signUp')} 91 | 92 | 93 | 94 | ); 95 | } 96 | 97 | SignInScreen.propTypes = { 98 | navigation: PropTypes.shape({ 99 | navigate: PropTypes.func.isRequired, 100 | }).isRequired, 101 | }; 102 | 103 | export default SignInScreen; 104 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | nationality, personal appearance, race, religion, or sexual identity and 10 | orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at andrew@paralect.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at [http://contributor-covenant.org/version/1/4][version] 72 | 73 | [homepage]: http://contributor-covenant.org 74 | [version]: http://contributor-covenant.org/version/1/4/ 75 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/app/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.app; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /src/navigation/appNavigation.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState, useCallback } from 'react'; 2 | import { useDispatch, useSelector } from 'react-redux'; 3 | import { NavigationContainer } from '@react-navigation/native'; 4 | import { createStackNavigator } from '@react-navigation/stack'; 5 | import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; 6 | 7 | import SplashScreen from 'screens/splashScreen'; 8 | import HomeScreen from 'screens/homeScreen'; 9 | import ContactsScreen from 'screens/contactsScreen'; 10 | import ProfileScreen from 'screens/profileScreen'; 11 | import SignInScreen from 'screens/signInScreen'; 12 | import SignUpScreen from 'screens/signUpScreen'; 13 | 14 | import TabIcon from 'components/tabIcon'; 15 | 16 | import { USER_AUTHENTICATED } from 'resources/user/user.constants'; 17 | import * as userSelectors from 'resources/user/user.selectors'; 18 | 19 | import { getItem } from 'helpers/storage'; 20 | import config from 'resources/config'; 21 | 22 | import images from 'themes/images'; 23 | 24 | const prefix = `${config.applicationId}://`; 25 | 26 | const Tab = createBottomTabNavigator(); 27 | const Stack = createStackNavigator(); 28 | 29 | const tabBarOptions = { 30 | keyboardHidesTabBar: true, 31 | }; 32 | 33 | const tabs = [ 34 | { 35 | id: 1, 36 | title: 'Home', 37 | component: HomeScreen, 38 | tabIcon: images.home, 39 | activeTabIcon: images.homeActive, 40 | }, 41 | { 42 | id: 2, 43 | title: 'Contacts', 44 | component: ContactsScreen, 45 | tabIcon: images.contacts, 46 | activeTabIcon: images.contactsActive, 47 | }, 48 | { 49 | id: 3, 50 | title: 'Profile', 51 | component: ProfileScreen, 52 | tabIcon: images.profile, 53 | activeTabIcon: images.profileActive, 54 | }, 55 | ]; 56 | 57 | const AppNavigation = () => { 58 | const dispatch = useDispatch(); 59 | const [isLoading, setIsLoading] = useState(true); 60 | const userAuthenticated = useSelector(userSelectors.getUserAuthenticated); 61 | 62 | const getToken = useCallback(async () => { 63 | const token = await getItem('token'); 64 | config.token = token; 65 | setIsLoading(false); 66 | if (token) { 67 | dispatch({ type: USER_AUTHENTICATED }); 68 | } 69 | }, [dispatch]); 70 | 71 | useEffect(() => { 72 | getToken(); 73 | }, [getToken]); 74 | 75 | if (isLoading) { 76 | return ( 77 | 78 | ); 79 | } 80 | 81 | return ( 82 | 83 | {userAuthenticated 84 | ? ( 85 | 86 | {tabs.map(tab => ( 87 | ( 93 | 94 | ), 95 | }} 96 | /> 97 | ))} 98 | 99 | ) 100 | : ( 101 | 102 | 103 | 104 | 105 | ) 106 | } 107 | 108 | ); 109 | }; 110 | 111 | export default AppNavigation; 112 | -------------------------------------------------------------------------------- /ios/app.xcodeproj/xcshareddata/xcschemes/app.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/app.xcodeproj/xcshareddata/xcschemes/app-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/screens/signUpScreen/signUpScreen.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | import { View } from 'react-native'; 3 | import React, { useState, useRef, useCallback } from 'react'; 4 | import { useDispatch } from 'react-redux'; 5 | 6 | import i18n from 'i18n'; 7 | import { validate, getServerErrors } from 'helpers/validate'; 8 | import useForm from 'hooks/useForm'; 9 | 10 | import * as userActions from 'resources/user/user.actions'; 11 | 12 | import Input from 'components/input'; 13 | import Text from 'components/text'; 14 | import MainButton from 'components/mainButton'; 15 | 16 | import styles from './signUpScreen.styles'; 17 | 18 | function SignUpScreen({ navigation }) { 19 | const dispatch = useDispatch(); 20 | 21 | const [signupToken, setSignupToken] = useState(null); 22 | const lastNameInput = useRef(null); 23 | const emailInput = useRef(null); 24 | const passwordInput = useRef(null); 25 | const confirmPasswordInput = useRef(null); 26 | 27 | const onSignUp = useCallback(async (values) => { 28 | try { 29 | const userData = { 30 | firstName: values.firstName, 31 | lastName: values.lastName, 32 | email: values.email, 33 | password: values.password, 34 | }; 35 | const result = await dispatch(userActions.signUp(userData)); 36 | setSignupToken(result.signupToken); 37 | } catch ({ data }) { 38 | const { errors } = data; 39 | const error = { 40 | email: getServerErrors(errors, 'email'), 41 | password: getServerErrors(errors, 'password'), 42 | }; 43 | throw error; 44 | } 45 | }, [dispatch]); 46 | 47 | const validateForm = useCallback((values) => { 48 | const validationErrors = { 49 | firstName: validate(values.firstName, 'firstName'), 50 | lastName: validate(values.lastName, 'lastName'), 51 | email: validate(values.email, 'email'), 52 | password: validate(values.password, 'password'), 53 | confirmPassword: validate({ 54 | confirmPassword: values.confirmPassword, 55 | password: values.password, 56 | }, 'confirmPassword'), 57 | }; 58 | return validationErrors; 59 | }, []); 60 | 61 | const [form, onChange, onSubmit, setFocus] = useForm({}, onSignUp, validateForm); 62 | 63 | const onVerifyEmailDevPress = useCallback(() => { 64 | userActions.verifyEmailDev(signupToken); 65 | }, [signupToken]); 66 | 67 | const onSignIn = useCallback(() => { 68 | navigation.navigate('SignIn'); 69 | }, [navigation]); 70 | 71 | return ( 72 | 73 | {i18n.t('signUpScreen.title')} 74 | 84 | 95 | 106 | 117 | 125 | 129 | 130 | 131 | {i18n.t('signUpScreen.haveAccount')} 132 |   133 | 134 | 138 | {i18n.t('signUpScreen.signIn')} 139 | 140 | 141 | {signupToken 142 | && Verify email (dev) 143 | } 144 | 145 | ); 146 | } 147 | 148 | SignUpScreen.propTypes = { 149 | navigation: PropTypes.shape({ 150 | navigate: PropTypes.func.isRequired, 151 | }).isRequired, 152 | }; 153 | 154 | export default SignUpScreen; 155 | -------------------------------------------------------------------------------- /ios/app/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | project.ext.envConfigFiles = [ 4 | debug: ".env.development", 5 | staging: ".env.staging", 6 | production: ".env", 7 | ] 8 | 9 | apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" 10 | 11 | import com.android.build.OutputFile 12 | 13 | /** 14 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 15 | * and bundleReleaseJsAndAssets). 16 | * These basically call `react-native bundle` with the correct arguments during the Android build 17 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 18 | * bundle directly from the development server. Below you can see all the possible configurations 19 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 20 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 21 | * 22 | * project.ext.react = [ 23 | * // the name of the generated asset file containing your JS bundle 24 | * bundleAssetName: "index.android.bundle", 25 | * 26 | * // the entry file for bundle generation. If none specified and 27 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 28 | * // default. Can be overridden with ENTRY_FILE environment variable. 29 | * entryFile: "index.android.js", 30 | * 31 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 32 | * bundleCommand: "ram-bundle", 33 | * 34 | * // whether to bundle JS and assets in debug mode 35 | * bundleInDebug: false, 36 | * 37 | * // whether to bundle JS and assets in release mode 38 | * bundleInRelease: true, 39 | * 40 | * // whether to bundle JS and assets in another build variant (if configured). 41 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 42 | * // The configuration property can be in the following formats 43 | * // 'bundleIn${productFlavor}${buildType}' 44 | * // 'bundleIn${buildType}' 45 | * // bundleInFreeDebug: true, 46 | * // bundleInPaidRelease: true, 47 | * // bundleInBeta: true, 48 | * 49 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 50 | * // for example: to disable dev mode in the staging build type (if configured) 51 | * devDisabledInStaging: true, 52 | * // The configuration property can be in the following formats 53 | * // 'devDisabledIn${productFlavor}${buildType}' 54 | * // 'devDisabledIn${buildType}' 55 | * 56 | * // the root of your project, i.e. where "package.json" lives 57 | * root: "../../", 58 | * 59 | * // where to put the JS bundle asset in debug mode 60 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 61 | * 62 | * // where to put the JS bundle asset in release mode 63 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 64 | * 65 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 66 | * // require('./image.png')), in debug mode 67 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 68 | * 69 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 70 | * // require('./image.png')), in release mode 71 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 72 | * 73 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 74 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 75 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 76 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 77 | * // for example, you might want to remove it from here. 78 | * inputExcludes: ["android/**", "ios/**"], 79 | * 80 | * // override which node gets called and with what additional arguments 81 | * nodeExecutableAndArgs: ["node"], 82 | * 83 | * // supply additional arguments to the packager 84 | * extraPackagerArgs: [] 85 | * ] 86 | */ 87 | 88 | project.ext.react = [ 89 | enableHermes: false, // clean and rebuild if changing 90 | ] 91 | 92 | apply from: "../../node_modules/react-native/react.gradle" 93 | 94 | /** 95 | * Set this to true to create two separate APKs instead of one: 96 | * - An APK that only works on ARM devices 97 | * - An APK that only works on x86 devices 98 | * The advantage is the size of the APK is reduced by about 4MB. 99 | * Upload all the APKs to the Play Store and people will download 100 | * the correct one based on the CPU architecture of their device. 101 | */ 102 | def enableSeparateBuildPerCPUArchitecture = false 103 | 104 | /** 105 | * Run Proguard to shrink the Java bytecode in release builds. 106 | */ 107 | def enableProguardInReleaseBuilds = false 108 | 109 | /** 110 | * The preferred build flavor of JavaScriptCore. 111 | * 112 | * For example, to use the international variant, you can use: 113 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 114 | * 115 | * The international variant includes ICU i18n library and necessary data 116 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 117 | * give correct results when using with locales other than en-US. Note that 118 | * this variant is about 6MiB larger per architecture than default. 119 | */ 120 | def jscFlavor = 'org.webkit:android-jsc:+' 121 | 122 | /** 123 | * Whether to enable the Hermes VM. 124 | * 125 | * This should be set on project.ext.react and mirrored here. If it is not set 126 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 127 | * and the benefits of using Hermes will therefore be sharply reduced. 128 | */ 129 | def enableHermes = project.ext.react.get("enableHermes", false); 130 | 131 | android { 132 | compileSdkVersion rootProject.ext.compileSdkVersion 133 | 134 | compileOptions { 135 | sourceCompatibility JavaVersion.VERSION_1_8 136 | targetCompatibility JavaVersion.VERSION_1_8 137 | } 138 | 139 | defaultConfig { 140 | applicationId "com.app" 141 | minSdkVersion rootProject.ext.minSdkVersion 142 | targetSdkVersion rootProject.ext.targetSdkVersion 143 | versionCode 1 144 | versionName "1.0" 145 | } 146 | splits { 147 | abi { 148 | reset() 149 | enable enableSeparateBuildPerCPUArchitecture 150 | universalApk false // If true, also generate a universal APK 151 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 152 | } 153 | } 154 | signingConfigs { 155 | debug { 156 | storeFile file('debug.keystore') 157 | storePassword 'android' 158 | keyAlias 'androiddebugkey' 159 | keyPassword 'android' 160 | } 161 | } 162 | buildTypes { 163 | debug { 164 | signingConfig signingConfigs.debug 165 | } 166 | release { 167 | // Caution! In production, you need to generate your own keystore file. 168 | // see https://reactnative.dev/docs/signed-apk-android. 169 | signingConfig signingConfigs.debug 170 | minifyEnabled enableProguardInReleaseBuilds 171 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 172 | } 173 | } 174 | 175 | // applicationVariants are e.g. debug, release 176 | applicationVariants.all { variant -> 177 | variant.outputs.each { output -> 178 | // For each separate APK per architecture, set a unique version code as described here: 179 | // https://developer.android.com/studio/build/configure-apk-splits.html 180 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 181 | def abi = output.getFilter(OutputFile.ABI) 182 | if (abi != null) { // null for the universal-debug, universal-release variants 183 | output.versionCodeOverride = 184 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 185 | } 186 | 187 | } 188 | } 189 | } 190 | 191 | dependencies { 192 | implementation fileTree(dir: "libs", include: ["*.jar"]) 193 | //noinspection GradleDynamicVersion 194 | implementation "com.facebook.react:react-native:+" // From node_modules 195 | 196 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 197 | 198 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 199 | exclude group:'com.facebook.fbjni' 200 | } 201 | 202 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 203 | exclude group:'com.facebook.flipper' 204 | exclude group:'com.squareup.okhttp3', module:'okhttp' 205 | } 206 | 207 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 208 | exclude group:'com.facebook.flipper' 209 | } 210 | 211 | if (enableHermes) { 212 | def hermesPath = "../../node_modules/hermes-engine/android/"; 213 | debugImplementation files(hermesPath + "hermes-debug.aar") 214 | releaseImplementation files(hermesPath + "hermes-release.aar") 215 | } else { 216 | implementation jscFlavor 217 | } 218 | } 219 | 220 | // Run this once to be able to run the application with BUCK 221 | // puts all compile dependencies into folder libs for BUCK to use 222 | task copyDownloadableDepsToLibs(type: Copy) { 223 | from configurations.compile 224 | into 'libs' 225 | } 226 | 227 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 228 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native starter 2 | 3 | [![Stack](https://raw.githubusercontent.com/paralect/stack/master/stack-component-template/stack.png)](https://github.com/paralect/stack) 4 | 5 | [![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors) 6 | [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](LICENSE) 7 | [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) 8 | [![Build Status](https://app.bitrise.io/app/8c32e911da6c3ab7/status.svg?token=BzGxAjFY1CjOmplorBSzFw&branch=master)](https://app.bitrise.io/app/8c32e911da6c3ab7) 9 | [![David Dependancy Status](https://david-dm.org/paralect/react-native-starter/status.svg)](https://david-dm.org/paralect/react-native-starter) 10 | 11 | [![Watch on GitHub](https://img.shields.io/github/watchers/paralect/react-native-starter.svg?style=social&label=Watch)](https://github.com/paralect/react-native-starter/watchers) 12 | [![Star on GitHub](https://img.shields.io/github/stars/paralect/react-native-starter.svg?style=social&label=Stars)](https://github.com/paralect/react-native-starter/stargazers) 13 | [![Follow](https://img.shields.io/twitter/follow/paralect.svg?style=social&label=Follow)](https://twitter.com/paralect) 14 | [![Tweet](https://img.shields.io/twitter/url/https/github.com/paralect/react-native-starter.svg?style=social)](https://twitter.com/intent/tweet?text=I%27m%20using%20Stack%20components%20to%20build%20my%20next%20product%20%F0%9F%9A%80.%20Check%20it%20out:%20https://github.com/paralect/stack) 15 | 16 | React Native starter is what we think an ideal starting point for the most React Native applications. It is based on the following primary technologies: 17 | 18 | - react 19 | - react-native 20 | - react-navigation 21 | - redux 22 | - eslint 23 | - i18n 24 | 25 | Application structured in a way, which we find most efficient in both short and long term projects. The main intention of the current structure is to keep logical components close to each other and define clear structure for the common things, such as navigation, store, api wrappers, reducers, action creators, store selectors. 26 | 27 | ## Start 28 | 29 | #### 1. Clone and Install 30 | 31 | ```bash 32 | # Clone the repo 33 | git clone git@github.com:paralect/react-native-starter.git 34 | 35 | # Install dependencies 36 | yarn install 37 | # or 38 | npm install 39 | ``` 40 | 41 | #### 2. Start the app on the device or emulator 42 | 43 | ```bash 44 | # start a development server 45 | npm start 46 | 47 | # run the app on device/emulator 48 | npm run android 49 | # or 50 | npm run ios 51 | ``` 52 | 53 | ### Explanations of the files structure. 54 | 55 | 1. **[android](./android)** - this folder contains all Android native code. 56 | 2. **[assets](./assets)** - this folder should contain static files: images, fonts, etc. 57 | 3. **[ios](./ios)** - this folder contains all iOS native code. 58 | 4. **[src](./src)** - this folder contains all custom code and related stuff: screens, components, navigation, styles, etc. This is the root folder of the project. All imports can be determined relative to `src`, e.g. `import configureStore from 'resources/store'` 59 | - **[src/helpers](./src/helpers)** - this folder should contain all app-wide standalone helper functions and services. 60 | - **[src/i18n](./src/i18n)** - this folder contains internationalization setup and locales. 61 | - **[src/navigation](./src/navigation)** - this folder contains all code related to setting up navigation between screens: navigators, headers, tab bars. etc. 62 | - **[src/resources](./src/resources)** - this folder consists of all redux/api related things. Typically resource maps 1 to 1 to the api endpoint, but not limited to only api endpoints. Every resource is responsible for management certain part of the redux store. If you need keep something client specific in the redux store, you can create separate resource for it. For example: navigation resource may contain some history of the all opened pages without 1 to 1 connection to the rest api. Main moving parts of resource: 63 | - **[src/resources/store.js](./src/resources/store.js)** - initialization logic for the redux store. Adds redux middlewares. 64 | - **[src/resources/reducer.js](./src/resources/reducer.js)** - combines all reducers. 65 | - **[src/resources/\*/\*.actions.js](./src/resources/user/user.actions.js)** - contains redux action creators for the given resource. Also here you can find validation schema created using [yup](https://github.com/jquense/yup) which is similar to the Joi schema validation. 66 | - **[src/resources/\*/\*.api.js](./src/resources/user/user.api.js)** - contains all api methods of the given resource. Optional. 67 | - **[src/resources/\*/\*.reducer.js](./src/resources/user/user.reducer.js)** - contains reducer for the given resource. All reducers combined together in the [reducer.js](./src/resources/reducer.js). 68 | - **[src/resource/\*/\*.selectors.js](./src/resources/user/user.selectors.js)** - contains selectors for the given resource. You should never access store directly, but always use selectors instead. That would simplify things when structure of the store data changes. 69 | - **[src/resource/\*/\*.constants.js](./src/resources/user/user.constants.js)** - contains constants related to the resource (e.g. action types). 70 | - **[src/screens](./src/screens)** - this folder contains screen folders. Main moving parts of this folder: 71 | - **[src/screens/\*/\*.jsx](./src/screens/homeScreen/homeScreen.jsx)** - the main file of every screen. Implements screen layout. 72 | - **[src/screens/\*/\*.styles.js](./src/screens/homeScreen/homeScreen.styles.js)** - this file contains all the styles for related screen. 73 | - **[src/screens/\*/index.js](./src/screens/homeScreen/index.js)** - index file which exports the default export from the related screen. Used to reduce the length of screen imports in other files. 74 | - **[src/screens/\*/components](./src/screens/homeScreen)** - this folder contains all the components related to this screen. Optional. 75 | - **[src/themes](./src/themes)** - this folder contains all assets exports. 76 | - **[src/components](./src/components)** - this folder contains all the components that are not related to a certain screen or used across different screens. 77 | 5. **[.env[.development/.staging]](.env)** - this files contains environment variables for every type of build. API_URL and similar variables are usually stored there. 78 | 79 | ### Conventions 80 | 81 | 1. Name of all files for components should start from lowercase letter and words should be separated by a dash (`date-range`, `multi-action-button`). 82 | 2. Code style (eslint). 83 | 84 | ### Additional tuning 85 | 86 | 1. If you need push notifications in your app you can set it up using [this guide](https://medium.com/@anum.amin/react-native-integrating-push-notifications-using-fcm-349fff071591) and then adjust it using [this comment](https://medium.com/@vagabondtt1503/thanks-for-the-helpful-article-76035c8e3a82). Also there are [examples of receiving notiications](https://rnfirebase.io/docs/v5.x.x/messaging/receiving-messages). 87 | 2. Android Studio may offer to update Gradle. It may break the app and cause crashes in release mode. The latest tested version of Gradle is already installed in this repo, so perform Gradle upgrading at your own risk. 88 | 3. In order to deploy the app using Bitrise you can use [this guide](https://devcenter.bitrise.io/getting-started/getting-started-with-react-native-apps/). [Here](https://gist.github.com/SobakaSlava/1c6867d4f7f7e6813fedc0125dd5d1ea) is a working example of Bitrise workflow yaml configuration. 89 | 90 | ## Demo 91 | 92 | ![React Native starter demo](demo/demo.gif) 93 | 94 | ## License 95 | 96 | React Native starter is released under the [MIT License](LICENSE). 97 | 98 | ## Contributing 99 | 100 | Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. 101 | 102 | Join us and share something developers need 👌. 103 | 104 | ## Contributors 105 | Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): 106 | 107 | 108 | 109 |
SobakaSlava
SobakaSlava

💻 📖 🤔
arlovaalina
arlovaalina

💻 🤔
Ihar
Ihar

🤔 👀
hovoodd
hovoodd

🤔 👀
110 | 111 | 112 | 113 | This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! 114 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.4) 4 | - CocoaLibEvent (1.0.0) 5 | - DoubleConversion (1.1.6) 6 | - FBLazyVector (0.63.3) 7 | - FBReactNativeSpec (0.63.3): 8 | - Folly (= 2020.01.13.00) 9 | - RCTRequired (= 0.63.3) 10 | - RCTTypeSafety (= 0.63.3) 11 | - React-Core (= 0.63.3) 12 | - React-jsi (= 0.63.3) 13 | - ReactCommon/turbomodule/core (= 0.63.3) 14 | - Flipper (0.54.0): 15 | - Flipper-Folly (~> 2.2) 16 | - Flipper-RSocket (~> 1.1) 17 | - Flipper-DoubleConversion (1.1.7) 18 | - Flipper-Folly (2.3.0): 19 | - boost-for-react-native 20 | - CocoaLibEvent (~> 1.0) 21 | - Flipper-DoubleConversion 22 | - Flipper-Glog 23 | - OpenSSL-Universal (= 1.0.2.20) 24 | - Flipper-Glog (0.3.6) 25 | - Flipper-PeerTalk (0.0.4) 26 | - Flipper-RSocket (1.1.0): 27 | - Flipper-Folly (~> 2.2) 28 | - FlipperKit (0.54.0): 29 | - FlipperKit/Core (= 0.54.0) 30 | - FlipperKit/Core (0.54.0): 31 | - Flipper (~> 0.54.0) 32 | - FlipperKit/CppBridge 33 | - FlipperKit/FBCxxFollyDynamicConvert 34 | - FlipperKit/FBDefines 35 | - FlipperKit/FKPortForwarding 36 | - FlipperKit/CppBridge (0.54.0): 37 | - Flipper (~> 0.54.0) 38 | - FlipperKit/FBCxxFollyDynamicConvert (0.54.0): 39 | - Flipper-Folly (~> 2.2) 40 | - FlipperKit/FBDefines (0.54.0) 41 | - FlipperKit/FKPortForwarding (0.54.0): 42 | - CocoaAsyncSocket (~> 7.6) 43 | - Flipper-PeerTalk (~> 0.0.4) 44 | - FlipperKit/FlipperKitHighlightOverlay (0.54.0) 45 | - FlipperKit/FlipperKitLayoutPlugin (0.54.0): 46 | - FlipperKit/Core 47 | - FlipperKit/FlipperKitHighlightOverlay 48 | - FlipperKit/FlipperKitLayoutTextSearchable 49 | - YogaKit (~> 1.18) 50 | - FlipperKit/FlipperKitLayoutTextSearchable (0.54.0) 51 | - FlipperKit/FlipperKitNetworkPlugin (0.54.0): 52 | - FlipperKit/Core 53 | - FlipperKit/FlipperKitReactPlugin (0.54.0): 54 | - FlipperKit/Core 55 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.54.0): 56 | - FlipperKit/Core 57 | - FlipperKit/SKIOSNetworkPlugin (0.54.0): 58 | - FlipperKit/Core 59 | - FlipperKit/FlipperKitNetworkPlugin 60 | - Folly (2020.01.13.00): 61 | - boost-for-react-native 62 | - DoubleConversion 63 | - Folly/Default (= 2020.01.13.00) 64 | - glog 65 | - Folly/Default (2020.01.13.00): 66 | - boost-for-react-native 67 | - DoubleConversion 68 | - glog 69 | - glog (0.3.5) 70 | - OpenSSL-Universal (1.0.2.20): 71 | - OpenSSL-Universal/Static (= 1.0.2.20) 72 | - OpenSSL-Universal/Static (1.0.2.20) 73 | - RCTRequired (0.63.3) 74 | - RCTTypeSafety (0.63.3): 75 | - FBLazyVector (= 0.63.3) 76 | - Folly (= 2020.01.13.00) 77 | - RCTRequired (= 0.63.3) 78 | - React-Core (= 0.63.3) 79 | - React (0.63.3): 80 | - React-Core (= 0.63.3) 81 | - React-Core/DevSupport (= 0.63.3) 82 | - React-Core/RCTWebSocket (= 0.63.3) 83 | - React-RCTActionSheet (= 0.63.3) 84 | - React-RCTAnimation (= 0.63.3) 85 | - React-RCTBlob (= 0.63.3) 86 | - React-RCTImage (= 0.63.3) 87 | - React-RCTLinking (= 0.63.3) 88 | - React-RCTNetwork (= 0.63.3) 89 | - React-RCTSettings (= 0.63.3) 90 | - React-RCTText (= 0.63.3) 91 | - React-RCTVibration (= 0.63.3) 92 | - React-callinvoker (0.63.3) 93 | - React-Core (0.63.3): 94 | - Folly (= 2020.01.13.00) 95 | - glog 96 | - React-Core/Default (= 0.63.3) 97 | - React-cxxreact (= 0.63.3) 98 | - React-jsi (= 0.63.3) 99 | - React-jsiexecutor (= 0.63.3) 100 | - Yoga 101 | - React-Core/CoreModulesHeaders (0.63.3): 102 | - Folly (= 2020.01.13.00) 103 | - glog 104 | - React-Core/Default 105 | - React-cxxreact (= 0.63.3) 106 | - React-jsi (= 0.63.3) 107 | - React-jsiexecutor (= 0.63.3) 108 | - Yoga 109 | - React-Core/Default (0.63.3): 110 | - Folly (= 2020.01.13.00) 111 | - glog 112 | - React-cxxreact (= 0.63.3) 113 | - React-jsi (= 0.63.3) 114 | - React-jsiexecutor (= 0.63.3) 115 | - Yoga 116 | - React-Core/DevSupport (0.63.3): 117 | - Folly (= 2020.01.13.00) 118 | - glog 119 | - React-Core/Default (= 0.63.3) 120 | - React-Core/RCTWebSocket (= 0.63.3) 121 | - React-cxxreact (= 0.63.3) 122 | - React-jsi (= 0.63.3) 123 | - React-jsiexecutor (= 0.63.3) 124 | - React-jsinspector (= 0.63.3) 125 | - Yoga 126 | - React-Core/RCTActionSheetHeaders (0.63.3): 127 | - Folly (= 2020.01.13.00) 128 | - glog 129 | - React-Core/Default 130 | - React-cxxreact (= 0.63.3) 131 | - React-jsi (= 0.63.3) 132 | - React-jsiexecutor (= 0.63.3) 133 | - Yoga 134 | - React-Core/RCTAnimationHeaders (0.63.3): 135 | - Folly (= 2020.01.13.00) 136 | - glog 137 | - React-Core/Default 138 | - React-cxxreact (= 0.63.3) 139 | - React-jsi (= 0.63.3) 140 | - React-jsiexecutor (= 0.63.3) 141 | - Yoga 142 | - React-Core/RCTBlobHeaders (0.63.3): 143 | - Folly (= 2020.01.13.00) 144 | - glog 145 | - React-Core/Default 146 | - React-cxxreact (= 0.63.3) 147 | - React-jsi (= 0.63.3) 148 | - React-jsiexecutor (= 0.63.3) 149 | - Yoga 150 | - React-Core/RCTImageHeaders (0.63.3): 151 | - Folly (= 2020.01.13.00) 152 | - glog 153 | - React-Core/Default 154 | - React-cxxreact (= 0.63.3) 155 | - React-jsi (= 0.63.3) 156 | - React-jsiexecutor (= 0.63.3) 157 | - Yoga 158 | - React-Core/RCTLinkingHeaders (0.63.3): 159 | - Folly (= 2020.01.13.00) 160 | - glog 161 | - React-Core/Default 162 | - React-cxxreact (= 0.63.3) 163 | - React-jsi (= 0.63.3) 164 | - React-jsiexecutor (= 0.63.3) 165 | - Yoga 166 | - React-Core/RCTNetworkHeaders (0.63.3): 167 | - Folly (= 2020.01.13.00) 168 | - glog 169 | - React-Core/Default 170 | - React-cxxreact (= 0.63.3) 171 | - React-jsi (= 0.63.3) 172 | - React-jsiexecutor (= 0.63.3) 173 | - Yoga 174 | - React-Core/RCTSettingsHeaders (0.63.3): 175 | - Folly (= 2020.01.13.00) 176 | - glog 177 | - React-Core/Default 178 | - React-cxxreact (= 0.63.3) 179 | - React-jsi (= 0.63.3) 180 | - React-jsiexecutor (= 0.63.3) 181 | - Yoga 182 | - React-Core/RCTTextHeaders (0.63.3): 183 | - Folly (= 2020.01.13.00) 184 | - glog 185 | - React-Core/Default 186 | - React-cxxreact (= 0.63.3) 187 | - React-jsi (= 0.63.3) 188 | - React-jsiexecutor (= 0.63.3) 189 | - Yoga 190 | - React-Core/RCTVibrationHeaders (0.63.3): 191 | - Folly (= 2020.01.13.00) 192 | - glog 193 | - React-Core/Default 194 | - React-cxxreact (= 0.63.3) 195 | - React-jsi (= 0.63.3) 196 | - React-jsiexecutor (= 0.63.3) 197 | - Yoga 198 | - React-Core/RCTWebSocket (0.63.3): 199 | - Folly (= 2020.01.13.00) 200 | - glog 201 | - React-Core/Default (= 0.63.3) 202 | - React-cxxreact (= 0.63.3) 203 | - React-jsi (= 0.63.3) 204 | - React-jsiexecutor (= 0.63.3) 205 | - Yoga 206 | - React-CoreModules (0.63.3): 207 | - FBReactNativeSpec (= 0.63.3) 208 | - Folly (= 2020.01.13.00) 209 | - RCTTypeSafety (= 0.63.3) 210 | - React-Core/CoreModulesHeaders (= 0.63.3) 211 | - React-jsi (= 0.63.3) 212 | - React-RCTImage (= 0.63.3) 213 | - ReactCommon/turbomodule/core (= 0.63.3) 214 | - React-cxxreact (0.63.3): 215 | - boost-for-react-native (= 1.63.0) 216 | - DoubleConversion 217 | - Folly (= 2020.01.13.00) 218 | - glog 219 | - React-callinvoker (= 0.63.3) 220 | - React-jsinspector (= 0.63.3) 221 | - React-jsi (0.63.3): 222 | - boost-for-react-native (= 1.63.0) 223 | - DoubleConversion 224 | - Folly (= 2020.01.13.00) 225 | - glog 226 | - React-jsi/Default (= 0.63.3) 227 | - React-jsi/Default (0.63.3): 228 | - boost-for-react-native (= 1.63.0) 229 | - DoubleConversion 230 | - Folly (= 2020.01.13.00) 231 | - glog 232 | - React-jsiexecutor (0.63.3): 233 | - DoubleConversion 234 | - Folly (= 2020.01.13.00) 235 | - glog 236 | - React-cxxreact (= 0.63.3) 237 | - React-jsi (= 0.63.3) 238 | - React-jsinspector (0.63.3) 239 | - react-native-config (1.4.1): 240 | - react-native-config/App (= 1.4.1) 241 | - react-native-config/App (1.4.1): 242 | - React-Core 243 | - react-native-netinfo (5.9.7): 244 | - React-Core 245 | - react-native-safe-area-context (3.1.9): 246 | - React-Core 247 | - React-RCTActionSheet (0.63.3): 248 | - React-Core/RCTActionSheetHeaders (= 0.63.3) 249 | - React-RCTAnimation (0.63.3): 250 | - FBReactNativeSpec (= 0.63.3) 251 | - Folly (= 2020.01.13.00) 252 | - RCTTypeSafety (= 0.63.3) 253 | - React-Core/RCTAnimationHeaders (= 0.63.3) 254 | - React-jsi (= 0.63.3) 255 | - ReactCommon/turbomodule/core (= 0.63.3) 256 | - React-RCTBlob (0.63.3): 257 | - FBReactNativeSpec (= 0.63.3) 258 | - Folly (= 2020.01.13.00) 259 | - React-Core/RCTBlobHeaders (= 0.63.3) 260 | - React-Core/RCTWebSocket (= 0.63.3) 261 | - React-jsi (= 0.63.3) 262 | - React-RCTNetwork (= 0.63.3) 263 | - ReactCommon/turbomodule/core (= 0.63.3) 264 | - React-RCTImage (0.63.3): 265 | - FBReactNativeSpec (= 0.63.3) 266 | - Folly (= 2020.01.13.00) 267 | - RCTTypeSafety (= 0.63.3) 268 | - React-Core/RCTImageHeaders (= 0.63.3) 269 | - React-jsi (= 0.63.3) 270 | - React-RCTNetwork (= 0.63.3) 271 | - ReactCommon/turbomodule/core (= 0.63.3) 272 | - React-RCTLinking (0.63.3): 273 | - FBReactNativeSpec (= 0.63.3) 274 | - React-Core/RCTLinkingHeaders (= 0.63.3) 275 | - React-jsi (= 0.63.3) 276 | - ReactCommon/turbomodule/core (= 0.63.3) 277 | - React-RCTNetwork (0.63.3): 278 | - FBReactNativeSpec (= 0.63.3) 279 | - Folly (= 2020.01.13.00) 280 | - RCTTypeSafety (= 0.63.3) 281 | - React-Core/RCTNetworkHeaders (= 0.63.3) 282 | - React-jsi (= 0.63.3) 283 | - ReactCommon/turbomodule/core (= 0.63.3) 284 | - React-RCTSettings (0.63.3): 285 | - FBReactNativeSpec (= 0.63.3) 286 | - Folly (= 2020.01.13.00) 287 | - RCTTypeSafety (= 0.63.3) 288 | - React-Core/RCTSettingsHeaders (= 0.63.3) 289 | - React-jsi (= 0.63.3) 290 | - ReactCommon/turbomodule/core (= 0.63.3) 291 | - React-RCTText (0.63.3): 292 | - React-Core/RCTTextHeaders (= 0.63.3) 293 | - React-RCTVibration (0.63.3): 294 | - FBReactNativeSpec (= 0.63.3) 295 | - Folly (= 2020.01.13.00) 296 | - React-Core/RCTVibrationHeaders (= 0.63.3) 297 | - React-jsi (= 0.63.3) 298 | - ReactCommon/turbomodule/core (= 0.63.3) 299 | - ReactCommon/turbomodule/core (0.63.3): 300 | - DoubleConversion 301 | - Folly (= 2020.01.13.00) 302 | - glog 303 | - React-callinvoker (= 0.63.3) 304 | - React-Core (= 0.63.3) 305 | - React-cxxreact (= 0.63.3) 306 | - React-jsi (= 0.63.3) 307 | - RNCAsyncStorage (1.10.0): 308 | - React 309 | - RNCMaskedView (0.1.10): 310 | - React 311 | - RNGestureHandler (1.8.0): 312 | - React 313 | - RNLocalize (2.0.0): 314 | - React-Core 315 | - RNReanimated (1.13.2): 316 | - React-Core 317 | - RNScreens (2.15.0): 318 | - React-Core 319 | - Yoga (1.14.0) 320 | - YogaKit (1.18.1): 321 | - Yoga (~> 1.14) 322 | 323 | DEPENDENCIES: 324 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 325 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 326 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 327 | - Flipper (~> 0.54.0) 328 | - Flipper-DoubleConversion (= 1.1.7) 329 | - Flipper-Folly (~> 2.2) 330 | - Flipper-Glog (= 0.3.6) 331 | - Flipper-PeerTalk (~> 0.0.4) 332 | - Flipper-RSocket (~> 1.1) 333 | - FlipperKit (~> 0.54.0) 334 | - FlipperKit/Core (~> 0.54.0) 335 | - FlipperKit/CppBridge (~> 0.54.0) 336 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.54.0) 337 | - FlipperKit/FBDefines (~> 0.54.0) 338 | - FlipperKit/FKPortForwarding (~> 0.54.0) 339 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.54.0) 340 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.54.0) 341 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.54.0) 342 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.54.0) 343 | - FlipperKit/FlipperKitReactPlugin (~> 0.54.0) 344 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.54.0) 345 | - FlipperKit/SKIOSNetworkPlugin (~> 0.54.0) 346 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 347 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 348 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 349 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 350 | - React (from `../node_modules/react-native/`) 351 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 352 | - React-Core (from `../node_modules/react-native/`) 353 | - React-Core/DevSupport (from `../node_modules/react-native/`) 354 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 355 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 356 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 357 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 358 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 359 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 360 | - react-native-config (from `../node_modules/react-native-config`) 361 | - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)" 362 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) 363 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 364 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 365 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 366 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 367 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 368 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 369 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 370 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 371 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 372 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 373 | - "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)" 374 | - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" 375 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 376 | - RNLocalize (from `../node_modules/react-native-localize`) 377 | - RNReanimated (from `../node_modules/react-native-reanimated`) 378 | - RNScreens (from `../node_modules/react-native-screens`) 379 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 380 | 381 | SPEC REPOS: 382 | trunk: 383 | - boost-for-react-native 384 | - CocoaAsyncSocket 385 | - CocoaLibEvent 386 | - Flipper 387 | - Flipper-DoubleConversion 388 | - Flipper-Folly 389 | - Flipper-Glog 390 | - Flipper-PeerTalk 391 | - Flipper-RSocket 392 | - FlipperKit 393 | - OpenSSL-Universal 394 | - YogaKit 395 | 396 | EXTERNAL SOURCES: 397 | DoubleConversion: 398 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 399 | FBLazyVector: 400 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 401 | FBReactNativeSpec: 402 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 403 | Folly: 404 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 405 | glog: 406 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 407 | RCTRequired: 408 | :path: "../node_modules/react-native/Libraries/RCTRequired" 409 | RCTTypeSafety: 410 | :path: "../node_modules/react-native/Libraries/TypeSafety" 411 | React: 412 | :path: "../node_modules/react-native/" 413 | React-callinvoker: 414 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 415 | React-Core: 416 | :path: "../node_modules/react-native/" 417 | React-CoreModules: 418 | :path: "../node_modules/react-native/React/CoreModules" 419 | React-cxxreact: 420 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 421 | React-jsi: 422 | :path: "../node_modules/react-native/ReactCommon/jsi" 423 | React-jsiexecutor: 424 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 425 | React-jsinspector: 426 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 427 | react-native-config: 428 | :path: "../node_modules/react-native-config" 429 | react-native-netinfo: 430 | :path: "../node_modules/@react-native-community/netinfo" 431 | react-native-safe-area-context: 432 | :path: "../node_modules/react-native-safe-area-context" 433 | React-RCTActionSheet: 434 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 435 | React-RCTAnimation: 436 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 437 | React-RCTBlob: 438 | :path: "../node_modules/react-native/Libraries/Blob" 439 | React-RCTImage: 440 | :path: "../node_modules/react-native/Libraries/Image" 441 | React-RCTLinking: 442 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 443 | React-RCTNetwork: 444 | :path: "../node_modules/react-native/Libraries/Network" 445 | React-RCTSettings: 446 | :path: "../node_modules/react-native/Libraries/Settings" 447 | React-RCTText: 448 | :path: "../node_modules/react-native/Libraries/Text" 449 | React-RCTVibration: 450 | :path: "../node_modules/react-native/Libraries/Vibration" 451 | ReactCommon: 452 | :path: "../node_modules/react-native/ReactCommon" 453 | RNCAsyncStorage: 454 | :path: "../node_modules/@react-native-community/async-storage" 455 | RNCMaskedView: 456 | :path: "../node_modules/@react-native-community/masked-view" 457 | RNGestureHandler: 458 | :path: "../node_modules/react-native-gesture-handler" 459 | RNLocalize: 460 | :path: "../node_modules/react-native-localize" 461 | RNReanimated: 462 | :path: "../node_modules/react-native-reanimated" 463 | RNScreens: 464 | :path: "../node_modules/react-native-screens" 465 | Yoga: 466 | :path: "../node_modules/react-native/ReactCommon/yoga" 467 | 468 | SPEC CHECKSUMS: 469 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 470 | CocoaAsyncSocket: 694058e7c0ed05a9e217d1b3c7ded962f4180845 471 | CocoaLibEvent: 2fab71b8bd46dd33ddb959f7928ec5909f838e3f 472 | DoubleConversion: cde416483dac037923206447da6e1454df403714 473 | FBLazyVector: 878b59e31113e289e275165efbe4b54fa614d43d 474 | FBReactNativeSpec: 7da9338acfb98d4ef9e5536805a0704572d33c2f 475 | Flipper: be611d4b742d8c87fbae2ca5f44603a02539e365 476 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 477 | Flipper-Folly: e4493b013c02d9347d5e0cb4d128680239f6c78a 478 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 479 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 480 | Flipper-RSocket: 64e7431a55835eb953b0bf984ef3b90ae9fdddd7 481 | FlipperKit: ab353d41aea8aae2ea6daaf813e67496642f3d7d 482 | Folly: b73c3869541e86821df3c387eb0af5f65addfab4 483 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 484 | OpenSSL-Universal: ff34003318d5e1163e9529b08470708e389ffcdd 485 | RCTRequired: 48884c74035a0b5b76dbb7a998bd93bcfc5f2047 486 | RCTTypeSafety: edf4b618033c2f1c5b7bc3d90d8e085ed95ba2ab 487 | React: f36e90f3ceb976546e97df3403e37d226f79d0e3 488 | React-callinvoker: 18874f621eb96625df7a24a7dc8d6e07391affcd 489 | React-Core: ac3d816b8e3493970153f4aaf0cff18af0bb95e6 490 | React-CoreModules: 4016d3a4e518bcfc4f5a51252b5a05692ca6f0e1 491 | React-cxxreact: ffc9129013b87cb36cf3f30a86695a3c397b0f99 492 | React-jsi: df07aa95b39c5be3e41199921509bfa929ed2b9d 493 | React-jsiexecutor: b56c03e61c0dd5f5801255f2160a815f4a53d451 494 | React-jsinspector: 8e68ffbfe23880d3ee9bafa8be2777f60b25cbe2 495 | react-native-config: d8b45133fd13d4f23bd2064b72f6e2c08b2763ed 496 | react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f 497 | react-native-safe-area-context: 86612d2c9a9e94e288319262d10b5f93f0b395f5 498 | React-RCTActionSheet: 53ea72699698b0b47a6421cb1c8b4ab215a774aa 499 | React-RCTAnimation: 1befece0b5183c22ae01b966f5583f42e69a83c2 500 | React-RCTBlob: 0b284339cbe4b15705a05e2313a51c6d8b51fa40 501 | React-RCTImage: d1756599ebd4dc2cb19d1682fe67c6b976658387 502 | React-RCTLinking: 9af0a51c6d6a4dd1674daadafffc6d03033a6d18 503 | React-RCTNetwork: 332c83929cc5eae0b3bbca4add1d668e1fc18bda 504 | React-RCTSettings: d6953772cfd55f2c68ad72b7ef29efc7ec49f773 505 | React-RCTText: 65a6de06a7389098ce24340d1d3556015c38f746 506 | React-RCTVibration: 8e9fb25724a0805107fc1acc9075e26f814df454 507 | ReactCommon: 4167844018c9ed375cc01a843e9ee564399e53c3 508 | RNCAsyncStorage: b34d2399d3e25db01d5b881949b503bd3c224d57 509 | RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459 510 | RNGestureHandler: 7a5833d0f788dbd107fbb913e09aa0c1ff333c39 511 | RNLocalize: dc432c370fe76ad48cb380386232ca68d534a52a 512 | RNReanimated: e03f7425cb7a38dcf1b644d680d1bfc91c3337ad 513 | RNScreens: 2ad555d4d9fa10b91bb765ca07fe9b29d59573f0 514 | Yoga: 7d13633d129fd179e01b8953d38d47be90db185a 515 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 516 | 517 | PODFILE CHECKSUM: 19b06584498e11fd0cab99f9357f563578b8c19f 518 | 519 | COCOAPODS: 1.9.3 520 | -------------------------------------------------------------------------------- /ios/app.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* appTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* appTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 29D5CDD06C237FA2D86C0823 /* libPods-app-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 47793315B45B72E679D63D44 /* libPods-app-tvOSTests.a */; }; 15 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 16 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 17 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 18 | 2DCD954D1E0B4F2C00145EB5 /* appTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* appTests.m */; }; 19 | 683F74409634C3F058B9E20D /* libPods-app.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B25570AFDF10D8C1A0A905A8 /* libPods-app.a */; }; 20 | 7722C8872566B83500D6E9B7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7722C8862566B83500D6E9B7 /* LaunchScreen.storyboard */; }; 21 | 7722C8882566B83500D6E9B7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7722C8862566B83500D6E9B7 /* LaunchScreen.storyboard */; }; 22 | 9B447185203B050602B3FE37 /* libPods-app-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 60CCA1048C90E1CA6BB0923B /* libPods-app-tvOS.a */; }; 23 | DAA2FACDCA5E054D81A1516B /* libPods-app-appTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F5E87E3C42B4330B6D988A9 /* libPods-app-appTests.a */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 32 | remoteInfo = app; 33 | }; 34 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 39 | remoteInfo = "app-tvOS"; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 45 | 00E356EE1AD99517003FC87E /* appTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = appTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 00E356F21AD99517003FC87E /* appTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = appTests.m; sourceTree = ""; }; 48 | 13B07F961A680F5B00A75B9A /* app.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = app.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = app/AppDelegate.h; sourceTree = ""; }; 50 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = app/AppDelegate.m; sourceTree = ""; }; 51 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = app/Images.xcassets; sourceTree = ""; }; 52 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = app/Info.plist; sourceTree = ""; }; 53 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = app/main.m; sourceTree = ""; }; 54 | 18F81BF4B158096F831FA58E /* Pods-app-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app-tvOS.release.xcconfig"; path = "Target Support Files/Pods-app-tvOS/Pods-app-tvOS.release.xcconfig"; sourceTree = ""; }; 55 | 2D02E47B1E0B4A5D006451C7 /* app-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "app-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 2D02E4901E0B4A5D006451C7 /* app-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "app-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 3EF5E411CFB807B8AA0F4C68 /* Pods-app.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app.debug.xcconfig"; path = "Target Support Files/Pods-app/Pods-app.debug.xcconfig"; sourceTree = ""; }; 58 | 43455F4801F0C40C49DF0303 /* Pods-app.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app.release.xcconfig"; path = "Target Support Files/Pods-app/Pods-app.release.xcconfig"; sourceTree = ""; }; 59 | 47793315B45B72E679D63D44 /* libPods-app-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-app-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 4F5E87E3C42B4330B6D988A9 /* libPods-app-appTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-app-appTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 60CCA1048C90E1CA6BB0923B /* libPods-app-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-app-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 7722C8862566B83500D6E9B7 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = app/LaunchScreen.storyboard; sourceTree = ""; }; 63 | 926F788888DF3EF51B773281 /* Pods-app-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-app-tvOS/Pods-app-tvOS.debug.xcconfig"; sourceTree = ""; }; 64 | AB023322C46EB816BE4D68BF /* Pods-app-appTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app-appTests.release.xcconfig"; path = "Target Support Files/Pods-app-appTests/Pods-app-appTests.release.xcconfig"; sourceTree = ""; }; 65 | B25570AFDF10D8C1A0A905A8 /* libPods-app.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-app.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | C6A80A961605C4F13D81120B /* Pods-app-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-app-tvOSTests/Pods-app-tvOSTests.release.xcconfig"; sourceTree = ""; }; 67 | DC6DAFC20ECC43D5C894C6EF /* Pods-app-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-app-tvOSTests/Pods-app-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 68 | EAE9D82563E7CFB60B386CED /* Pods-app-appTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-app-appTests.debug.xcconfig"; path = "Target Support Files/Pods-app-appTests/Pods-app-appTests.debug.xcconfig"; sourceTree = ""; }; 69 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 70 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 71 | /* End PBXFileReference section */ 72 | 73 | /* Begin PBXFrameworksBuildPhase section */ 74 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | DAA2FACDCA5E054D81A1516B /* libPods-app-appTests.a in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 683F74409634C3F058B9E20D /* libPods-app.a in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | 9B447185203B050602B3FE37 /* libPods-app-tvOS.a in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | 29D5CDD06C237FA2D86C0823 /* libPods-app-tvOSTests.a in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | /* End PBXFrameworksBuildPhase section */ 107 | 108 | /* Begin PBXGroup section */ 109 | 00E356EF1AD99517003FC87E /* appTests */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 00E356F21AD99517003FC87E /* appTests.m */, 113 | 00E356F01AD99517003FC87E /* Supporting Files */, 114 | ); 115 | path = appTests; 116 | sourceTree = ""; 117 | }; 118 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 00E356F11AD99517003FC87E /* Info.plist */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | 13B07FAE1A68108700A75B9A /* app */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 7722C8862566B83500D6E9B7 /* LaunchScreen.storyboard */, 130 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 131 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 132 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 133 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 134 | 13B07FB61A68108700A75B9A /* Info.plist */, 135 | 13B07FB71A68108700A75B9A /* main.m */, 136 | ); 137 | name = app; 138 | sourceTree = ""; 139 | }; 140 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 144 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 145 | B25570AFDF10D8C1A0A905A8 /* libPods-app.a */, 146 | 4F5E87E3C42B4330B6D988A9 /* libPods-app-appTests.a */, 147 | 60CCA1048C90E1CA6BB0923B /* libPods-app-tvOS.a */, 148 | 47793315B45B72E679D63D44 /* libPods-app-tvOSTests.a */, 149 | ); 150 | name = Frameworks; 151 | sourceTree = ""; 152 | }; 153 | 65E78BFE6BCB3E789228850C /* Pods */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 3EF5E411CFB807B8AA0F4C68 /* Pods-app.debug.xcconfig */, 157 | 43455F4801F0C40C49DF0303 /* Pods-app.release.xcconfig */, 158 | EAE9D82563E7CFB60B386CED /* Pods-app-appTests.debug.xcconfig */, 159 | AB023322C46EB816BE4D68BF /* Pods-app-appTests.release.xcconfig */, 160 | 926F788888DF3EF51B773281 /* Pods-app-tvOS.debug.xcconfig */, 161 | 18F81BF4B158096F831FA58E /* Pods-app-tvOS.release.xcconfig */, 162 | DC6DAFC20ECC43D5C894C6EF /* Pods-app-tvOSTests.debug.xcconfig */, 163 | C6A80A961605C4F13D81120B /* Pods-app-tvOSTests.release.xcconfig */, 164 | ); 165 | path = Pods; 166 | sourceTree = ""; 167 | }; 168 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | ); 172 | name = Libraries; 173 | sourceTree = ""; 174 | }; 175 | 83CBB9F61A601CBA00E9B192 = { 176 | isa = PBXGroup; 177 | children = ( 178 | 13B07FAE1A68108700A75B9A /* app */, 179 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 180 | 00E356EF1AD99517003FC87E /* appTests */, 181 | 83CBBA001A601CBA00E9B192 /* Products */, 182 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 183 | 65E78BFE6BCB3E789228850C /* Pods */, 184 | ); 185 | indentWidth = 2; 186 | sourceTree = ""; 187 | tabWidth = 2; 188 | usesTabs = 0; 189 | }; 190 | 83CBBA001A601CBA00E9B192 /* Products */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 13B07F961A680F5B00A75B9A /* app.app */, 194 | 00E356EE1AD99517003FC87E /* appTests.xctest */, 195 | 2D02E47B1E0B4A5D006451C7 /* app-tvOS.app */, 196 | 2D02E4901E0B4A5D006451C7 /* app-tvOSTests.xctest */, 197 | ); 198 | name = Products; 199 | sourceTree = ""; 200 | }; 201 | /* End PBXGroup section */ 202 | 203 | /* Begin PBXNativeTarget section */ 204 | 00E356ED1AD99517003FC87E /* appTests */ = { 205 | isa = PBXNativeTarget; 206 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "appTests" */; 207 | buildPhases = ( 208 | E07F1A4DBBFCCECED1EFF219 /* [CP] Check Pods Manifest.lock */, 209 | 00E356EA1AD99517003FC87E /* Sources */, 210 | 00E356EB1AD99517003FC87E /* Frameworks */, 211 | 00E356EC1AD99517003FC87E /* Resources */, 212 | 3E73AAA2862C00B9BD934949 /* [CP] Copy Pods Resources */, 213 | ); 214 | buildRules = ( 215 | ); 216 | dependencies = ( 217 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 218 | ); 219 | name = appTests; 220 | productName = appTests; 221 | productReference = 00E356EE1AD99517003FC87E /* appTests.xctest */; 222 | productType = "com.apple.product-type.bundle.unit-test"; 223 | }; 224 | 13B07F861A680F5B00A75B9A /* app */ = { 225 | isa = PBXNativeTarget; 226 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "app" */; 227 | buildPhases = ( 228 | 26B86D5F4EA643DD0B3D48A1 /* [CP] Check Pods Manifest.lock */, 229 | FD10A7F022414F080027D42C /* Start Packager */, 230 | 13B07F871A680F5B00A75B9A /* Sources */, 231 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 232 | 13B07F8E1A680F5B00A75B9A /* Resources */, 233 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 234 | 12633E77B4B44F9EF9C33ACB /* [CP] Copy Pods Resources */, 235 | ); 236 | buildRules = ( 237 | ); 238 | dependencies = ( 239 | ); 240 | name = app; 241 | productName = app; 242 | productReference = 13B07F961A680F5B00A75B9A /* app.app */; 243 | productType = "com.apple.product-type.application"; 244 | }; 245 | 2D02E47A1E0B4A5D006451C7 /* app-tvOS */ = { 246 | isa = PBXNativeTarget; 247 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "app-tvOS" */; 248 | buildPhases = ( 249 | 7D5D16AC0984ED39DD7891ED /* [CP] Check Pods Manifest.lock */, 250 | FD10A7F122414F3F0027D42C /* Start Packager */, 251 | 2D02E4771E0B4A5D006451C7 /* Sources */, 252 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 253 | 2D02E4791E0B4A5D006451C7 /* Resources */, 254 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 255 | ); 256 | buildRules = ( 257 | ); 258 | dependencies = ( 259 | ); 260 | name = "app-tvOS"; 261 | productName = "app-tvOS"; 262 | productReference = 2D02E47B1E0B4A5D006451C7 /* app-tvOS.app */; 263 | productType = "com.apple.product-type.application"; 264 | }; 265 | 2D02E48F1E0B4A5D006451C7 /* app-tvOSTests */ = { 266 | isa = PBXNativeTarget; 267 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "app-tvOSTests" */; 268 | buildPhases = ( 269 | 93F1BEDD2468153FBB038901 /* [CP] Check Pods Manifest.lock */, 270 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 271 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 272 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 273 | ); 274 | buildRules = ( 275 | ); 276 | dependencies = ( 277 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 278 | ); 279 | name = "app-tvOSTests"; 280 | productName = "app-tvOSTests"; 281 | productReference = 2D02E4901E0B4A5D006451C7 /* app-tvOSTests.xctest */; 282 | productType = "com.apple.product-type.bundle.unit-test"; 283 | }; 284 | /* End PBXNativeTarget section */ 285 | 286 | /* Begin PBXProject section */ 287 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 288 | isa = PBXProject; 289 | attributes = { 290 | LastUpgradeCheck = 1130; 291 | TargetAttributes = { 292 | 00E356ED1AD99517003FC87E = { 293 | CreatedOnToolsVersion = 6.2; 294 | TestTargetID = 13B07F861A680F5B00A75B9A; 295 | }; 296 | 13B07F861A680F5B00A75B9A = { 297 | LastSwiftMigration = 1120; 298 | }; 299 | 2D02E47A1E0B4A5D006451C7 = { 300 | CreatedOnToolsVersion = 8.2.1; 301 | ProvisioningStyle = Automatic; 302 | }; 303 | 2D02E48F1E0B4A5D006451C7 = { 304 | CreatedOnToolsVersion = 8.2.1; 305 | ProvisioningStyle = Automatic; 306 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 307 | }; 308 | }; 309 | }; 310 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "app" */; 311 | compatibilityVersion = "Xcode 3.2"; 312 | developmentRegion = en; 313 | hasScannedForEncodings = 0; 314 | knownRegions = ( 315 | en, 316 | Base, 317 | ); 318 | mainGroup = 83CBB9F61A601CBA00E9B192; 319 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 320 | projectDirPath = ""; 321 | projectRoot = ""; 322 | targets = ( 323 | 13B07F861A680F5B00A75B9A /* app */, 324 | 00E356ED1AD99517003FC87E /* appTests */, 325 | 2D02E47A1E0B4A5D006451C7 /* app-tvOS */, 326 | 2D02E48F1E0B4A5D006451C7 /* app-tvOSTests */, 327 | ); 328 | }; 329 | /* End PBXProject section */ 330 | 331 | /* Begin PBXResourcesBuildPhase section */ 332 | 00E356EC1AD99517003FC87E /* Resources */ = { 333 | isa = PBXResourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 340 | isa = PBXResourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 344 | 7722C8872566B83500D6E9B7 /* LaunchScreen.storyboard in Resources */, 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 349 | isa = PBXResourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 353 | 7722C8882566B83500D6E9B7 /* LaunchScreen.storyboard in Resources */, 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | }; 357 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 358 | isa = PBXResourcesBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | }; 364 | /* End PBXResourcesBuildPhase section */ 365 | 366 | /* Begin PBXShellScriptBuildPhase section */ 367 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 368 | isa = PBXShellScriptBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | ); 372 | inputPaths = ( 373 | ); 374 | name = "Bundle React Native code and images"; 375 | outputPaths = ( 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | shellPath = /bin/sh; 379 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 380 | }; 381 | 12633E77B4B44F9EF9C33ACB /* [CP] Copy Pods Resources */ = { 382 | isa = PBXShellScriptBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | ); 386 | inputPaths = ( 387 | "${PODS_ROOT}/Target Support Files/Pods-app/Pods-app-resources.sh", 388 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 389 | ); 390 | name = "[CP] Copy Pods Resources"; 391 | outputPaths = ( 392 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | shellPath = /bin/sh; 396 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-app/Pods-app-resources.sh\"\n"; 397 | showEnvVarsInLog = 0; 398 | }; 399 | 26B86D5F4EA643DD0B3D48A1 /* [CP] Check Pods Manifest.lock */ = { 400 | isa = PBXShellScriptBuildPhase; 401 | buildActionMask = 2147483647; 402 | files = ( 403 | ); 404 | inputFileListPaths = ( 405 | ); 406 | inputPaths = ( 407 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 408 | "${PODS_ROOT}/Manifest.lock", 409 | ); 410 | name = "[CP] Check Pods Manifest.lock"; 411 | outputFileListPaths = ( 412 | ); 413 | outputPaths = ( 414 | "$(DERIVED_FILE_DIR)/Pods-app-checkManifestLockResult.txt", 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | shellPath = /bin/sh; 418 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 419 | showEnvVarsInLog = 0; 420 | }; 421 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 422 | isa = PBXShellScriptBuildPhase; 423 | buildActionMask = 2147483647; 424 | files = ( 425 | ); 426 | inputPaths = ( 427 | ); 428 | name = "Bundle React Native Code And Images"; 429 | outputPaths = ( 430 | ); 431 | runOnlyForDeploymentPostprocessing = 0; 432 | shellPath = /bin/sh; 433 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 434 | }; 435 | 3E73AAA2862C00B9BD934949 /* [CP] Copy Pods Resources */ = { 436 | isa = PBXShellScriptBuildPhase; 437 | buildActionMask = 2147483647; 438 | files = ( 439 | ); 440 | inputPaths = ( 441 | "${PODS_ROOT}/Target Support Files/Pods-app-appTests/Pods-app-appTests-resources.sh", 442 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 443 | ); 444 | name = "[CP] Copy Pods Resources"; 445 | outputPaths = ( 446 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 447 | ); 448 | runOnlyForDeploymentPostprocessing = 0; 449 | shellPath = /bin/sh; 450 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-app-appTests/Pods-app-appTests-resources.sh\"\n"; 451 | showEnvVarsInLog = 0; 452 | }; 453 | 7D5D16AC0984ED39DD7891ED /* [CP] Check Pods Manifest.lock */ = { 454 | isa = PBXShellScriptBuildPhase; 455 | buildActionMask = 2147483647; 456 | files = ( 457 | ); 458 | inputFileListPaths = ( 459 | ); 460 | inputPaths = ( 461 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 462 | "${PODS_ROOT}/Manifest.lock", 463 | ); 464 | name = "[CP] Check Pods Manifest.lock"; 465 | outputFileListPaths = ( 466 | ); 467 | outputPaths = ( 468 | "$(DERIVED_FILE_DIR)/Pods-app-tvOS-checkManifestLockResult.txt", 469 | ); 470 | runOnlyForDeploymentPostprocessing = 0; 471 | shellPath = /bin/sh; 472 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 473 | showEnvVarsInLog = 0; 474 | }; 475 | 93F1BEDD2468153FBB038901 /* [CP] Check Pods Manifest.lock */ = { 476 | isa = PBXShellScriptBuildPhase; 477 | buildActionMask = 2147483647; 478 | files = ( 479 | ); 480 | inputFileListPaths = ( 481 | ); 482 | inputPaths = ( 483 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 484 | "${PODS_ROOT}/Manifest.lock", 485 | ); 486 | name = "[CP] Check Pods Manifest.lock"; 487 | outputFileListPaths = ( 488 | ); 489 | outputPaths = ( 490 | "$(DERIVED_FILE_DIR)/Pods-app-tvOSTests-checkManifestLockResult.txt", 491 | ); 492 | runOnlyForDeploymentPostprocessing = 0; 493 | shellPath = /bin/sh; 494 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 495 | showEnvVarsInLog = 0; 496 | }; 497 | E07F1A4DBBFCCECED1EFF219 /* [CP] Check Pods Manifest.lock */ = { 498 | isa = PBXShellScriptBuildPhase; 499 | buildActionMask = 2147483647; 500 | files = ( 501 | ); 502 | inputFileListPaths = ( 503 | ); 504 | inputPaths = ( 505 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 506 | "${PODS_ROOT}/Manifest.lock", 507 | ); 508 | name = "[CP] Check Pods Manifest.lock"; 509 | outputFileListPaths = ( 510 | ); 511 | outputPaths = ( 512 | "$(DERIVED_FILE_DIR)/Pods-app-appTests-checkManifestLockResult.txt", 513 | ); 514 | runOnlyForDeploymentPostprocessing = 0; 515 | shellPath = /bin/sh; 516 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 517 | showEnvVarsInLog = 0; 518 | }; 519 | FD10A7F022414F080027D42C /* Start Packager */ = { 520 | isa = PBXShellScriptBuildPhase; 521 | buildActionMask = 2147483647; 522 | files = ( 523 | ); 524 | inputFileListPaths = ( 525 | ); 526 | inputPaths = ( 527 | ); 528 | name = "Start Packager"; 529 | outputFileListPaths = ( 530 | ); 531 | outputPaths = ( 532 | ); 533 | runOnlyForDeploymentPostprocessing = 0; 534 | shellPath = /bin/sh; 535 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 536 | showEnvVarsInLog = 0; 537 | }; 538 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 539 | isa = PBXShellScriptBuildPhase; 540 | buildActionMask = 2147483647; 541 | files = ( 542 | ); 543 | inputFileListPaths = ( 544 | ); 545 | inputPaths = ( 546 | ); 547 | name = "Start Packager"; 548 | outputFileListPaths = ( 549 | ); 550 | outputPaths = ( 551 | ); 552 | runOnlyForDeploymentPostprocessing = 0; 553 | shellPath = /bin/sh; 554 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 555 | showEnvVarsInLog = 0; 556 | }; 557 | /* End PBXShellScriptBuildPhase section */ 558 | 559 | /* Begin PBXSourcesBuildPhase section */ 560 | 00E356EA1AD99517003FC87E /* Sources */ = { 561 | isa = PBXSourcesBuildPhase; 562 | buildActionMask = 2147483647; 563 | files = ( 564 | 00E356F31AD99517003FC87E /* appTests.m in Sources */, 565 | ); 566 | runOnlyForDeploymentPostprocessing = 0; 567 | }; 568 | 13B07F871A680F5B00A75B9A /* Sources */ = { 569 | isa = PBXSourcesBuildPhase; 570 | buildActionMask = 2147483647; 571 | files = ( 572 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 573 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 574 | ); 575 | runOnlyForDeploymentPostprocessing = 0; 576 | }; 577 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 578 | isa = PBXSourcesBuildPhase; 579 | buildActionMask = 2147483647; 580 | files = ( 581 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 582 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 583 | ); 584 | runOnlyForDeploymentPostprocessing = 0; 585 | }; 586 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 587 | isa = PBXSourcesBuildPhase; 588 | buildActionMask = 2147483647; 589 | files = ( 590 | 2DCD954D1E0B4F2C00145EB5 /* appTests.m in Sources */, 591 | ); 592 | runOnlyForDeploymentPostprocessing = 0; 593 | }; 594 | /* End PBXSourcesBuildPhase section */ 595 | 596 | /* Begin PBXTargetDependency section */ 597 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 598 | isa = PBXTargetDependency; 599 | target = 13B07F861A680F5B00A75B9A /* app */; 600 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 601 | }; 602 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 603 | isa = PBXTargetDependency; 604 | target = 2D02E47A1E0B4A5D006451C7 /* app-tvOS */; 605 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 606 | }; 607 | /* End PBXTargetDependency section */ 608 | 609 | /* Begin XCBuildConfiguration section */ 610 | 00E356F61AD99517003FC87E /* Debug */ = { 611 | isa = XCBuildConfiguration; 612 | baseConfigurationReference = EAE9D82563E7CFB60B386CED /* Pods-app-appTests.debug.xcconfig */; 613 | buildSettings = { 614 | BUNDLE_LOADER = "$(TEST_HOST)"; 615 | GCC_PREPROCESSOR_DEFINITIONS = ( 616 | "DEBUG=1", 617 | "$(inherited)", 618 | ); 619 | INFOPLIST_FILE = appTests/Info.plist; 620 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 621 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 622 | OTHER_LDFLAGS = ( 623 | "-ObjC", 624 | "-lc++", 625 | "$(inherited)", 626 | ); 627 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 628 | PRODUCT_NAME = "$(TARGET_NAME)"; 629 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/app.app/app"; 630 | }; 631 | name = Debug; 632 | }; 633 | 00E356F71AD99517003FC87E /* Release */ = { 634 | isa = XCBuildConfiguration; 635 | baseConfigurationReference = AB023322C46EB816BE4D68BF /* Pods-app-appTests.release.xcconfig */; 636 | buildSettings = { 637 | BUNDLE_LOADER = "$(TEST_HOST)"; 638 | COPY_PHASE_STRIP = NO; 639 | INFOPLIST_FILE = appTests/Info.plist; 640 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 641 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 642 | OTHER_LDFLAGS = ( 643 | "-ObjC", 644 | "-lc++", 645 | "$(inherited)", 646 | ); 647 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 648 | PRODUCT_NAME = "$(TARGET_NAME)"; 649 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/app.app/app"; 650 | }; 651 | name = Release; 652 | }; 653 | 13B07F941A680F5B00A75B9A /* Debug */ = { 654 | isa = XCBuildConfiguration; 655 | baseConfigurationReference = 3EF5E411CFB807B8AA0F4C68 /* Pods-app.debug.xcconfig */; 656 | buildSettings = { 657 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 658 | CLANG_ENABLE_MODULES = YES; 659 | CURRENT_PROJECT_VERSION = 1; 660 | ENABLE_BITCODE = NO; 661 | GCC_PREPROCESSOR_DEFINITIONS = ( 662 | "$(inherited)", 663 | "FB_SONARKIT_ENABLED=1", 664 | ); 665 | INFOPLIST_FILE = app/Info.plist; 666 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 667 | OTHER_LDFLAGS = ( 668 | "$(inherited)", 669 | "-ObjC", 670 | "-lc++", 671 | ); 672 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 673 | PRODUCT_NAME = app; 674 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 675 | SWIFT_VERSION = 5.0; 676 | VERSIONING_SYSTEM = "apple-generic"; 677 | }; 678 | name = Debug; 679 | }; 680 | 13B07F951A680F5B00A75B9A /* Release */ = { 681 | isa = XCBuildConfiguration; 682 | baseConfigurationReference = 43455F4801F0C40C49DF0303 /* Pods-app.release.xcconfig */; 683 | buildSettings = { 684 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 685 | CLANG_ENABLE_MODULES = YES; 686 | CURRENT_PROJECT_VERSION = 1; 687 | INFOPLIST_FILE = app/Info.plist; 688 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 689 | OTHER_LDFLAGS = ( 690 | "$(inherited)", 691 | "-ObjC", 692 | "-lc++", 693 | ); 694 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 695 | PRODUCT_NAME = app; 696 | SWIFT_VERSION = 5.0; 697 | VERSIONING_SYSTEM = "apple-generic"; 698 | }; 699 | name = Release; 700 | }; 701 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 702 | isa = XCBuildConfiguration; 703 | baseConfigurationReference = 926F788888DF3EF51B773281 /* Pods-app-tvOS.debug.xcconfig */; 704 | buildSettings = { 705 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 706 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 707 | CLANG_ANALYZER_NONNULL = YES; 708 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 709 | CLANG_WARN_INFINITE_RECURSION = YES; 710 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 711 | DEBUG_INFORMATION_FORMAT = dwarf; 712 | ENABLE_TESTABILITY = YES; 713 | GCC_NO_COMMON_BLOCKS = YES; 714 | INFOPLIST_FILE = "app-tvOS/Info.plist"; 715 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 716 | OTHER_LDFLAGS = ( 717 | "$(inherited)", 718 | "-ObjC", 719 | "-lc++", 720 | ); 721 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.app-tvOS"; 722 | PRODUCT_NAME = "$(TARGET_NAME)"; 723 | SDKROOT = appletvos; 724 | TARGETED_DEVICE_FAMILY = 3; 725 | TVOS_DEPLOYMENT_TARGET = 9.2; 726 | }; 727 | name = Debug; 728 | }; 729 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 730 | isa = XCBuildConfiguration; 731 | baseConfigurationReference = 18F81BF4B158096F831FA58E /* Pods-app-tvOS.release.xcconfig */; 732 | buildSettings = { 733 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 734 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 735 | CLANG_ANALYZER_NONNULL = YES; 736 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 737 | CLANG_WARN_INFINITE_RECURSION = YES; 738 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 739 | COPY_PHASE_STRIP = NO; 740 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 741 | GCC_NO_COMMON_BLOCKS = YES; 742 | INFOPLIST_FILE = "app-tvOS/Info.plist"; 743 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 744 | OTHER_LDFLAGS = ( 745 | "$(inherited)", 746 | "-ObjC", 747 | "-lc++", 748 | ); 749 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.app-tvOS"; 750 | PRODUCT_NAME = "$(TARGET_NAME)"; 751 | SDKROOT = appletvos; 752 | TARGETED_DEVICE_FAMILY = 3; 753 | TVOS_DEPLOYMENT_TARGET = 9.2; 754 | }; 755 | name = Release; 756 | }; 757 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 758 | isa = XCBuildConfiguration; 759 | baseConfigurationReference = DC6DAFC20ECC43D5C894C6EF /* Pods-app-tvOSTests.debug.xcconfig */; 760 | buildSettings = { 761 | BUNDLE_LOADER = "$(TEST_HOST)"; 762 | CLANG_ANALYZER_NONNULL = YES; 763 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 764 | CLANG_WARN_INFINITE_RECURSION = YES; 765 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 766 | DEBUG_INFORMATION_FORMAT = dwarf; 767 | ENABLE_TESTABILITY = YES; 768 | GCC_NO_COMMON_BLOCKS = YES; 769 | INFOPLIST_FILE = "app-tvOSTests/Info.plist"; 770 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 771 | OTHER_LDFLAGS = ( 772 | "$(inherited)", 773 | "-ObjC", 774 | "-lc++", 775 | ); 776 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.app-tvOSTests"; 777 | PRODUCT_NAME = "$(TARGET_NAME)"; 778 | SDKROOT = appletvos; 779 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/app-tvOS.app/app-tvOS"; 780 | TVOS_DEPLOYMENT_TARGET = 10.1; 781 | }; 782 | name = Debug; 783 | }; 784 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 785 | isa = XCBuildConfiguration; 786 | baseConfigurationReference = C6A80A961605C4F13D81120B /* Pods-app-tvOSTests.release.xcconfig */; 787 | buildSettings = { 788 | BUNDLE_LOADER = "$(TEST_HOST)"; 789 | CLANG_ANALYZER_NONNULL = YES; 790 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 791 | CLANG_WARN_INFINITE_RECURSION = YES; 792 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 793 | COPY_PHASE_STRIP = NO; 794 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 795 | GCC_NO_COMMON_BLOCKS = YES; 796 | INFOPLIST_FILE = "app-tvOSTests/Info.plist"; 797 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 798 | OTHER_LDFLAGS = ( 799 | "$(inherited)", 800 | "-ObjC", 801 | "-lc++", 802 | ); 803 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.app-tvOSTests"; 804 | PRODUCT_NAME = "$(TARGET_NAME)"; 805 | SDKROOT = appletvos; 806 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/app-tvOS.app/app-tvOS"; 807 | TVOS_DEPLOYMENT_TARGET = 10.1; 808 | }; 809 | name = Release; 810 | }; 811 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 812 | isa = XCBuildConfiguration; 813 | buildSettings = { 814 | ALWAYS_SEARCH_USER_PATHS = NO; 815 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 816 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 817 | CLANG_CXX_LIBRARY = "libc++"; 818 | CLANG_ENABLE_MODULES = YES; 819 | CLANG_ENABLE_OBJC_ARC = YES; 820 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 821 | CLANG_WARN_BOOL_CONVERSION = YES; 822 | CLANG_WARN_COMMA = YES; 823 | CLANG_WARN_CONSTANT_CONVERSION = YES; 824 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 825 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 826 | CLANG_WARN_EMPTY_BODY = YES; 827 | CLANG_WARN_ENUM_CONVERSION = YES; 828 | CLANG_WARN_INFINITE_RECURSION = YES; 829 | CLANG_WARN_INT_CONVERSION = YES; 830 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 831 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 832 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 833 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 834 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 835 | CLANG_WARN_STRICT_PROTOTYPES = YES; 836 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 837 | CLANG_WARN_UNREACHABLE_CODE = YES; 838 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 839 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 840 | COPY_PHASE_STRIP = NO; 841 | ENABLE_STRICT_OBJC_MSGSEND = YES; 842 | ENABLE_TESTABILITY = YES; 843 | GCC_C_LANGUAGE_STANDARD = gnu99; 844 | GCC_DYNAMIC_NO_PIC = NO; 845 | GCC_NO_COMMON_BLOCKS = YES; 846 | GCC_OPTIMIZATION_LEVEL = 0; 847 | GCC_PREPROCESSOR_DEFINITIONS = ( 848 | "DEBUG=1", 849 | "$(inherited)", 850 | ); 851 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 852 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 853 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 854 | GCC_WARN_UNDECLARED_SELECTOR = YES; 855 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 856 | GCC_WARN_UNUSED_FUNCTION = YES; 857 | GCC_WARN_UNUSED_VARIABLE = YES; 858 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 859 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 860 | LIBRARY_SEARCH_PATHS = ( 861 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 862 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 863 | "\"$(inherited)\"", 864 | ); 865 | MTL_ENABLE_DEBUG_INFO = YES; 866 | ONLY_ACTIVE_ARCH = YES; 867 | SDKROOT = iphoneos; 868 | }; 869 | name = Debug; 870 | }; 871 | 83CBBA211A601CBA00E9B192 /* Release */ = { 872 | isa = XCBuildConfiguration; 873 | buildSettings = { 874 | ALWAYS_SEARCH_USER_PATHS = NO; 875 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 876 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 877 | CLANG_CXX_LIBRARY = "libc++"; 878 | CLANG_ENABLE_MODULES = YES; 879 | CLANG_ENABLE_OBJC_ARC = YES; 880 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 881 | CLANG_WARN_BOOL_CONVERSION = YES; 882 | CLANG_WARN_COMMA = YES; 883 | CLANG_WARN_CONSTANT_CONVERSION = YES; 884 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 885 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 886 | CLANG_WARN_EMPTY_BODY = YES; 887 | CLANG_WARN_ENUM_CONVERSION = YES; 888 | CLANG_WARN_INFINITE_RECURSION = YES; 889 | CLANG_WARN_INT_CONVERSION = YES; 890 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 891 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 892 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 893 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 894 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 895 | CLANG_WARN_STRICT_PROTOTYPES = YES; 896 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 897 | CLANG_WARN_UNREACHABLE_CODE = YES; 898 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 899 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 900 | COPY_PHASE_STRIP = YES; 901 | ENABLE_NS_ASSERTIONS = NO; 902 | ENABLE_STRICT_OBJC_MSGSEND = YES; 903 | GCC_C_LANGUAGE_STANDARD = gnu99; 904 | GCC_NO_COMMON_BLOCKS = YES; 905 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 906 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 907 | GCC_WARN_UNDECLARED_SELECTOR = YES; 908 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 909 | GCC_WARN_UNUSED_FUNCTION = YES; 910 | GCC_WARN_UNUSED_VARIABLE = YES; 911 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 912 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 913 | LIBRARY_SEARCH_PATHS = ( 914 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 915 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 916 | "\"$(inherited)\"", 917 | ); 918 | MTL_ENABLE_DEBUG_INFO = NO; 919 | SDKROOT = iphoneos; 920 | VALIDATE_PRODUCT = YES; 921 | }; 922 | name = Release; 923 | }; 924 | /* End XCBuildConfiguration section */ 925 | 926 | /* Begin XCConfigurationList section */ 927 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "appTests" */ = { 928 | isa = XCConfigurationList; 929 | buildConfigurations = ( 930 | 00E356F61AD99517003FC87E /* Debug */, 931 | 00E356F71AD99517003FC87E /* Release */, 932 | ); 933 | defaultConfigurationIsVisible = 0; 934 | defaultConfigurationName = Release; 935 | }; 936 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "app" */ = { 937 | isa = XCConfigurationList; 938 | buildConfigurations = ( 939 | 13B07F941A680F5B00A75B9A /* Debug */, 940 | 13B07F951A680F5B00A75B9A /* Release */, 941 | ); 942 | defaultConfigurationIsVisible = 0; 943 | defaultConfigurationName = Release; 944 | }; 945 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "app-tvOS" */ = { 946 | isa = XCConfigurationList; 947 | buildConfigurations = ( 948 | 2D02E4971E0B4A5E006451C7 /* Debug */, 949 | 2D02E4981E0B4A5E006451C7 /* Release */, 950 | ); 951 | defaultConfigurationIsVisible = 0; 952 | defaultConfigurationName = Release; 953 | }; 954 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "app-tvOSTests" */ = { 955 | isa = XCConfigurationList; 956 | buildConfigurations = ( 957 | 2D02E4991E0B4A5E006451C7 /* Debug */, 958 | 2D02E49A1E0B4A5E006451C7 /* Release */, 959 | ); 960 | defaultConfigurationIsVisible = 0; 961 | defaultConfigurationName = Release; 962 | }; 963 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "app" */ = { 964 | isa = XCConfigurationList; 965 | buildConfigurations = ( 966 | 83CBBA201A601CBA00E9B192 /* Debug */, 967 | 83CBBA211A601CBA00E9B192 /* Release */, 968 | ); 969 | defaultConfigurationIsVisible = 0; 970 | defaultConfigurationName = Release; 971 | }; 972 | /* End XCConfigurationList section */ 973 | }; 974 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 975 | } 976 | --------------------------------------------------------------------------------