├── .watchmanconfig ├── .gitattributes ├── .yarnrc.yml ├── ios ├── .xcode.env ├── rn_starter_kit │ ├── Images.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── AppDelegate.h │ ├── main.m │ ├── AppDelegate.m │ ├── PrivacyInfo.xcprivacy │ ├── GoogleService-Info.plist │ ├── Info.plist │ └── Base.lproj │ │ └── LaunchScreen.xib ├── rn_starter_kit.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── rn_starter_kitTests │ ├── Info.plist │ └── rn_starter_kitTests.m ├── rn_starter_kit-tvOSTests │ └── Info.plist ├── rn_starter_kit-tvOS │ └── Info.plist ├── Podfile └── rn_starter_kit.xcodeproj │ ├── xcshareddata │ └── xcschemes │ │ ├── rn_starter_kit.xcscheme │ │ └── rn_starter_kit-tvOS.xcscheme │ └── project.pbxproj ├── app.json ├── jest.config.js ├── .eslintrc.js ├── assets ├── icons │ ├── menu.png │ ├── home@1x.png │ ├── home@2x.png │ ├── home@3x.png │ ├── list@1x.png │ ├── list@2x.png │ ├── list@3x.png │ ├── map@1x.png │ ├── map@2x.png │ ├── map@3x.png │ ├── compose@1x.png │ ├── compose@2x.png │ ├── compose@3x.png │ ├── filter@1x.png │ ├── filter@2x.png │ ├── filter@3x.png │ ├── filters@1x.png │ ├── filters@2x.png │ ├── filters@3x.png │ ├── heart@1x.png │ ├── heart@2x.png │ ├── heart@3x.png │ ├── review@1x.png │ ├── review@2x.png │ ├── review@3x.png │ ├── search@1x.png │ ├── search@2x.png │ ├── search@3x.png │ ├── shutdown@1x.png │ ├── categories@1x.png │ ├── categories@2x.png │ ├── categories@3x.png │ ├── collections@1x.png │ ├── collections@2x.png │ ├── collections@3x.png │ ├── default_user@1x.jpg │ ├── heart-filled@1x.png │ ├── heart-filled@2x.png │ ├── heart-filled@3x.png │ ├── star_filled@1x.png │ ├── star_filled@2x.png │ ├── star_filled@3x.png │ ├── star_nofilled@1x.png │ ├── star_nofilled@2x.png │ └── star_nofilled@3x.png └── fonts │ ├── Noto Sans.ttf │ └── Noto Sans Bold.ttf ├── android ├── app │ ├── debug.keystore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── 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 │ │ │ │ └── values │ │ │ │ │ ├── styles.xml │ │ │ │ │ └── strings.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── rn_starter_kit │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── MainApplication.kt │ │ │ └── AndroidManifest.xml │ │ └── debug │ │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ ├── google-services.json │ ├── BUCK │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── .project ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── babel.config.js ├── .prettierrc.js ├── react-native.config.js ├── index.js ├── metro.config.js ├── __tests__ └── App-test.js ├── src ├── components │ ├── HeaderButton.js │ ├── MenuButton.js │ ├── LoadingModal.js │ └── DrawerContainer.js ├── Configuration.js ├── reducers │ └── index.js ├── screens │ ├── LoadScreen.js │ ├── HomeScreen.js │ ├── WelcomeScreen.js │ ├── SignupScreen.js │ └── LoginScreen.js ├── AppStyles.js └── navigations │ └── AppNavigation.js ├── App.js ├── .gitignore ├── package.json └── README.md /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: node-modules 2 | 3 | 4 | -------------------------------------------------------------------------------- /ios/.xcode.env: -------------------------------------------------------------------------------- 1 | export NODE_BINARY=$(command -v node) 2 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "StarterApp", 3 | "displayName": "StarterApp" 4 | } -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /assets/icons/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/menu.png -------------------------------------------------------------------------------- /assets/icons/home@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/home@1x.png -------------------------------------------------------------------------------- /assets/icons/home@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/home@2x.png -------------------------------------------------------------------------------- /assets/icons/home@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/home@3x.png -------------------------------------------------------------------------------- /assets/icons/list@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/list@1x.png -------------------------------------------------------------------------------- /assets/icons/list@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/list@2x.png -------------------------------------------------------------------------------- /assets/icons/list@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/list@3x.png -------------------------------------------------------------------------------- /assets/icons/map@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/map@1x.png -------------------------------------------------------------------------------- /assets/icons/map@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/map@2x.png -------------------------------------------------------------------------------- /assets/icons/map@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/map@3x.png -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/android/app/debug.keystore -------------------------------------------------------------------------------- /assets/fonts/Noto Sans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/fonts/Noto Sans.ttf -------------------------------------------------------------------------------- /assets/icons/compose@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/compose@1x.png -------------------------------------------------------------------------------- /assets/icons/compose@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/compose@2x.png -------------------------------------------------------------------------------- /assets/icons/compose@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/compose@3x.png -------------------------------------------------------------------------------- /assets/icons/filter@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/filter@1x.png -------------------------------------------------------------------------------- /assets/icons/filter@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/filter@2x.png -------------------------------------------------------------------------------- /assets/icons/filter@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/filter@3x.png -------------------------------------------------------------------------------- /assets/icons/filters@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/filters@1x.png -------------------------------------------------------------------------------- /assets/icons/filters@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/filters@2x.png -------------------------------------------------------------------------------- /assets/icons/filters@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/filters@3x.png -------------------------------------------------------------------------------- /assets/icons/heart@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/heart@1x.png -------------------------------------------------------------------------------- /assets/icons/heart@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/heart@2x.png -------------------------------------------------------------------------------- /assets/icons/heart@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/heart@3x.png -------------------------------------------------------------------------------- /assets/icons/review@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/review@1x.png -------------------------------------------------------------------------------- /assets/icons/review@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/review@2x.png -------------------------------------------------------------------------------- /assets/icons/review@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/review@3x.png -------------------------------------------------------------------------------- /assets/icons/search@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/search@1x.png -------------------------------------------------------------------------------- /assets/icons/search@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/search@2x.png -------------------------------------------------------------------------------- /assets/icons/search@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/search@3x.png -------------------------------------------------------------------------------- /assets/icons/shutdown@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/shutdown@1x.png -------------------------------------------------------------------------------- /assets/fonts/Noto Sans Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/fonts/Noto Sans Bold.ttf -------------------------------------------------------------------------------- /assets/icons/categories@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/categories@1x.png -------------------------------------------------------------------------------- /assets/icons/categories@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/categories@2x.png -------------------------------------------------------------------------------- /assets/icons/categories@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/categories@3x.png -------------------------------------------------------------------------------- /assets/icons/collections@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/collections@1x.png -------------------------------------------------------------------------------- /assets/icons/collections@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/collections@2x.png -------------------------------------------------------------------------------- /assets/icons/collections@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/collections@3x.png -------------------------------------------------------------------------------- /assets/icons/default_user@1x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/default_user@1x.jpg -------------------------------------------------------------------------------- /assets/icons/heart-filled@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/heart-filled@1x.png -------------------------------------------------------------------------------- /assets/icons/heart-filled@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/heart-filled@2x.png -------------------------------------------------------------------------------- /assets/icons/heart-filled@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/heart-filled@3x.png -------------------------------------------------------------------------------- /assets/icons/star_filled@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/star_filled@1x.png -------------------------------------------------------------------------------- /assets/icons/star_filled@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/star_filled@2x.png -------------------------------------------------------------------------------- /assets/icons/star_filled@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/star_filled@3x.png -------------------------------------------------------------------------------- /assets/icons/star_nofilled@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/star_nofilled@1x.png -------------------------------------------------------------------------------- /assets/icons/star_nofilled@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/star_nofilled@2x.png -------------------------------------------------------------------------------- /assets/icons/star_nofilled@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/assets/icons/star_nofilled@3x.png -------------------------------------------------------------------------------- /ios/rn_starter_kit/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | plugins: ['react-native-reanimated/plugin'], 4 | }; 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /ios/rn_starter_kit/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /react-native.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | project: { 3 | ios: {}, 4 | android: {}, 5 | }, 6 | assets: ['./assets/fonts/', './assets/icons/'], 7 | }; 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/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/dopebase/react-native-starter-kit/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/rn_starter_kit/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-8.8-all.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ios/rn_starter_kit.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/rn_starter_kit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); 2 | 3 | /** 4 | * Metro configuration 5 | * https://reactnative.dev/docs/metro 6 | * 7 | * @type {import('metro-config').MetroConfig} 8 | */ 9 | const config = {}; 10 | 11 | module.exports = mergeConfig(getDefaultConfig(__dirname), config); -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | StarterApp 4 | 1288726485109267 5 | fb1288726485109267 6 | d6e1669fa01421ca37003d8725923a66 7 | 8 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } 2 | plugins { id("com.facebook.react.settings") } 3 | extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } 4 | rootProject.name = 'rn_starter_kit' 5 | include ':app' 6 | includeBuild('../node_modules/@react-native/gradle-plugin') -------------------------------------------------------------------------------- /src/components/HeaderButton.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {TouchableOpacity, Image} from 'react-native'; 3 | import {AppIcon} from '../AppStyles'; 4 | 5 | export default function HeaderButton(props) { 6 | return ( 7 | 8 | 9 | 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {AppRegistry} from 'react-native'; 3 | import {thunk} from 'redux-thunk'; 4 | import {Provider} from 'react-redux'; 5 | import {createStore, applyMiddleware} from 'redux'; 6 | 7 | import AppReducer from './src/reducers'; 8 | import AppNavigator from './src/navigations/AppNavigation'; 9 | 10 | const store = createStore(AppReducer, applyMiddleware(thunk)); 11 | 12 | 13 | 14 | function StarterApp() { 15 | return ( 16 | 17 | 18 | 19 | ); 20 | } 21 | 22 | AppRegistry.registerComponent('rn_starter_kit', () => StarterApp); 23 | 24 | export default StarterApp; 25 | -------------------------------------------------------------------------------- /src/Configuration.js: -------------------------------------------------------------------------------- 1 | import moment from "moment"; 2 | 3 | export const Configuration = { 4 | home: { 5 | tab_bar_height: 50, 6 | initial_show_count: 4, 7 | listing_item: { 8 | height: 130, 9 | offset: 15, 10 | saved: { 11 | position_top: 5, 12 | size: 25 13 | } 14 | } 15 | }, 16 | map: { 17 | origin: { 18 | latitude: 37.78825, 19 | longitude: -122.4324 20 | }, 21 | delta: { 22 | latitude: 0.0422, 23 | longitude: 0.0221 24 | } 25 | }, 26 | timeFormat: postTime => { 27 | time = ""; 28 | if (postTime) { 29 | time = moment(postTime).fromNow(); 30 | } 31 | // time = postTime.toUTCString(); 32 | return time; 33 | } 34 | }; 35 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "000000000000", 4 | "project_id": "react-native-starter-kit", 5 | "storage_bucket": "react-native-starter-kit.appspot.com" 6 | }, 7 | "client": [{ 8 | "client_info": { 9 | "mobilesdk_app_id": "1:000000000000:android:0000000000000000", 10 | "android_client_info": { 11 | "package_name": "com.rn_starter_kit" 12 | } 13 | }, 14 | "oauth_client": [], 15 | "api_key": [{ 16 | "current_key": "AIzaSyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" 17 | }], 18 | "services": { 19 | "appinvite_service": { 20 | "other_platform_oauth_client": [] 21 | } 22 | } 23 | }], 24 | "configuration_version": "1" 25 | } -------------------------------------------------------------------------------- /ios/rn_starter_kit/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/rn_starter_kitTests/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/rn_starter_kit-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /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 = "35.0.0" 6 | minSdkVersion = 24 7 | compileSdkVersion = 35 8 | targetSdkVersion = 34 9 | ndkVersion = "26.1.10909125" 10 | kotlinVersion = "1.9.24" 11 | } 12 | repositories { 13 | google() 14 | jcenter() 15 | mavenCentral() 16 | } 17 | dependencies { 18 | classpath("com.android.tools.build:gradle") 19 | classpath("com.facebook.react:react-native-gradle-plugin") 20 | classpath('com.google.gms:google-services:4.4.2') 21 | // NOTE: Do not place your application dependencies here; they belong 22 | // in the individual module build.gradle files 23 | } 24 | } 25 | 26 | apply plugin: "com.facebook.react.rootproject" -------------------------------------------------------------------------------- /src/reducers/index.js: -------------------------------------------------------------------------------- 1 | import {combineReducers} from 'redux'; 2 | import AsyncStorage from '@react-native-async-storage/async-storage' 3 | 4 | const LOGIN = 'LOGIN'; 5 | const LOGOUT = 'LOGOUT'; 6 | 7 | const initialAuthState = {isLoggedIn: false}; 8 | 9 | export const login = (user) => ({ 10 | type: LOGIN, 11 | user, 12 | }); 13 | 14 | export const logout = () => ({ 15 | type: LOGOUT, 16 | }); 17 | 18 | function auth(state = initialAuthState, action) { 19 | switch (action.type) { 20 | case LOGIN: 21 | return {...state, isLoggedIn: true, user: action.user}; 22 | case LOGOUT: 23 | AsyncStorage.removeItem('@loggedInUserID:id'); 24 | AsyncStorage.removeItem('@loggedInUserID:key'); 25 | AsyncStorage.removeItem('@loggedInUserID:password'); 26 | return {...state, isLoggedIn: false, user: {}}; 27 | default: 28 | return state; 29 | } 30 | } 31 | 32 | const AppReducer = combineReducers({ 33 | auth, 34 | }); 35 | 36 | export default AppReducer; 37 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rn_starter_kit/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.rn_starter_kit 2 | 3 | import com.facebook.react.ReactActivity 4 | import com.facebook.react.ReactActivityDelegate 5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled 6 | import com.facebook.react.defaults.DefaultReactActivityDelegate 7 | 8 | class MainActivity : ReactActivity() { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule 12 | * rendering of the component. 13 | */ 14 | override fun getMainComponentName(): String = "rn_starter_kit" 15 | 16 | /** 17 | * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] 18 | * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] 19 | */ 20 | override fun createReactActivityDelegate(): ReactActivityDelegate = 21 | DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) 22 | } 23 | -------------------------------------------------------------------------------- /ios/rn_starter_kit/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | 5 | 6 | #import 7 | 8 | @implementation AppDelegate 9 | 10 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 11 | { 12 | 13 | if ([FIRApp defaultApp] == nil) { 14 | [FIRApp configure]; 15 | } 16 | self.moduleName = @"rn_starter_kit"; 17 | // You can add your custom initial props in the dictionary below. 18 | // They will be passed down to the ViewController used by React Native. 19 | self.initialProps = @{}; 20 | 21 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 22 | 23 | 24 | } 25 | 26 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 27 | { 28 | return [self bundleURL]; 29 | } 30 | 31 | - (NSURL *)bundleURL 32 | { 33 | #if DEBUG 34 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 35 | #else 36 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 37 | #endif 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /src/components/MenuButton.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {Image, StyleSheet, Text, TouchableHighlight, View} from 'react-native'; 3 | import {AppStyles} from '../AppStyles'; 4 | 5 | export default function MenuButton(props) { 6 | return ( 7 | 11 | 12 | 13 | {props.title} 14 | 15 | 16 | ); 17 | } 18 | 19 | const styles = StyleSheet.create({ 20 | btnClickContain: { 21 | flexDirection: 'row', 22 | padding: 5, 23 | marginTop: 5, 24 | marginBottom: 5, 25 | }, 26 | btnContainer: { 27 | flex: 1, 28 | flexDirection: 'row', 29 | alignItems: 'flex-start', 30 | }, 31 | btnIcon: { 32 | height: 25, 33 | width: 25, 34 | }, 35 | btnText: { 36 | fontSize: 16, 37 | marginLeft: 10, 38 | marginTop: 2, 39 | }, 40 | }); 41 | -------------------------------------------------------------------------------- /src/components/LoadingModal.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, ActivityIndicator, StyleSheet } from 'react-native'; 3 | 4 | const LoadingModal = ({ isVisible }) => { 5 | if (!isVisible) return null; 6 | 7 | return ( 8 | 9 | 10 | 11 | 12 | 13 | ); 14 | }; 15 | 16 | const styles = StyleSheet.create({ 17 | container: { 18 | position: 'absolute', 19 | top: 0, 20 | left: 0, 21 | right: 0, 22 | bottom: 0, 23 | justifyContent: 'center', 24 | alignItems: 'center', 25 | backgroundColor: 'rgba(0, 0, 0, 0.1)', 26 | zIndex: 1000, 27 | }, 28 | loadingBox: { 29 | padding: 20, 30 | backgroundColor: 'white', 31 | borderRadius: 10, 32 | shadowColor: '#000', 33 | shadowOffset: { 34 | width: 0, 35 | height: 2, 36 | }, 37 | shadowOpacity: 0.25, 38 | shadowRadius: 3.84, 39 | elevation: 5, 40 | }, 41 | }); 42 | 43 | export default LoadingModal; -------------------------------------------------------------------------------- /ios/rn_starter_kit/PrivacyInfo.xcprivacy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPrivacyAccessedAPITypes 6 | 7 | 8 | NSPrivacyAccessedAPIType 9 | NSPrivacyAccessedAPICategoryFileTimestamp 10 | NSPrivacyAccessedAPITypeReasons 11 | 12 | C617.1 13 | 14 | 15 | 16 | NSPrivacyAccessedAPIType 17 | NSPrivacyAccessedAPICategoryUserDefaults 18 | NSPrivacyAccessedAPITypeReasons 19 | 20 | CA92.1 21 | 1C8F.1 22 | C56D.1 23 | 24 | 25 | 26 | NSPrivacyAccessedAPIType 27 | NSPrivacyAccessedAPICategorySystemBootTime 28 | NSPrivacyAccessedAPITypeReasons 29 | 30 | 35F9.1 31 | 32 | 33 | 34 | NSPrivacyCollectedDataTypes 35 | 36 | NSPrivacyTracking 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/screens/LoadScreen.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { ActivityIndicator, View } from 'react-native'; 3 | import { StyleSheet } from 'react-native'; 4 | 5 | const LoadScreen = () => { 6 | return ( 7 | 8 | 9 | 10 | 11 | 12 | ); 13 | }; 14 | 15 | const styles = StyleSheet.create({ 16 | container: { 17 | flex: 1, 18 | justifyContent: 'center', 19 | alignItems: 'center', 20 | backgroundColor: '#ffffff' 21 | }, 22 | loadingContainer: { 23 | flex: 1, 24 | justifyContent: 'center', 25 | alignItems: 'center', 26 | backgroundColor: 'transparent', 27 | }, 28 | loadingBox: { 29 | width: 100, 30 | height: 100, 31 | justifyContent: 'center', 32 | alignItems: 'center', 33 | backgroundColor: '#ffffff', 34 | borderRadius: 10, 35 | elevation: 10, 36 | shadowColor: '#000', 37 | shadowOffset: { width: 0, height: 2 }, 38 | shadowOpacity: 0.8, 39 | shadowRadius: 2, 40 | }, 41 | }); 42 | 43 | export default LoadScreen; -------------------------------------------------------------------------------- /.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 | **/.xcode.env.local 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | *.hprof 33 | .cxx/ 34 | *.keystore 35 | !debug.keystore 36 | 37 | # node.js 38 | # 39 | node_modules/ 40 | npm-debug.log 41 | yarn-error.log 42 | 43 | # fastlane 44 | # 45 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 46 | # screenshots whenever they are needed. 47 | # For more information about the recommended setup visit: 48 | # https://docs.fastlane.tools/best-practices/source-control/ 49 | 50 | **/fastlane/report.xml 51 | **/fastlane/Preview.html 52 | **/fastlane/screenshots 53 | **/fastlane/test_output 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # Ruby / CocoaPods 59 | **/Pods/ 60 | /vendor/bundle/ 61 | 62 | # Temporary files created by Metro to check the health of the file watcher 63 | .metro-health-check* 64 | 65 | # testing 66 | /coverage 67 | 68 | # Yarn 69 | .yarn/* 70 | !.yarn/patches 71 | !.yarn/plugins 72 | !.yarn/releases 73 | !.yarn/sdks 74 | !.yarn/versions -------------------------------------------------------------------------------- /ios/rn_starter_kit/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 763342324681-3lv5cu8e4q99e8uq552gr88uooadncih.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.763342324681-3lv5cu8e4q99e8uq552gr88uooadncih 9 | ANDROID_CLIENT_ID 10 | 763342324681-1e5jt62sfkli8r6t0aaqbh2isihtoq9r.apps.googleusercontent.com 11 | API_KEY 12 | AIzaSyBCQs-1JUmNmrhbkHGGJceeQpD-CebrP3U 13 | GCM_SENDER_ID 14 | 763342324681 15 | PLIST_VERSION 16 | 1 17 | BUNDLE_ID 18 | com.rn_starter_kit.starterkit.rn.ios 19 | PROJECT_ID 20 | kaamru-ec015 21 | STORAGE_BUCKET 22 | kaamru-ec015.appspot.com 23 | IS_ADS_ENABLED 24 | 25 | IS_ANALYTICS_ENABLED 26 | 27 | IS_APPINVITE_ENABLED 28 | 29 | IS_GCM_ENABLED 30 | 31 | IS_SIGNIN_ENABLED 32 | 33 | GOOGLE_APP_ID 34 | 1:763342324681:ios:73dc80a2781768cb8a5e18 35 | DATABASE_URL 36 | https://kaamru-ec015.firebaseio.com 37 | 38 | -------------------------------------------------------------------------------- /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.rn_starter_kit", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.rn_starter_kit", 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 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 16 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/components/DrawerContainer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { StyleSheet, View } from 'react-native'; 3 | import MenuButton from '../components/MenuButton'; 4 | import { AppIcon } from '../AppStyles'; 5 | import auth from '@react-native-firebase/auth'; 6 | import { useDispatch } from 'react-redux'; 7 | import { logout } from '../reducers'; 8 | import AsyncStorage from '@react-native-async-storage/async-storage'; 9 | 10 | export default function DrawerContainer({navigation}) { 11 | const dispatch = useDispatch(); 12 | 13 | const handleLogout = async () => { 14 | try { 15 | await auth().signOut(); 16 | 17 | await AsyncStorage.multiRemove([ 18 | '@loggedInUserID:id', 19 | '@loggedInUserID:key', 20 | '@loggedInUserID:password' 21 | ]); 22 | 23 | dispatch(logout()); 24 | 25 | navigation.reset({ 26 | index: 0, 27 | routes: [{ name: 'LoginStack', params: { screen: 'Welcome' } }], 28 | }); 29 | } catch (error) { 30 | console.error('Logout error:', error); 31 | } 32 | }; 33 | 34 | return ( 35 | 36 | 37 | 42 | 43 | 44 | ); 45 | } 46 | 47 | const styles = StyleSheet.create({ 48 | content: { 49 | flex: 1, 50 | flexDirection: 'row', 51 | alignItems: 'center', 52 | justifyContent: 'center', 53 | }, 54 | container: { 55 | flex: 1, 56 | alignItems: 'flex-start', 57 | paddingHorizontal: 20, 58 | }, 59 | }); -------------------------------------------------------------------------------- /src/screens/HomeScreen.js: -------------------------------------------------------------------------------- 1 | import React, { useLayoutEffect } from 'react'; 2 | import { ScrollView, StyleSheet, Text } from 'react-native'; 3 | import { connect, useSelector } from 'react-redux'; 4 | import { AppStyles } from '../AppStyles'; 5 | import { Configuration } from '../Configuration'; 6 | 7 | function HomeScreen({ navigation }) { 8 | const auth = useSelector((state) => state.auth); 9 | 10 | useLayoutEffect(() => { 11 | navigation.setOptions({ 12 | title: 'Home', 13 | }); 14 | }, []); 15 | 16 | const getUserName = () => { 17 | if (auth.user) { 18 | if (auth.user.fullName) { 19 | return auth.user.fullName; 20 | } 21 | const { firstName, lastName } = auth.user; 22 | if (firstName && lastName) { 23 | return `${firstName} ${lastName}`; 24 | } else if (firstName) { 25 | return firstName; 26 | } else if (lastName) { 27 | return lastName; 28 | } 29 | } 30 | return 'User'; 31 | }; 32 | 33 | return ( 34 | 35 | 36 | Welcome {getUserName()} 37 | 38 | 39 | ); 40 | } 41 | 42 | const styles = StyleSheet.create({ 43 | container: { 44 | backgroundColor: 'white', 45 | flex: 1, 46 | justifyContent: 'center', 47 | alignItems: 'center', 48 | padding: Configuration.home.listing_item.offset, 49 | }, 50 | title: { 51 | fontWeight: 'bold', 52 | color: AppStyles.color.title, 53 | fontSize: 25, 54 | }, 55 | }); 56 | 57 | const mapStateToProps = (state) => ({ 58 | user: state.auth.user, 59 | }); 60 | 61 | export default connect(mapStateToProps)(HomeScreen); 62 | -------------------------------------------------------------------------------- /ios/rn_starter_kit-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 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rn_starter_kit/MainApplication.kt: -------------------------------------------------------------------------------- 1 | package com.rn_starter_kit 2 | 3 | import android.app.Application 4 | import com.facebook.react.PackageList 5 | import com.facebook.react.ReactApplication 6 | import com.facebook.react.ReactHost 7 | import com.facebook.react.ReactNativeHost 8 | import com.facebook.react.ReactPackage 9 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load 10 | import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost 11 | import com.facebook.react.defaults.DefaultReactNativeHost 12 | import com.facebook.react.soloader.OpenSourceMergedSoMapping 13 | import com.facebook.soloader.SoLoader 14 | 15 | class MainApplication : Application(), ReactApplication { 16 | 17 | override val reactNativeHost: ReactNativeHost = 18 | object : DefaultReactNativeHost(this) { 19 | override fun getPackages(): List = 20 | PackageList(this).packages.apply { 21 | // Packages that cannot be autolinked yet can be added manually here, for example: 22 | // add(MyReactNativePackage()) 23 | } 24 | 25 | override fun getJSMainModuleName(): String = "index" 26 | 27 | override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG 28 | 29 | override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED 30 | override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED 31 | } 32 | 33 | override val reactHost: ReactHost 34 | get() = getDefaultReactHost(applicationContext, reactNativeHost) 35 | 36 | override fun onCreate() { 37 | super.onCreate() 38 | SoLoader.init(this, OpenSourceMergedSoMapping) 39 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { 40 | // If you opted-in for the New Architecture, we load the native entry point for this app. 41 | load() 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /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: -Xmx512m -XX:MaxMetaspaceSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m 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 | 25 | # Use this property to specify which architecture you want to build. 26 | # You can also override it from the CLI using 27 | # ./gradlew -PreactNativeArchitectures=x86_64 28 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 29 | 30 | # Use this property to enable support to the new architecture. 31 | # This will allow you to use TurboModules and the Fabric render in 32 | # your application. You should enable this flag either if you want 33 | # to write custom TurboModules/Fabric components OR use libraries that 34 | # are providing them. 35 | newArchEnabled=true 36 | 37 | # Use this property to enable or disable the Hermes JS engine. 38 | # If set to false, you will be using JSC instead. 39 | hermesEnabled=true -------------------------------------------------------------------------------- /ios/rn_starter_kitTests/rn_starter_kitTests.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" 9 | 10 | @interface rn_starter_kitTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation rn_starter_kitTests 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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rn_starter_kit", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-async-storage/async-storage": "2.0.0", 14 | "@react-native-masked-view/masked-view": "^0.3.1", 15 | "@react-native-firebase/app": "21.4.0", 16 | "@react-native-firebase/auth": "21.4.0", 17 | "@react-native-firebase/firestore": "21.4.0", 18 | "@react-native-google-signin/google-signin": "13.1.0", 19 | "@react-navigation/bottom-tabs": "^6.5.20", 20 | "@react-navigation/drawer": "^6.6.15", 21 | "@react-navigation/native": "^6.1.17", 22 | "@react-navigation/stack": "^6.3.29", 23 | "add": "2.0.6", 24 | "moment": "2.30.1", 25 | "react": "18.3.1", 26 | "react-native": "0.76.5", 27 | "react-native-fast-image": "8.6.3", 28 | "react-native-fbsdk": "3.0.0", 29 | "react-native-gesture-handler": "2.20.2", 30 | "react-native-reanimated": "3.16.1", 31 | "react-native-safe-area-context": "4.14.0", 32 | "react-native-screens": "4.0.0", 33 | "react-native-vector-icons": "10.2.0", 34 | "react-redux": "9.1.2", 35 | "redux": "5.0.1", 36 | "redux-thunk": "3.1.0", 37 | "yarn": "1.22.22" 38 | }, 39 | "devDependencies": { 40 | "@babel/core": "7.25.2", 41 | "@babel/preset-env": "7.25.3", 42 | "@babel/runtime": "7.25.0", 43 | "@react-native-community/cli": "15.0.0", 44 | "@react-native/babel-preset": "0.76.1", 45 | "@react-native/eslint-config": "0.76.1", 46 | "@react-native/metro-config": "0.76.1", 47 | "babel-jest": "29.6.3", 48 | "eslint": "8.19.0", 49 | "jest": "29.6.3", 50 | "prettier": "2.8.8", 51 | "react-test-renderer": "18.3.1" 52 | }, 53 | "engines": { 54 | "node": ">=18" 55 | }, 56 | "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" 57 | } 58 | -------------------------------------------------------------------------------- /ios/rn_starter_kit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | rn_starter_kit 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 | CFBundleURLSchemes 27 | 28 | fb1288726485109267 29 | com.googleusercontent.apps.763342324681-3lv5cu8e4q99e8uq552gr88uooadncih 30 | 31 | 32 | 33 | CFBundleVersion 34 | 1 35 | FacebookAppID 36 | 1288726485109267 37 | FacebookClientToken 38 | d6e1669fa01421ca37003d8725923a66 39 | FacebookDisplayName 40 | React Native Start Kit 41 | LSRequiresIPhoneOS 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | 47 | NSAllowsArbitraryLoads 48 | 49 | NSAllowsLocalNetworking 50 | 51 | 52 | 53 | NSLocationWhenInUseUsageDescription 54 | 55 | UILaunchStoryboardName 56 | LaunchScreen 57 | UIRequiredDeviceCapabilities 58 | 59 | arm64 60 | 61 | UISupportedInterfaceOrientations 62 | 63 | UIInterfaceOrientationPortrait 64 | UIInterfaceOrientationLandscapeLeft 65 | UIInterfaceOrientationLandscapeRight 66 | 67 | UIViewControllerBasedStatusBarAppearance 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /src/AppStyles.js: -------------------------------------------------------------------------------- 1 | import { Platform, StyleSheet, Dimensions } from "react-native"; 2 | import { Configuration } from "./Configuration"; 3 | 4 | const { width, height } = Dimensions.get("window"); 5 | const SCREEN_WIDTH = width < height ? width : height; 6 | const numColumns = 2; 7 | 8 | export const AppStyles = { 9 | color: { 10 | main: "#5ea23a", 11 | text: "#696969", 12 | title: "#464646", 13 | subtitle: "#545454", 14 | categoryTitle: "#161616", 15 | tint: "#ff5a66", 16 | description: "#bbbbbb", 17 | filterTitle: "#8a8a8a", 18 | starRating: "#2bdf85", 19 | location: "#a9a9a9", 20 | white: "white", 21 | facebook: "#4267b2", 22 | grey: "grey", 23 | greenBlue: "#00aea8", 24 | placeholder: "#a0a0a0", 25 | background: "#f2f2f2", 26 | blue: "#3293fe" 27 | }, 28 | fontSize: { 29 | title: 30, 30 | content: 20, 31 | normal: 16 32 | }, 33 | buttonWidth: { 34 | main: "70%" 35 | }, 36 | textInputWidth: { 37 | main: "80%" 38 | }, 39 | borderRadius: { 40 | main: 25, 41 | small: 5 42 | } 43 | }; 44 | 45 | export const AppIcon = { 46 | container: { 47 | backgroundColor: "white", 48 | borderRadius: 20, 49 | padding: 8, 50 | marginRight: 10 51 | }, 52 | style: { 53 | tintColor: AppStyles.color.tint, 54 | width: 25, 55 | height: 25 56 | }, 57 | images: { 58 | home: require("../assets/icons/home.png"), 59 | defaultUser: require("../assets/icons/default_user.jpg"), 60 | logout: require("../assets/icons/shutdown.png"), 61 | menu: require("../assets/icons/menu.png") 62 | } 63 | }; 64 | 65 | export const HeaderButtonStyle = StyleSheet.create({ 66 | multi: { 67 | flexDirection: "row" 68 | }, 69 | container: { 70 | padding: 10 71 | }, 72 | image: { 73 | justifyContent: "center", 74 | width: 35, 75 | height: 35, 76 | margin: 6 77 | }, 78 | rightButton: { 79 | color: AppStyles.color.tint, 80 | marginRight: 10, 81 | fontWeight: "normal", 82 | } 83 | }); 84 | 85 | export const ListStyle = StyleSheet.create({ 86 | title: { 87 | fontSize: 16, 88 | color: AppStyles.color.subtitle, 89 | fontWeight: "bold" 90 | }, 91 | subtitleView: { 92 | minHeight: 55, 93 | flexDirection: "row", 94 | paddingTop: 5, 95 | marginLeft: 10 96 | }, 97 | leftSubtitle: { 98 | flex: 2 99 | }, 100 | avatarStyle: { 101 | height: 80, 102 | width: 80 103 | } 104 | }); 105 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | 2 | require_relative '../node_modules/react-native/scripts/react_native_pods' 3 | platform :ios, '15.1' 4 | install! 'cocoapods', :deterministic_uuids => false 5 | 6 | production = ENV["PRODUCTION"] == "1" 7 | 8 | require 'json' 9 | podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {} 10 | 11 | target 'rn_starter_kit' do 12 | 13 | 14 | 15 | config = use_native_modules! 16 | 17 | use_frameworks! :linkage => :static 18 | $RNFirebaseAsStaticFramework = true 19 | 20 | # Flags change depending on the env values. 21 | flags = get_default_flags() 22 | 23 | use_react_native!( 24 | :path => config[:reactNativePath], 25 | # to enable hermes on iOS, change `false` to `true` and then install pods 26 | :production => production, 27 | :hermes_enabled => flags[:hermes_enabled], 28 | :fabric_enabled => flags[:fabric_enabled], 29 | # :flipper_configuration => FlipperConfiguration.disabled, 30 | # An absolute path to your application root. 31 | :app_path => "#{Pod::Config.instance.installation_root}/.." 32 | ) 33 | 34 | # pod 'ReactNativeART', :path => '../node_modules/@react-native-community/art' 35 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' 36 | 37 | 38 | 39 | post_install do |installer| 40 | react_native_post_install( 41 | installer, 42 | config[:reactNativePath], 43 | :mac_catalyst_enabled => false 44 | ) 45 | # __apply_Xcode_12_5_M1_post_install_workaround(installer) 46 | # Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64 47 | # Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933 48 | installer.pods_project.targets.each do |target| 49 | if (target.name&.eql?('FBReactNativeSpec')) 50 | target.build_phases.each do |build_phase| 51 | if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs')) 52 | target.build_phases.move(build_phase, 0) 53 | end 54 | end 55 | end 56 | 57 | if target.name == "AmplifyRTNCore" 58 | target.build_phases.each do |build_phase| 59 | if build_phase.is_a?(Xcodeproj::Project::Object::PBXSourcesBuildPhase) 60 | build_phase.files.delete_if do |file| 61 | file.file_ref.path.include?("JKBigInteger") || file.file_ref.path.include?("JKBigDecimal") 62 | end 63 | end 64 | end 65 | end 66 | 67 | 68 | if target.name == 'BoringSSL-GRPC' 69 | target.source_build_phase.files.each do |file| 70 | if file.settings && file.settings['COMPILER_FLAGS'] 71 | flags = file.settings['COMPILER_FLAGS'].split 72 | flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' } 73 | file.settings['COMPILER_FLAGS'] = flags.join(' ') 74 | end 75 | end 76 | end 77 | end 78 | end 79 | 80 | end 81 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native Starter Kit 🚀 2 | 3 | Bootstrap your app development by using this awesome react native starter kit, integrated with Firebase Auth and Facebook Login. Clone this boilerplate app to get you up and running quickly. 4 | 5 | ## Fully working features 6 | 7 | - Login with Facebook 8 | - Sign in with Google 9 | - User Management with Firebase Auth 10 | - Firebase Firestore Integration 11 | - Email/Password Registration 12 | - Persistent Login Credentials (a.k.a Remember password) 13 | - Logout Functionality 14 | - Beautiful UI and transitions 15 | 16 | ## Installation 17 | 18 | * Unarchive the downloaded .zip 19 | * Go to Firebase.com and create your own account and a project 20 | * In Firebase Console, create your own Android App and iOS App 21 | * Download the google-services.json file from your Firebase Console, and place it in the android folder of the starter kit (override the existing one) 22 | * Download the GoogleService-Info.json file from your Firebase Console, and place it in the ios folder of the starter kit (override the existing one) 23 | * Open a Terminal, locate the starter kit folder (where the package.json file is) and run: 24 | 25 | ``` 26 | yarn install && react-native run-android 27 | ``` 28 | 29 | 30 | ## App Designs 31 | 32 | 33 | react native splash screen 34 | 35 | react native starter kit welcome 36 | 37 | react native starter kit firebase 38 | 39 | registration screen firebase react native 40 | 41 | ## Google signin 42 | 43 | - when signing in with google on android and you get "developer_error google sign in". 44 | - take the following steps: 45 | 46 | * in the command line, enter: 47 | keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore 48 | 49 | * when prompted for password, enter: 50 | android 51 | 52 | * you should successfully generate some keys. 53 | * copy the "SHA1:" key 54 | * visit firestore console in your browser 55 | * under settings>>Project settings select "RN Starter Kit Android" 56 | * click "add fingerprint" 57 | * paste the copied "SHA1:" key 58 | 59 | * then rebuild app 60 | 61 | Coded with ❤️ by Instamobile and iOS App Templates. 62 | -------------------------------------------------------------------------------- /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 | @rem SPDX-License-Identifier: Apache-2.0 17 | @rem 18 | 19 | @if "%DEBUG%"=="" @echo off 20 | @rem ########################################################################## 21 | @rem 22 | @rem Gradle startup script for Windows 23 | @rem 24 | @rem ########################################################################## 25 | 26 | @rem Set local scope for the variables with windows NT shell 27 | if "%OS%"=="Windows_NT" setlocal 28 | 29 | set DIRNAME=%~dp0 30 | if "%DIRNAME%"=="" set DIRNAME=. 31 | @rem This is normally unused 32 | set APP_BASE_NAME=%~n0 33 | set APP_HOME=%DIRNAME% 34 | 35 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 36 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 37 | 38 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 39 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 40 | 41 | @rem Find java.exe 42 | if defined JAVA_HOME goto findJavaFromJavaHome 43 | 44 | set JAVA_EXE=java.exe 45 | %JAVA_EXE% -version >NUL 2>&1 46 | if %ERRORLEVEL% equ 0 goto execute 47 | 48 | echo. 1>&2 49 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 50 | echo. 1>&2 51 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 52 | echo location of your Java installation. 1>&2 53 | 54 | goto fail 55 | 56 | :findJavaFromJavaHome 57 | set JAVA_HOME=%JAVA_HOME:"=% 58 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 59 | 60 | if exist "%JAVA_EXE%" goto execute 61 | 62 | echo. 1>&2 63 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 64 | echo. 1>&2 65 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 66 | echo location of your Java installation. 1>&2 67 | 68 | goto fail 69 | 70 | :execute 71 | @rem Setup the command line 72 | 73 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 74 | 75 | 76 | @rem Execute Gradle 77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 78 | 79 | :end 80 | @rem End local scope for the variables with windows NT shell 81 | if %ERRORLEVEL% equ 0 goto mainEnd 82 | 83 | :fail 84 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 85 | rem the _cmd.exe /c_ return code! 86 | set EXIT_CODE=%ERRORLEVEL% 87 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 88 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 89 | exit /b %EXIT_CODE% 90 | 91 | :mainEnd 92 | if "%OS%"=="Windows_NT" endlocal 93 | 94 | :omega -------------------------------------------------------------------------------- /ios/rn_starter_kit.xcodeproj/xcshareddata/xcschemes/rn_starter_kit.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/rn_starter_kit.xcodeproj/xcshareddata/xcschemes/rn_starter_kit-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 | -------------------------------------------------------------------------------- /ios/rn_starter_kit/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "org.jetbrains.kotlin.android" 3 | apply plugin: "com.facebook.react" 4 | 5 | react { 6 | /* Folders */ 7 | // The root of your project, i.e. where "package.json" lives. Default is '../..' 8 | // root = file("../../") 9 | // The folder where the react-native NPM package is. Default is ../../node_modules/react-native 10 | // reactNativeDir = file("../../node_modules/react-native") 11 | // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen 12 | // codegenDir = file("../../node_modules/@react-native/codegen") 13 | // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js 14 | // cliFile = file("../../node_modules/react-native/cli.js") 15 | 16 | /* Variants */ 17 | // The list of variants to that are debuggable. For those we're going to 18 | // skip the bundling of the JS bundle and the assets. By default is just 'debug'. 19 | // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. 20 | // debuggableVariants = ["liteDebug", "prodDebug"] 21 | 22 | /* Bundling */ 23 | // A list containing the node command and its flags. Default is just 'node'. 24 | // nodeExecutableAndArgs = ["node"] 25 | // 26 | // The command to run when bundling. By default is 'bundle' 27 | // bundleCommand = "ram-bundle" 28 | // 29 | // The path to the CLI configuration file. Default is empty. 30 | // bundleConfig = file(../rn-cli.config.js) 31 | // 32 | // The name of the generated asset file containing your JS bundle 33 | // bundleAssetName = "MyApplication.android.bundle" 34 | // 35 | // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' 36 | // entryFile = file("../js/MyApplication.android.js") 37 | // 38 | // A list of extra flags to pass to the 'bundle' commands. 39 | // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle 40 | // extraPackagerArgs = [] 41 | 42 | /* Hermes Commands */ 43 | // The hermes compiler command to run. By default it is 'hermesc' 44 | // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" 45 | // 46 | // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" 47 | // hermesFlags = ["-O", "-output-source-map"] 48 | 49 | /* Autolinking */ 50 | autolinkLibrariesWithApp() 51 | } 52 | 53 | /** 54 | * Set this to true to Run Proguard on Release builds to minify the Java bytecode. 55 | */ 56 | def enableProguardInReleaseBuilds = false 57 | 58 | /** 59 | * The preferred build flavor of JavaScriptCore (JSC) 60 | * 61 | * For example, to use the international variant, you can use: 62 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 63 | */ 64 | def jscFlavor = 'org.webkit:android-jsc:+' 65 | 66 | android { 67 | buildToolsVersion rootProject.ext.buildToolsVersion 68 | compileSdk rootProject.ext.compileSdkVersion 69 | 70 | namespace "com.rn_starter_kit" 71 | 72 | defaultConfig { 73 | applicationId "com.rn_starter_kit" 74 | minSdkVersion rootProject.ext.minSdkVersion 75 | targetSdkVersion rootProject.ext.targetSdkVersion 76 | multiDexEnabled true 77 | versionCode 1 78 | versionName "1.0" 79 | } 80 | signingConfigs { 81 | debug { 82 | storeFile file('debug.keystore') 83 | storePassword 'android' 84 | keyAlias 'androiddebugkey' 85 | keyPassword 'android' 86 | } 87 | } 88 | buildTypes { 89 | debug { 90 | signingConfig signingConfigs.debug 91 | } 92 | release { 93 | // Caution! In production, you need to generate your own keystore file. 94 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 95 | signingConfig signingConfigs.debug 96 | minifyEnabled enableProguardInReleaseBuilds 97 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 98 | } 99 | } 100 | 101 | packagingOptions { 102 | pickFirst "lib/armeabi-v7a/libc++_shared.so" 103 | pickFirst "lib/arm64-v8a/libc++_shared.so" 104 | pickFirst "lib/x86/libc++_shared.so" 105 | pickFirst "lib/x86_64/libc++_shared.so" 106 | } 107 | 108 | } 109 | 110 | dependencies { 111 | // The version of react-native is set by the React Native Gradle Plugin 112 | implementation("com.facebook.react:react-android") 113 | 114 | if (hermesEnabled.toBoolean()) { 115 | implementation("com.facebook.react:hermes-android") 116 | } else { 117 | implementation jscFlavor 118 | } 119 | } 120 | 121 | apply plugin: 'com.android.application' 122 | apply plugin: 'com.google.gms.google-services' -------------------------------------------------------------------------------- /src/screens/WelcomeScreen.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useState} from 'react'; 2 | import { 3 | ActivityIndicator, 4 | Text, 5 | View, 6 | StyleSheet, 7 | Alert, 8 | TouchableOpacity, 9 | } from 'react-native'; 10 | import auth from '@react-native-firebase/auth'; 11 | import firebase from '@react-native-firebase/app'; 12 | import firestore from '@react-native-firebase/firestore'; 13 | import AsyncStorage from '@react-native-async-storage/async-storage'; 14 | import {useDispatch} from 'react-redux'; 15 | import {login} from '../reducers'; 16 | import {AppStyles} from '../AppStyles'; 17 | 18 | function WelcomeScreen({navigation}) { 19 | const [isLoading, setIsLoading] = useState(true); 20 | 21 | const dispatch = useDispatch(); 22 | 23 | useEffect(() => { 24 | tryToLoginFirst(); 25 | }, []); 26 | 27 | async function tryToLoginFirst() { 28 | const email = await AsyncStorage.getItem('@loggedInUserID:key'); 29 | const password = await AsyncStorage.getItem('@loggedInUserID:password'); 30 | const id = await AsyncStorage.getItem('@loggedInUserID:id'); 31 | if ( 32 | id != null && 33 | id.length > 0 && 34 | password != null && 35 | password.length > 0 36 | ) { 37 | auth() 38 | .signInWithEmailAndPassword(email, password) 39 | .then((user) => { 40 | firestore() 41 | .collection('users') 42 | .doc(id) 43 | .get() 44 | .then(function (doc) { 45 | var userDict = { 46 | id: id, 47 | email: email, 48 | profileURL: doc.photoURL, 49 | fullname: doc.data().fullname, 50 | }; 51 | if (doc.exists) { 52 | dispatch(login(userDict)); 53 | navigation.navigate('DrawerStack'); 54 | } else { 55 | setIsLoading(false); 56 | } 57 | }) 58 | .catch(function (error) { 59 | setIsLoading(false); 60 | const {code, message} = error; 61 | Alert.alert(message); 62 | }); 63 | }) 64 | .catch((error) => { 65 | const {code, message} = error; 66 | setIsLoading(false); 67 | Alert.alert(message); 68 | // For details of error codes, see the docs 69 | // The message contains the default Firebase string 70 | // representation of the error 71 | }); 72 | return; 73 | } 74 | const fbToken = await AsyncStorage.getItem( 75 | '@loggedInUserID:facebookCredentialAccessToken', 76 | ); 77 | if (id != null && id.length > 0 && fbToken != null && fbToken.length > 0) { 78 | const credential = firebase.auth.FacebookAuthProvider.credential(fbToken); 79 | auth() 80 | .signInWithCredential(credential) 81 | .then((result) => { 82 | var user = result.user; 83 | var userDict = { 84 | id: user.uid, 85 | fullname: user.displayName, 86 | email: user.email, 87 | profileURL: user.photoURL, 88 | }; 89 | dispatch(login(userDict)); 90 | navigation.navigate('DrawerStack'); 91 | }) 92 | .catch((error) => { 93 | setIsLoading(false); 94 | }); 95 | return; 96 | } 97 | setIsLoading(false); 98 | } 99 | 100 | if (isLoading == true) { 101 | return ( 102 | 107 | ); 108 | } 109 | return ( 110 | 111 | Say hello to your new app 112 | navigation.navigate('Login')}> 115 | Log In 116 | 117 | navigation.navigate('Signup')}> 120 | Sign Up 121 | 122 | 123 | ); 124 | } 125 | 126 | const styles = StyleSheet.create({ 127 | container: { 128 | flex: 1, 129 | alignItems: 'center', 130 | justifyContent: 'center', 131 | marginBottom: 150, 132 | }, 133 | logo: { 134 | width: 200, 135 | height: 200, 136 | }, 137 | title: { 138 | fontSize: AppStyles.fontSize.title, 139 | fontWeight: 'bold', 140 | color: AppStyles.color.tint, 141 | marginTop: 20, 142 | textAlign: 'center', 143 | marginBottom: 20, 144 | marginLeft: 20, 145 | marginRight: 20, 146 | }, 147 | loginContainer: { 148 | alignItems: 'center', 149 | width: AppStyles.buttonWidth.main, 150 | backgroundColor: AppStyles.color.tint, 151 | borderRadius: AppStyles.borderRadius.main, 152 | padding: 10, 153 | marginTop: 30, 154 | }, 155 | loginText: { 156 | color: AppStyles.color.white, 157 | }, 158 | signupContainer: { 159 | alignItems: 'center', 160 | width: AppStyles.buttonWidth.main, 161 | backgroundColor: AppStyles.color.white, 162 | borderRadius: AppStyles.borderRadius.main, 163 | padding: 8, 164 | borderWidth: 1, 165 | borderColor: AppStyles.color.tint, 166 | marginTop: 15, 167 | }, 168 | signupText: { 169 | color: AppStyles.color.tint, 170 | }, 171 | spinner: { 172 | marginTop: 200, 173 | }, 174 | }); 175 | 176 | export default WelcomeScreen; 177 | -------------------------------------------------------------------------------- /src/screens/SignupScreen.js: -------------------------------------------------------------------------------- 1 | import React, {useState} from 'react'; 2 | import {Alert, StyleSheet, Text, TextInput, View, TouchableOpacity} from 'react-native'; 3 | // import Button from 'react-native-button'; 4 | import {AppStyles} from '../AppStyles'; 5 | import firestore from '@react-native-firebase/firestore'; 6 | import auth from '@react-native-firebase/auth'; 7 | import {useDispatch} from 'react-redux'; 8 | import {login} from '../reducers'; 9 | import LoadingModal from '../components/LoadingModal'; 10 | 11 | function SignupScreen({navigation}) { 12 | const [fullname, setFullname] = useState(''); 13 | const [phone, setPhone] = useState(''); 14 | const [email, setEmail] = useState(''); 15 | const [password, setPassword] = useState(''); 16 | const [loading, setLoading] = useState(false); 17 | 18 | const dispatch = useDispatch(); 19 | 20 | const onRegister = () => { 21 | setLoading(true); 22 | auth() 23 | .createUserWithEmailAndPassword(email, password) 24 | .then((response) => { 25 | const data = { 26 | email: email, 27 | fullname: fullname, 28 | phone: phone, 29 | appIdentifier: 'rn-android-universal-listings', 30 | }; 31 | const user_uid = response.user._user.uid; 32 | firestore().collection('users').doc(user_uid).set(data); 33 | firestore() 34 | .collection('users') 35 | .doc(user_uid) 36 | .get() 37 | .then(function (user) { 38 | dispatch(login(user.data())); 39 | navigation.navigate('DrawerStack', {user}); 40 | }) 41 | .catch(function (error) { 42 | const {code, message} = error; 43 | Alert.alert(message); 44 | }); 45 | }) 46 | .catch((error) => { 47 | const {code, message} = error; 48 | Alert.alert(message); 49 | }).finally(() => { 50 | setLoading(false); 51 | }); 52 | }; 53 | 54 | return ( 55 | 56 | Create new account 57 | 58 | 66 | 67 | 68 | 76 | 77 | 78 | 86 | 87 | 88 | 97 | 98 | onRegister()}> 101 | Sign Up 102 | 103 | 104 | 105 | ); 106 | } 107 | 108 | const styles = StyleSheet.create({ 109 | container: { 110 | flex: 1, 111 | alignItems: 'center', 112 | }, 113 | title: { 114 | fontSize: AppStyles.fontSize.title, 115 | fontWeight: 'bold', 116 | color: AppStyles.color.tint, 117 | marginTop: 20, 118 | marginBottom: 20, 119 | }, 120 | leftTitle: { 121 | alignSelf: 'stretch', 122 | textAlign: 'left', 123 | marginLeft: 20, 124 | }, 125 | content: { 126 | paddingLeft: 50, 127 | paddingRight: 50, 128 | textAlign: 'center', 129 | fontSize: AppStyles.fontSize.content, 130 | color: AppStyles.color.text, 131 | }, 132 | loginContainer: { 133 | width: AppStyles.buttonWidth.main, 134 | backgroundColor: AppStyles.color.tint, 135 | borderRadius: AppStyles.borderRadius.main, 136 | padding: 10, 137 | marginTop: 30, 138 | }, 139 | loginText: { 140 | color: AppStyles.color.white, 141 | }, 142 | placeholder: { 143 | color: 'red', 144 | }, 145 | InputContainer: { 146 | width: AppStyles.textInputWidth.main, 147 | marginTop: 30, 148 | borderWidth: 1, 149 | borderStyle: 'solid', 150 | borderColor: AppStyles.color.grey, 151 | borderRadius: AppStyles.borderRadius.main, 152 | }, 153 | body: { 154 | height: 42, 155 | paddingLeft: 20, 156 | paddingRight: 20, 157 | color: AppStyles.color.text, 158 | }, 159 | facebookContainer: { 160 | alignItems: 'center', 161 | width: AppStyles.buttonWidth.main, 162 | backgroundColor: AppStyles.color.tint, 163 | borderRadius: AppStyles.borderRadius.main, 164 | padding: 10, 165 | marginTop: 30, 166 | }, 167 | facebookText: { 168 | color: AppStyles.color.white, 169 | }, 170 | }); 171 | 172 | export default SignupScreen; 173 | -------------------------------------------------------------------------------- /src/navigations/AppNavigation.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useState} from 'react'; 2 | import {Image, Pressable, StyleSheet, View, ActivityIndicator} from 'react-native'; 3 | import {createBottomTabNavigator} from '@react-navigation/bottom-tabs'; 4 | import {createDrawerNavigator} from '@react-navigation/drawer'; 5 | import {createStackNavigator} from '@react-navigation/stack'; 6 | import {NavigationContainer} from '@react-navigation/native'; 7 | import AsyncStorage from '@react-native-async-storage/async-storage'; 8 | import {useDispatch} from 'react-redux'; 9 | import firestore from '@react-native-firebase/firestore'; 10 | import HomeScreen from '../screens/HomeScreen'; 11 | import LoginScreen from '../screens/LoginScreen'; 12 | import SignupScreen from '../screens/SignupScreen'; 13 | import WelcomeScreen from '../screens/WelcomeScreen'; 14 | import {AppIcon, AppStyles} from '../AppStyles'; 15 | import DrawerContainer from '../components/DrawerContainer'; 16 | import {login} from '../reducers'; 17 | import LoadScreen from '../screens/LoadScreen'; 18 | 19 | 20 | const Stack = createStackNavigator(); 21 | 22 | 23 | // login stack 24 | const LoginStack = () => ( 25 | 32 | 33 | 34 | 35 | 36 | ); 37 | 38 | const HomeStack = () => ( 39 | 46 | ({ 50 | headerLeft: () => ( 51 | navigation.openDrawer()}> 52 | 53 | 54 | ), 55 | headerLeftContainerStyle: {paddingLeft: 10}, 56 | })} 57 | /> 58 | 59 | ); 60 | 61 | const BottomTab = createBottomTabNavigator(); 62 | 63 | const TabNavigator = () => ( 64 | { 70 | return ( 71 | 77 | ); 78 | }, 79 | headerShown: false, 80 | }}> 81 | 86 | 87 | ); 88 | 89 | // drawer stack 90 | const Drawer = createDrawerNavigator(); 91 | const DrawerStack = () => ( 92 | ( 101 | 102 | )}> 103 | 104 | 105 | ); 106 | 107 | // Root Navigator with Auth Check 108 | const RootNavigator = ({initialRoute}) => ( 109 | 115 | 116 | 117 | 118 | ); 119 | 120 | const AppNavigator = () => { 121 | const [initializing, setInitializing] = useState(true); 122 | const [initialRoute, setInitialRoute] = useState('LoginStack'); 123 | const dispatch = useDispatch(); 124 | 125 | useEffect(() => { 126 | checkLoginStatus(); 127 | }, []); 128 | 129 | const checkLoginStatus = async () => { 130 | try { 131 | const userId = await AsyncStorage.getItem('@loggedInUserID:id'); 132 | 133 | if (userId) { 134 | // Get user data from Firestore 135 | const userDoc = await firestore() 136 | .collection('users') 137 | .doc(userId) 138 | .get(); 139 | 140 | if (userDoc.exists) { 141 | // Dispatch user data to Redux store 142 | dispatch(login(userDoc.data())); 143 | setInitialRoute('DrawerStack'); 144 | } 145 | } 146 | } catch (error) { 147 | console.log('Error checking login status:', error); 148 | } finally { 149 | setInitializing(false); 150 | } 151 | }; 152 | 153 | if (initializing) { 154 | return ; 155 | } 156 | 157 | return ( 158 | 159 | 160 | 161 | ); 162 | }; 163 | 164 | const styles = StyleSheet.create({ 165 | headerTitleStyle: { 166 | fontWeight: 'bold', 167 | textAlign: 'center', 168 | alignSelf: 'center', 169 | color: 'black', 170 | }, 171 | iconStyle: { 172 | tintColor: AppStyles.color.tint, 173 | width: 30, 174 | height: 30, 175 | }, 176 | loadingContainer: { 177 | flex: 1, 178 | justifyContent: 'center', 179 | alignItems: 'center', 180 | }, 181 | }); 182 | 183 | export default AppNavigator; -------------------------------------------------------------------------------- /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=$((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 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /src/screens/LoginScreen.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useState} from 'react'; 2 | import { 3 | StyleSheet, 4 | Text, 5 | TextInput, 6 | View, 7 | Alert, 8 | ActivityIndicator, 9 | TouchableOpacity, 10 | } from 'react-native'; 11 | // import Button from 'react-native-button'; 12 | import {AppStyles} from '../AppStyles'; 13 | import firebase from '@react-native-firebase/app'; 14 | import auth from '@react-native-firebase/auth'; 15 | import firestore from '@react-native-firebase/firestore'; 16 | import { 17 | GoogleSignin, 18 | GoogleSigninButton, 19 | } from '@react-native-google-signin/google-signin'; 20 | import AsyncStorage from '@react-native-async-storage/async-storage'; 21 | import {useDispatch} from 'react-redux'; 22 | const FBSDK = require('react-native-fbsdk'); 23 | const {LoginManager, AccessToken} = FBSDK; 24 | import {login} from '../reducers'; 25 | import LoadingModal from '../components/LoadingModal'; 26 | 27 | function LoginScreen({navigation}) { 28 | const [loading, setLoading] = useState(false); 29 | const [email, setEmail] = useState(''); 30 | const [password, setPassword] = useState(''); 31 | 32 | const dispatch = useDispatch(); 33 | 34 | useEffect(() => { 35 | GoogleSignin.configure({ 36 | webClientId: 37 | '763342324681-petgvkkeltcfi9qmgr8um8ohak81l953.apps.googleusercontent.com', 38 | }); 39 | }, []); 40 | 41 | const onPressLogin = () => { 42 | 43 | if (email.length <= 0 || password.length <= 0) { 44 | Alert.alert('Please fill out the required fields.'); 45 | return; 46 | } 47 | setLoading(true); 48 | auth() 49 | .signInWithEmailAndPassword(email, password) 50 | .then((response) => { 51 | const user_uid = response.user._user.uid; 52 | firestore() 53 | .collection('users') 54 | .doc(user_uid) 55 | .get() 56 | .then(function (user) { 57 | if (user.exists) { 58 | AsyncStorage.setItem('@loggedInUserID:id', user_uid); 59 | AsyncStorage.setItem('@loggedInUserID:key', email); 60 | AsyncStorage.setItem('@loggedInUserID:password', password); 61 | dispatch(login(user.data())); 62 | navigation.navigate('DrawerStack'); 63 | } else { 64 | Alert.alert('User does not exist. Please try again.'); 65 | } 66 | }) 67 | .catch(function (error) { 68 | const {message} = error; 69 | Alert.alert(message); 70 | }); 71 | }) 72 | .catch((error) => { 73 | const {message} = error; 74 | Alert.alert(message); 75 | // For details of error codes, see the docs 76 | // The message contains the default Firebase string 77 | // representation of the error 78 | }).finally(() => { 79 | setLoading(false); 80 | }); 81 | }; 82 | 83 | const onPressFacebook = () => { 84 | setLoading(true); 85 | LoginManager.logInWithPermissions([ 86 | 'public_profile', 87 | 'user_friends', 88 | 'email', 89 | ]).then( 90 | (result) => { 91 | if (result.isCancelled) { 92 | Alert.alert('Whoops!', 'You cancelled the sign in.'); 93 | } else { 94 | AccessToken.getCurrentAccessToken().then((data) => { 95 | const credential = firebase.auth.FacebookAuthProvider.credential( 96 | data.accessToken, 97 | ); 98 | const accessToken = data.accessToken; 99 | auth() 100 | .signInWithCredential(credential) 101 | .then((result) => { 102 | var user = result.user; 103 | AsyncStorage.setItem( 104 | '@loggedInUserID:facebookCredentialAccessToken', 105 | accessToken, 106 | ); 107 | AsyncStorage.setItem('@loggedInUserID:id', user.uid); 108 | var userDict = { 109 | id: user.uid, 110 | fullname: user.displayName, 111 | email: user.email, 112 | profileURL: user.photoURL, 113 | }; 114 | var userData = { 115 | ...userDict, 116 | appIdentifier: 'rn-android-universal-listings', 117 | }; 118 | firestore().collection('users').doc(user.uid).set(userData); 119 | dispatch(login(userDict)); 120 | navigation.navigate('DrawerStack', { 121 | user: userDict, 122 | }); 123 | }) 124 | .catch((error) => { 125 | alert('Please try again! ' + error); 126 | }); 127 | }); 128 | } 129 | }, 130 | (error) => { 131 | Alert.alert('Sign in error', error); 132 | }, 133 | ).finally(() => { 134 | setLoading(false); 135 | }); 136 | }; 137 | 138 | const onPressGoogle = () => { 139 | setLoading(true); 140 | GoogleSignin.signIn() 141 | .then((data) => { 142 | console.log('data', data); 143 | // Create a new Firebase credential with the token 144 | const credential = firebase.auth.GoogleAuthProvider.credential( 145 | data.idToken, 146 | ); 147 | // Login with the credential 148 | const accessToken = data.idToken; 149 | AsyncStorage.setItem( 150 | '@loggedInUserID:googleCredentialAccessToken', 151 | accessToken, 152 | ); 153 | return auth().signInWithCredential(credential); 154 | }) 155 | .then((result) => { 156 | setLoading(false); 157 | var user = result.user; 158 | AsyncStorage.setItem('@loggedInUserID:id', user.uid); 159 | var userDict = { 160 | id: user.uid, 161 | fullname: user.displayName, 162 | email: user.email, 163 | photoURL: user.photoURL, 164 | }; 165 | var data = { 166 | ...userDict, 167 | appIdentifier: 'rn-android-universal-listings', 168 | }; 169 | console.log('data', data); 170 | firestore().collection('users').doc(user.uid).set(data); 171 | dispatch(login(userDict)); 172 | navigation.navigate('DrawerStack', { 173 | user: userDict, 174 | }); 175 | }) 176 | .catch((error) => { 177 | const {message} = error; 178 | Alert.alert(message); 179 | }).finally(() => { 180 | setLoading(false); 181 | }); 182 | }; 183 | 184 | return ( 185 | 186 | Sign In 187 | 188 | 196 | 197 | 198 | 207 | 208 | onPressLogin()}> 211 | Log in 212 | 213 | OR 214 | onPressFacebook()}> 217 | Login with Facebook 218 | 219 | 220 | 226 | 227 | 228 | ); 229 | } 230 | 231 | const styles = StyleSheet.create({ 232 | container: { 233 | flex: 1, 234 | alignItems: 'center', 235 | }, 236 | or: { 237 | color: 'black', 238 | marginTop: 40, 239 | marginBottom: 10, 240 | }, 241 | title: { 242 | fontSize: AppStyles.fontSize.title, 243 | fontWeight: 'bold', 244 | color: AppStyles.color.tint, 245 | marginTop: 20, 246 | marginBottom: 20, 247 | }, 248 | leftTitle: { 249 | alignSelf: 'stretch', 250 | textAlign: 'left', 251 | marginLeft: 20, 252 | }, 253 | content: { 254 | paddingLeft: 50, 255 | paddingRight: 50, 256 | textAlign: 'center', 257 | fontSize: AppStyles.fontSize.content, 258 | color: AppStyles.color.text, 259 | }, 260 | loginContainer: { 261 | alignItems: 'center', 262 | width: AppStyles.buttonWidth.main, 263 | backgroundColor: AppStyles.color.tint, 264 | borderRadius: AppStyles.borderRadius.main, 265 | padding: 10, 266 | marginTop: 30, 267 | }, 268 | loginText: { 269 | color: AppStyles.color.white, 270 | }, 271 | placeholder: { 272 | color: 'red', 273 | }, 274 | InputContainer: { 275 | width: AppStyles.textInputWidth.main, 276 | marginTop: 30, 277 | borderWidth: 1, 278 | borderStyle: 'solid', 279 | borderColor: AppStyles.color.grey, 280 | borderRadius: AppStyles.borderRadius.main, 281 | }, 282 | body: { 283 | height: 42, 284 | paddingLeft: 20, 285 | paddingRight: 20, 286 | color: AppStyles.color.text, 287 | }, 288 | facebookContainer: { 289 | alignItems: 'center', 290 | width: 192, 291 | backgroundColor: AppStyles.color.facebook, 292 | borderRadius: AppStyles.borderRadius.main, 293 | padding: 10, 294 | marginTop: 30, 295 | }, 296 | facebookText: { 297 | color: AppStyles.color.white, 298 | }, 299 | googleContainer: { 300 | width: 192, 301 | height: 48, 302 | marginTop: 30, 303 | }, 304 | googleText: { 305 | color: AppStyles.color.white, 306 | }, 307 | }); 308 | 309 | export default LoginScreen; 310 | -------------------------------------------------------------------------------- /ios/rn_starter_kit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* rn_starter_kitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* rn_starter_kitTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 15 | 170EF9E626038E1C00D5F244 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 170EF9E526038E1C00D5F244 /* GoogleService-Info.plist */; }; 16 | 170EF9E726038E1C00D5F244 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 170EF9E526038E1C00D5F244 /* GoogleService-Info.plist */; }; 17 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 18 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 19 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 20 | 2DCD954D1E0B4F2C00145EB5 /* rn_starter_kitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* rn_starter_kitTests.m */; }; 21 | 3EEDB53E68C546DEBC402793 /* Pods_rn_starter_kit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 384181D006F079745B38ACD9 /* Pods_rn_starter_kit.framework */; }; 22 | 8E922D5DEA931D095E684CE8 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4A1F88F62AD29FF03EBB0802 /* PrivacyInfo.xcprivacy */; }; 23 | BAFCCFDD54878370DF9E0EE2 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4A1F88F62AD29FF03EBB0802 /* PrivacyInfo.xcprivacy */; }; 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 = rn_starter_kit; 33 | }; 34 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 39 | remoteInfo = "rn_starter_kit-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 /* rn_starter_kitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = rn_starter_kitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 00E356F21AD99517003FC87E /* rn_starter_kitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = rn_starter_kitTests.m; sourceTree = ""; }; 48 | 13B07F961A680F5B00A75B9A /* rn_starter_kit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = rn_starter_kit.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = rn_starter_kit/AppDelegate.h; sourceTree = ""; }; 50 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = rn_starter_kit/AppDelegate.m; sourceTree = ""; }; 51 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 52 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = rn_starter_kit/Images.xcassets; sourceTree = ""; }; 53 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = rn_starter_kit/Info.plist; sourceTree = ""; }; 54 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = rn_starter_kit/main.m; sourceTree = ""; }; 55 | 170EF9E526038E1C00D5F244 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "rn_starter_kit/GoogleService-Info.plist"; sourceTree = ""; }; 56 | 2D02E47B1E0B4A5D006451C7 /* rn_starter_kit-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "rn_starter_kit-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 2D02E4901E0B4A5D006451C7 /* rn_starter_kit-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "rn_starter_kit-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | 384181D006F079745B38ACD9 /* Pods_rn_starter_kit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_rn_starter_kit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 4A1F88F62AD29FF03EBB0802 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = rn_starter_kit/PrivacyInfo.xcprivacy; sourceTree = ""; }; 60 | 559C9A48894318637C600352 /* Pods-rn_starter_kit.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rn_starter_kit.release.xcconfig"; path = "Target Support Files/Pods-rn_starter_kit/Pods-rn_starter_kit.release.xcconfig"; sourceTree = ""; }; 61 | C580D21DF472DE67C68EE608 /* Pods-rn_starter_kit.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rn_starter_kit.debug.xcconfig"; path = "Target Support Files/Pods-rn_starter_kit/Pods-rn_starter_kit.debug.xcconfig"; sourceTree = ""; }; 62 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 63 | 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; }; 64 | /* End PBXFileReference section */ 65 | 66 | /* Begin PBXFrameworksBuildPhase section */ 67 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | 3EEDB53E68C546DEBC402793 /* Pods_rn_starter_kit.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | /* End PBXFrameworksBuildPhase section */ 97 | 98 | /* Begin PBXGroup section */ 99 | 00E356EF1AD99517003FC87E /* rn_starter_kitTests */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 00E356F21AD99517003FC87E /* rn_starter_kitTests.m */, 103 | 00E356F01AD99517003FC87E /* Supporting Files */, 104 | ); 105 | path = rn_starter_kitTests; 106 | sourceTree = ""; 107 | }; 108 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 00E356F11AD99517003FC87E /* Info.plist */, 112 | ); 113 | name = "Supporting Files"; 114 | sourceTree = ""; 115 | }; 116 | 13B07FAE1A68108700A75B9A /* rn_starter_kit */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 120 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 121 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 122 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 123 | 13B07FB61A68108700A75B9A /* Info.plist */, 124 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 125 | 13B07FB71A68108700A75B9A /* main.m */, 126 | 170EF9E526038E1C00D5F244 /* GoogleService-Info.plist */, 127 | 4A1F88F62AD29FF03EBB0802 /* PrivacyInfo.xcprivacy */, 128 | ); 129 | name = rn_starter_kit; 130 | sourceTree = ""; 131 | }; 132 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 136 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 137 | 384181D006F079745B38ACD9 /* Pods_rn_starter_kit.framework */, 138 | ); 139 | name = Frameworks; 140 | sourceTree = ""; 141 | }; 142 | 6EEB561ECB78D99AE8BC2B30 /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | C580D21DF472DE67C68EE608 /* Pods-rn_starter_kit.debug.xcconfig */, 146 | 559C9A48894318637C600352 /* Pods-rn_starter_kit.release.xcconfig */, 147 | ); 148 | path = Pods; 149 | sourceTree = ""; 150 | }; 151 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | ); 155 | name = Libraries; 156 | sourceTree = ""; 157 | }; 158 | 83CBB9F61A601CBA00E9B192 = { 159 | isa = PBXGroup; 160 | children = ( 161 | 13B07FAE1A68108700A75B9A /* rn_starter_kit */, 162 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 163 | 00E356EF1AD99517003FC87E /* rn_starter_kitTests */, 164 | 83CBBA001A601CBA00E9B192 /* Products */, 165 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 166 | 6EEB561ECB78D99AE8BC2B30 /* Pods */, 167 | ); 168 | indentWidth = 2; 169 | sourceTree = ""; 170 | tabWidth = 2; 171 | usesTabs = 0; 172 | }; 173 | 83CBBA001A601CBA00E9B192 /* Products */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | 13B07F961A680F5B00A75B9A /* rn_starter_kit.app */, 177 | 00E356EE1AD99517003FC87E /* rn_starter_kitTests.xctest */, 178 | 2D02E47B1E0B4A5D006451C7 /* rn_starter_kit-tvOS.app */, 179 | 2D02E4901E0B4A5D006451C7 /* rn_starter_kit-tvOSTests.xctest */, 180 | ); 181 | name = Products; 182 | sourceTree = ""; 183 | }; 184 | /* End PBXGroup section */ 185 | 186 | /* Begin PBXNativeTarget section */ 187 | 00E356ED1AD99517003FC87E /* rn_starter_kitTests */ = { 188 | isa = PBXNativeTarget; 189 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rn_starter_kitTests" */; 190 | buildPhases = ( 191 | 00E356EA1AD99517003FC87E /* Sources */, 192 | 00E356EB1AD99517003FC87E /* Frameworks */, 193 | 00E356EC1AD99517003FC87E /* Resources */, 194 | ); 195 | buildRules = ( 196 | ); 197 | dependencies = ( 198 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 199 | ); 200 | name = rn_starter_kitTests; 201 | productName = rn_starter_kitTests; 202 | productReference = 00E356EE1AD99517003FC87E /* rn_starter_kitTests.xctest */; 203 | productType = "com.apple.product-type.bundle.unit-test"; 204 | }; 205 | 13B07F861A680F5B00A75B9A /* rn_starter_kit */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rn_starter_kit" */; 208 | buildPhases = ( 209 | CA586AFEEC8A91E753CA9920 /* [CP] Check Pods Manifest.lock */, 210 | FD10A7F022414F080027D42C /* Start Packager */, 211 | 13B07F871A680F5B00A75B9A /* Sources */, 212 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 213 | 13B07F8E1A680F5B00A75B9A /* Resources */, 214 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 215 | C12A64E8E2391B4FE1974F27 /* [CP] Embed Pods Frameworks */, 216 | A066A576B6AF2295B59E7DC5 /* [CP] Copy Pods Resources */, 217 | 449C010325ACF60F909FCCCD /* [CP-User] [RNFB] Core Configuration */, 218 | ); 219 | buildRules = ( 220 | ); 221 | dependencies = ( 222 | ); 223 | name = rn_starter_kit; 224 | productName = rn_starter_kit; 225 | productReference = 13B07F961A680F5B00A75B9A /* rn_starter_kit.app */; 226 | productType = "com.apple.product-type.application"; 227 | }; 228 | 2D02E47A1E0B4A5D006451C7 /* rn_starter_kit-tvOS */ = { 229 | isa = PBXNativeTarget; 230 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rn_starter_kit-tvOS" */; 231 | buildPhases = ( 232 | FD10A7F122414F3F0027D42C /* Start Packager */, 233 | 2D02E4771E0B4A5D006451C7 /* Sources */, 234 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 235 | 2D02E4791E0B4A5D006451C7 /* Resources */, 236 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 237 | ); 238 | buildRules = ( 239 | ); 240 | dependencies = ( 241 | ); 242 | name = "rn_starter_kit-tvOS"; 243 | productName = "rn_starter_kit-tvOS"; 244 | productReference = 2D02E47B1E0B4A5D006451C7 /* rn_starter_kit-tvOS.app */; 245 | productType = "com.apple.product-type.application"; 246 | }; 247 | 2D02E48F1E0B4A5D006451C7 /* rn_starter_kit-tvOSTests */ = { 248 | isa = PBXNativeTarget; 249 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rn_starter_kit-tvOSTests" */; 250 | buildPhases = ( 251 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 252 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 253 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 254 | ); 255 | buildRules = ( 256 | ); 257 | dependencies = ( 258 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 259 | ); 260 | name = "rn_starter_kit-tvOSTests"; 261 | productName = "rn_starter_kit-tvOSTests"; 262 | productReference = 2D02E4901E0B4A5D006451C7 /* rn_starter_kit-tvOSTests.xctest */; 263 | productType = "com.apple.product-type.bundle.unit-test"; 264 | }; 265 | /* End PBXNativeTarget section */ 266 | 267 | /* Begin PBXProject section */ 268 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 269 | isa = PBXProject; 270 | attributes = { 271 | LastUpgradeCheck = 1130; 272 | TargetAttributes = { 273 | 00E356ED1AD99517003FC87E = { 274 | CreatedOnToolsVersion = 6.2; 275 | TestTargetID = 13B07F861A680F5B00A75B9A; 276 | }; 277 | 13B07F861A680F5B00A75B9A = { 278 | LastSwiftMigration = 1120; 279 | }; 280 | 2D02E47A1E0B4A5D006451C7 = { 281 | CreatedOnToolsVersion = 8.2.1; 282 | ProvisioningStyle = Automatic; 283 | }; 284 | 2D02E48F1E0B4A5D006451C7 = { 285 | CreatedOnToolsVersion = 8.2.1; 286 | ProvisioningStyle = Automatic; 287 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 288 | }; 289 | }; 290 | }; 291 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "rn_starter_kit" */; 292 | compatibilityVersion = "Xcode 3.2"; 293 | developmentRegion = en; 294 | hasScannedForEncodings = 0; 295 | knownRegions = ( 296 | en, 297 | Base, 298 | ); 299 | mainGroup = 83CBB9F61A601CBA00E9B192; 300 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 301 | projectDirPath = ""; 302 | projectRoot = ""; 303 | targets = ( 304 | 13B07F861A680F5B00A75B9A /* rn_starter_kit */, 305 | 00E356ED1AD99517003FC87E /* rn_starter_kitTests */, 306 | 2D02E47A1E0B4A5D006451C7 /* rn_starter_kit-tvOS */, 307 | 2D02E48F1E0B4A5D006451C7 /* rn_starter_kit-tvOSTests */, 308 | ); 309 | }; 310 | /* End PBXProject section */ 311 | 312 | /* Begin PBXResourcesBuildPhase section */ 313 | 00E356EC1AD99517003FC87E /* Resources */ = { 314 | isa = PBXResourcesBuildPhase; 315 | buildActionMask = 2147483647; 316 | files = ( 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | }; 320 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 321 | isa = PBXResourcesBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 325 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 326 | 170EF9E626038E1C00D5F244 /* GoogleService-Info.plist in Resources */, 327 | 8E922D5DEA931D095E684CE8 /* PrivacyInfo.xcprivacy in Resources */, 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | }; 331 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 332 | isa = PBXResourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 336 | 170EF9E726038E1C00D5F244 /* GoogleService-Info.plist in Resources */, 337 | BAFCCFDD54878370DF9E0EE2 /* PrivacyInfo.xcprivacy in Resources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 342 | isa = PBXResourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | /* End PBXResourcesBuildPhase section */ 349 | 350 | /* Begin PBXShellScriptBuildPhase section */ 351 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 352 | isa = PBXShellScriptBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | inputPaths = ( 357 | ); 358 | name = "Bundle React Native code and images"; 359 | outputPaths = ( 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | shellPath = /bin/sh; 363 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 364 | }; 365 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 366 | isa = PBXShellScriptBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | ); 370 | inputPaths = ( 371 | ); 372 | name = "Bundle React Native Code And Images"; 373 | outputPaths = ( 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | shellPath = /bin/sh; 377 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 378 | }; 379 | 449C010325ACF60F909FCCCD /* [CP-User] [RNFB] Core Configuration */ = { 380 | isa = PBXShellScriptBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | inputPaths = ( 385 | "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", 386 | ); 387 | name = "[CP-User] [RNFB] Core Configuration"; 388 | runOnlyForDeploymentPostprocessing = 0; 389 | shellPath = /bin/sh; 390 | shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##########################################################################\n##########################################################################\n#\n# NOTE THAT IF YOU CHANGE THIS FILE YOU MUST RUN pod install AFTERWARDS\n#\n# This file is installed as an Xcode build script in the project file\n# by cocoapods, and you will not see your changes until you pod install\n#\n##########################################################################\n##########################################################################\n\nset -e\n\n_MAX_LOOKUPS=2;\n_SEARCH_RESULT=''\n_RN_ROOT_EXISTS=''\n_CURRENT_LOOKUPS=1\n_JSON_ROOT=\"'react-native'\"\n_JSON_FILE_NAME='firebase.json'\n_JSON_OUTPUT_BASE64='e30=' # { }\n_CURRENT_SEARCH_DIR=${PROJECT_DIR}\n_PLIST_BUDDY=/usr/libexec/PlistBuddy\n_TARGET_PLIST=\"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n_DSYM_PLIST=\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist\"\n\n# plist arrays\n_PLIST_ENTRY_KEYS=()\n_PLIST_ENTRY_TYPES=()\n_PLIST_ENTRY_VALUES=()\n\nfunction setPlistValue {\n echo \"info: setting plist entry '$1' of type '$2' in file '$4'\"\n ${_PLIST_BUDDY} -c \"Add :$1 $2 '$3'\" $4 || echo \"info: '$1' already exists\"\n}\n\nfunction getFirebaseJsonKeyValue () {\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n ruby -Ku -e \"require 'rubygems';require 'json'; output=JSON.parse('$1'); puts output[$_JSON_ROOT]['$2']\"\n else\n echo \"\"\n fi;\n}\n\nfunction jsonBoolToYesNo () {\n if [[ $1 == \"false\" ]]; then\n echo \"NO\"\n elif [[ $1 == \"true\" ]]; then\n echo \"YES\"\n else echo \"NO\"\n fi\n}\n\necho \"info: -> RNFB build script started\"\necho \"info: 1) Locating ${_JSON_FILE_NAME} file:\"\n\nif [[ -z ${_CURRENT_SEARCH_DIR} ]]; then\n _CURRENT_SEARCH_DIR=$(pwd)\nfi;\n\nwhile true; do\n _CURRENT_SEARCH_DIR=$(dirname \"$_CURRENT_SEARCH_DIR\")\n if [[ \"$_CURRENT_SEARCH_DIR\" == \"/\" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;\n echo \"info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file.\"\n _SEARCH_RESULT=$(find \"$_CURRENT_SEARCH_DIR\" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)\n if [[ ${_SEARCH_RESULT} ]]; then\n echo \"info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT\"\n break;\n fi;\n _CURRENT_LOOKUPS=$((_CURRENT_LOOKUPS+1))\ndone\n\nif [[ ${_SEARCH_RESULT} ]]; then\n _JSON_OUTPUT_RAW=$(cat \"${_SEARCH_RESULT}\")\n _RN_ROOT_EXISTS=$(ruby -Ku -e \"require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]\" || echo '')\n\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n if ! python3 --version >/dev/null 2>&1; then echo \"python3 not found, firebase.json file processing error.\" && exit 1; fi\n _JSON_OUTPUT_BASE64=$(python3 -c 'import json,sys,base64;print(base64.b64encode(bytes(json.dumps(json.loads(open('\"'${_SEARCH_RESULT}'\"', '\"'rb'\"').read())['${_JSON_ROOT}']), '\"'utf-8'\"')).decode())' || echo \"e30=\")\n fi\n\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n\n # config.app_data_collection_default_enabled\n _APP_DATA_COLLECTION_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_data_collection_default_enabled\")\n if [[ $_APP_DATA_COLLECTION_ENABLED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseDataCollectionDefaultEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_DATA_COLLECTION_ENABLED\")\")\n fi\n\n # config.analytics_auto_collection_enabled\n _ANALYTICS_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_auto_collection_enabled\")\n if [[ $_ANALYTICS_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_COLLECTION\")\")\n fi\n\n # config.analytics_collection_deactivated\n _ANALYTICS_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_collection_deactivated\")\n if [[ $_ANALYTICS_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_DEACTIVATED\")\")\n fi\n\n # config.analytics_idfv_collection_enabled\n _ANALYTICS_IDFV_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_idfv_collection_enabled\")\n if [[ $_ANALYTICS_IDFV_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_IDFV_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_IDFV_COLLECTION\")\")\n fi\n\n # config.analytics_default_allow_analytics_storage\n _ANALYTICS_STORAGE=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_analytics_storage\")\n if [[ $_ANALYTICS_STORAGE ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_ANALYTICS_STORAGE\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_STORAGE\")\")\n fi\n\n # config.analytics_default_allow_ad_storage\n _ANALYTICS_AD_STORAGE=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_storage\")\n if [[ $_ANALYTICS_AD_STORAGE ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_STORAGE\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AD_STORAGE\")\")\n fi\n\n # config.analytics_default_allow_ad_user_data\n _ANALYTICS_AD_USER_DATA=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_user_data\")\n if [[ $_ANALYTICS_AD_USER_DATA ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_USER_DATA\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AD_USER_DATA\")\")\n fi\n\n # config.analytics_default_allow_ad_personalization_signals\n _ANALYTICS_PERSONALIZATION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_personalization_signals\")\n if [[ $_ANALYTICS_PERSONALIZATION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_PERSONALIZATION\")\")\n fi\n\n # config.analytics_registration_with_ad_network_enabled\n _ANALYTICS_REGISTRATION_WITH_AD_NETWORK=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"google_analytics_registration_with_ad_network_enabled\")\n if [[ $_ANALYTICS_REGISTRATION_WITH_AD_NETWORK ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_REGISTRATION_WITH_AD_NETWORK_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_REGISTRATION_WITH_AD_NETWORK\")\")\n fi\n\n # config.google_analytics_automatic_screen_reporting_enabled\n _ANALYTICS_AUTO_SCREEN_REPORTING=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"google_analytics_automatic_screen_reporting_enabled\")\n if [[ $_ANALYTICS_AUTO_SCREEN_REPORTING ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAutomaticScreenReportingEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_SCREEN_REPORTING\")\")\n fi\n\n # config.perf_auto_collection_enabled\n _PERF_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_auto_collection_enabled\")\n if [[ $_PERF_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_enabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_AUTO_COLLECTION\")\")\n fi\n\n # config.perf_collection_deactivated\n _PERF_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_collection_deactivated\")\n if [[ $_PERF_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_deactivated\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_DEACTIVATED\")\")\n fi\n\n # config.messaging_auto_init_enabled\n _MESSAGING_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"messaging_auto_init_enabled\")\n if [[ $_MESSAGING_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseMessagingAutoInitEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_MESSAGING_AUTO_INIT\")\")\n fi\n\n # config.in_app_messaging_auto_colllection_enabled\n _FIAM_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"in_app_messaging_auto_collection_enabled\")\n if [[ $_FIAM_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseInAppMessagingAutomaticDataCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_FIAM_AUTO_INIT\")\")\n fi\n\n # config.app_check_token_auto_refresh\n _APP_CHECK_TOKEN_AUTO_REFRESH=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_check_token_auto_refresh\")\n if [[ $_APP_CHECK_TOKEN_AUTO_REFRESH ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAppCheckTokenAutoRefreshEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_CHECK_TOKEN_AUTO_REFRESH\")\")\n fi\n\n # config.crashlytics_disable_auto_disabler - undocumented for now - mainly for debugging, document if becomes useful\n _CRASHLYTICS_AUTO_DISABLE_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"crashlytics_disable_auto_disabler\")\n if [[ $_CRASHLYTICS_AUTO_DISABLE_ENABLED == \"true\" ]]; then\n echo \"Disabled Crashlytics auto disabler.\" # do nothing\n else\n _PLIST_ENTRY_KEYS+=(\"FirebaseCrashlyticsCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"NO\")\n fi\nelse\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n echo \"warning: A firebase.json file was not found, whilst this file is optional it is recommended to include it to configure firebase services in React Native Firebase.\"\nfi;\n\necho \"info: 2) Injecting Info.plist entries: \"\n\n# Log out the keys we're adding\nfor i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n echo \" -> $i) ${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\"\ndone\n\nfor plist in \"${_TARGET_PLIST}\" \"${_DSYM_PLIST}\" ; do\n if [[ -f \"${plist}\" ]]; then\n\n # paths with spaces break the call to setPlistValue. temporarily modify\n # the shell internal field separator variable (IFS), which normally\n # includes spaces, to consist only of line breaks\n oldifs=$IFS\n IFS=\"\n\"\n\n for i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n setPlistValue \"${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\" \"${plist}\"\n done\n\n # restore the original internal field separator value\n IFS=$oldifs\n else\n echo \"warning: A Info.plist build output file was not found (${plist})\"\n fi\ndone\n\necho \"info: <- RNFB build script finished\"\n"; 391 | }; 392 | A066A576B6AF2295B59E7DC5 /* [CP] Copy Pods Resources */ = { 393 | isa = PBXShellScriptBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | ); 397 | inputPaths = ( 398 | "${PODS_ROOT}/Target Support Files/Pods-rn_starter_kit/Pods-rn_starter_kit-resources.sh", 399 | "${PODS_CONFIGURATION_BUILD_DIR}/AppAuth/AppAuthCore_Privacy.bundle", 400 | "${PODS_CONFIGURATION_BUILD_DIR}/BoringSSL-GRPC/openssl_grpc.bundle", 401 | "${PODS_ROOT}/FBSDKCoreKit/FacebookSDKStrings.bundle", 402 | "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseAuth/FirebaseAuth_Privacy.bundle", 403 | "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCore/FirebaseCore_Privacy.bundle", 404 | "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCoreExtension/FirebaseCoreExtension_Privacy.bundle", 405 | "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCoreInternal/FirebaseCoreInternal_Privacy.bundle", 406 | "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseFirestore/FirebaseFirestore_Privacy.bundle", 407 | "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseFirestoreInternal/FirebaseFirestoreInternal_Privacy.bundle", 408 | "${PODS_CONFIGURATION_BUILD_DIR}/GTMAppAuth/GTMAppAuth_Privacy.bundle", 409 | "${PODS_CONFIGURATION_BUILD_DIR}/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle", 410 | "${PODS_CONFIGURATION_BUILD_DIR}/GoogleSignIn/GoogleSignIn.bundle", 411 | "${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle", 412 | "${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle", 413 | "${PODS_CONFIGURATION_BUILD_DIR}/RNCAsyncStorage/RNCAsyncStorage_resources.bundle", 414 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf", 415 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf", 416 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf", 417 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf", 418 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf", 419 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf", 420 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf", 421 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf", 422 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Brands.ttf", 423 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Regular.ttf", 424 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome6_Solid.ttf", 425 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf", 426 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf", 427 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf", 428 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf", 429 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf", 430 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf", 431 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf", 432 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf", 433 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle", 434 | "${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle", 435 | "${PODS_CONFIGURATION_BUILD_DIR}/abseil/xcprivacy.bundle", 436 | "${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle", 437 | "${PODS_CONFIGURATION_BUILD_DIR}/gRPC-C++/gRPCCertificates-Cpp.bundle", 438 | "${PODS_CONFIGURATION_BUILD_DIR}/gRPC-C++/grpcpp.bundle", 439 | "${PODS_CONFIGURATION_BUILD_DIR}/gRPC-Core/grpc.bundle", 440 | "${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle", 441 | "${PODS_CONFIGURATION_BUILD_DIR}/leveldb-library/leveldb_Privacy.bundle", 442 | "${PODS_CONFIGURATION_BUILD_DIR}/nanopb/nanopb_Privacy.bundle", 443 | ); 444 | name = "[CP] Copy Pods Resources"; 445 | outputPaths = ( 446 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AppAuthCore_Privacy.bundle", 447 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/openssl_grpc.bundle", 448 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FacebookSDKStrings.bundle", 449 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseAuth_Privacy.bundle", 450 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCore_Privacy.bundle", 451 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCoreExtension_Privacy.bundle", 452 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCoreInternal_Privacy.bundle", 453 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseFirestore_Privacy.bundle", 454 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseFirestoreInternal_Privacy.bundle", 455 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMAppAuth_Privacy.bundle", 456 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMSessionFetcher_Core_Privacy.bundle", 457 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleSignIn.bundle", 458 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle", 459 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle", 460 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNCAsyncStorage_resources.bundle", 461 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf", 462 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf", 463 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf", 464 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Feather.ttf", 465 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome.ttf", 466 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Brands.ttf", 467 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Regular.ttf", 468 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Solid.ttf", 469 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome6_Brands.ttf", 470 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome6_Regular.ttf", 471 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome6_Solid.ttf", 472 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Fontisto.ttf", 473 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Foundation.ttf", 474 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Ionicons.ttf", 475 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialCommunityIcons.ttf", 476 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialIcons.ttf", 477 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Octicons.ttf", 478 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf", 479 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf", 480 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle", 481 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle", 482 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/xcprivacy.bundle", 483 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle", 484 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/gRPCCertificates-Cpp.bundle", 485 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/grpcpp.bundle", 486 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/grpc.bundle", 487 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle", 488 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/leveldb_Privacy.bundle", 489 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/nanopb_Privacy.bundle", 490 | ); 491 | runOnlyForDeploymentPostprocessing = 0; 492 | shellPath = /bin/sh; 493 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rn_starter_kit/Pods-rn_starter_kit-resources.sh\"\n"; 494 | showEnvVarsInLog = 0; 495 | }; 496 | C12A64E8E2391B4FE1974F27 /* [CP] Embed Pods Frameworks */ = { 497 | isa = PBXShellScriptBuildPhase; 498 | buildActionMask = 2147483647; 499 | files = ( 500 | ); 501 | inputPaths = ( 502 | "${PODS_ROOT}/Target Support Files/Pods-rn_starter_kit/Pods-rn_starter_kit-frameworks.sh", 503 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes", 504 | ); 505 | name = "[CP] Embed Pods Frameworks"; 506 | outputPaths = ( 507 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", 508 | ); 509 | runOnlyForDeploymentPostprocessing = 0; 510 | shellPath = /bin/sh; 511 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rn_starter_kit/Pods-rn_starter_kit-frameworks.sh\"\n"; 512 | showEnvVarsInLog = 0; 513 | }; 514 | CA586AFEEC8A91E753CA9920 /* [CP] Check Pods Manifest.lock */ = { 515 | isa = PBXShellScriptBuildPhase; 516 | buildActionMask = 2147483647; 517 | files = ( 518 | ); 519 | inputFileListPaths = ( 520 | ); 521 | inputPaths = ( 522 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 523 | "${PODS_ROOT}/Manifest.lock", 524 | ); 525 | name = "[CP] Check Pods Manifest.lock"; 526 | outputFileListPaths = ( 527 | ); 528 | outputPaths = ( 529 | "$(DERIVED_FILE_DIR)/Pods-rn_starter_kit-checkManifestLockResult.txt", 530 | ); 531 | runOnlyForDeploymentPostprocessing = 0; 532 | shellPath = /bin/sh; 533 | 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"; 534 | showEnvVarsInLog = 0; 535 | }; 536 | FD10A7F022414F080027D42C /* Start Packager */ = { 537 | isa = PBXShellScriptBuildPhase; 538 | buildActionMask = 2147483647; 539 | files = ( 540 | ); 541 | inputFileListPaths = ( 542 | ); 543 | inputPaths = ( 544 | ); 545 | name = "Start Packager"; 546 | outputFileListPaths = ( 547 | ); 548 | outputPaths = ( 549 | ); 550 | runOnlyForDeploymentPostprocessing = 0; 551 | shellPath = /bin/sh; 552 | 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"; 553 | showEnvVarsInLog = 0; 554 | }; 555 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 556 | isa = PBXShellScriptBuildPhase; 557 | buildActionMask = 2147483647; 558 | files = ( 559 | ); 560 | inputFileListPaths = ( 561 | ); 562 | inputPaths = ( 563 | ); 564 | name = "Start Packager"; 565 | outputFileListPaths = ( 566 | ); 567 | outputPaths = ( 568 | ); 569 | runOnlyForDeploymentPostprocessing = 0; 570 | shellPath = /bin/sh; 571 | 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"; 572 | showEnvVarsInLog = 0; 573 | }; 574 | /* End PBXShellScriptBuildPhase section */ 575 | 576 | /* Begin PBXSourcesBuildPhase section */ 577 | 00E356EA1AD99517003FC87E /* Sources */ = { 578 | isa = PBXSourcesBuildPhase; 579 | buildActionMask = 2147483647; 580 | files = ( 581 | 00E356F31AD99517003FC87E /* rn_starter_kitTests.m in Sources */, 582 | ); 583 | runOnlyForDeploymentPostprocessing = 0; 584 | }; 585 | 13B07F871A680F5B00A75B9A /* Sources */ = { 586 | isa = PBXSourcesBuildPhase; 587 | buildActionMask = 2147483647; 588 | files = ( 589 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 590 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 591 | ); 592 | runOnlyForDeploymentPostprocessing = 0; 593 | }; 594 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 595 | isa = PBXSourcesBuildPhase; 596 | buildActionMask = 2147483647; 597 | files = ( 598 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 599 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 600 | ); 601 | runOnlyForDeploymentPostprocessing = 0; 602 | }; 603 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 604 | isa = PBXSourcesBuildPhase; 605 | buildActionMask = 2147483647; 606 | files = ( 607 | 2DCD954D1E0B4F2C00145EB5 /* rn_starter_kitTests.m in Sources */, 608 | ); 609 | runOnlyForDeploymentPostprocessing = 0; 610 | }; 611 | /* End PBXSourcesBuildPhase section */ 612 | 613 | /* Begin PBXTargetDependency section */ 614 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 615 | isa = PBXTargetDependency; 616 | target = 13B07F861A680F5B00A75B9A /* rn_starter_kit */; 617 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 618 | }; 619 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 620 | isa = PBXTargetDependency; 621 | target = 2D02E47A1E0B4A5D006451C7 /* rn_starter_kit-tvOS */; 622 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 623 | }; 624 | /* End PBXTargetDependency section */ 625 | 626 | /* Begin PBXVariantGroup section */ 627 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 628 | isa = PBXVariantGroup; 629 | children = ( 630 | 13B07FB21A68108700A75B9A /* Base */, 631 | ); 632 | name = LaunchScreen.xib; 633 | path = rn_starter_kit; 634 | sourceTree = ""; 635 | }; 636 | /* End PBXVariantGroup section */ 637 | 638 | /* Begin XCBuildConfiguration section */ 639 | 00E356F61AD99517003FC87E /* Debug */ = { 640 | isa = XCBuildConfiguration; 641 | buildSettings = { 642 | BUNDLE_LOADER = "$(TEST_HOST)"; 643 | GCC_PREPROCESSOR_DEFINITIONS = ( 644 | "DEBUG=1", 645 | "$(inherited)", 646 | ); 647 | INFOPLIST_FILE = rn_starter_kitTests/Info.plist; 648 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 649 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 650 | OTHER_LDFLAGS = ( 651 | "-ObjC", 652 | "-lc++", 653 | "$(inherited)", 654 | ); 655 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 656 | PRODUCT_NAME = "$(TARGET_NAME)"; 657 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rn_starter_kit.app/rn_starter_kit"; 658 | }; 659 | name = Debug; 660 | }; 661 | 00E356F71AD99517003FC87E /* Release */ = { 662 | isa = XCBuildConfiguration; 663 | buildSettings = { 664 | BUNDLE_LOADER = "$(TEST_HOST)"; 665 | COPY_PHASE_STRIP = NO; 666 | INFOPLIST_FILE = rn_starter_kitTests/Info.plist; 667 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 668 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 669 | OTHER_LDFLAGS = ( 670 | "-ObjC", 671 | "-lc++", 672 | "$(inherited)", 673 | ); 674 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 675 | PRODUCT_NAME = "$(TARGET_NAME)"; 676 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rn_starter_kit.app/rn_starter_kit"; 677 | }; 678 | name = Release; 679 | }; 680 | 13B07F941A680F5B00A75B9A /* Debug */ = { 681 | isa = XCBuildConfiguration; 682 | baseConfigurationReference = C580D21DF472DE67C68EE608 /* Pods-rn_starter_kit.debug.xcconfig */; 683 | buildSettings = { 684 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 685 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 686 | CLANG_ENABLE_MODULES = YES; 687 | CURRENT_PROJECT_VERSION = 1; 688 | ENABLE_BITCODE = NO; 689 | GCC_PREPROCESSOR_DEFINITIONS = ( 690 | "$(inherited)", 691 | "FB_SONARKIT_ENABLED=1", 692 | ); 693 | INFOPLIST_FILE = rn_starter_kit/Info.plist; 694 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 695 | OTHER_LDFLAGS = ( 696 | "$(inherited)", 697 | "-ObjC", 698 | "-lc++", 699 | ); 700 | PRODUCT_BUNDLE_IDENTIFIER = com.rn_starter_kit.starterkit.rn.ios; 701 | PRODUCT_NAME = rn_starter_kit; 702 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 703 | SWIFT_VERSION = 5.0; 704 | VERSIONING_SYSTEM = "apple-generic"; 705 | }; 706 | name = Debug; 707 | }; 708 | 13B07F951A680F5B00A75B9A /* Release */ = { 709 | isa = XCBuildConfiguration; 710 | baseConfigurationReference = 559C9A48894318637C600352 /* Pods-rn_starter_kit.release.xcconfig */; 711 | buildSettings = { 712 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 713 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 714 | CLANG_ENABLE_MODULES = YES; 715 | CURRENT_PROJECT_VERSION = 1; 716 | INFOPLIST_FILE = rn_starter_kit/Info.plist; 717 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 718 | OTHER_LDFLAGS = ( 719 | "$(inherited)", 720 | "-ObjC", 721 | "-lc++", 722 | ); 723 | PRODUCT_BUNDLE_IDENTIFIER = com.rn_starter_kit.starterkit.rn.ios; 724 | PRODUCT_NAME = rn_starter_kit; 725 | SWIFT_VERSION = 5.0; 726 | VERSIONING_SYSTEM = "apple-generic"; 727 | }; 728 | name = Release; 729 | }; 730 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 731 | isa = XCBuildConfiguration; 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 | DEBUG_INFORMATION_FORMAT = dwarf; 740 | ENABLE_TESTABILITY = YES; 741 | GCC_NO_COMMON_BLOCKS = YES; 742 | INFOPLIST_FILE = "rn_starter_kit-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.rn_starter_kit-tvOS"; 750 | PRODUCT_NAME = "$(TARGET_NAME)"; 751 | SDKROOT = appletvos; 752 | TARGETED_DEVICE_FAMILY = 3; 753 | TVOS_DEPLOYMENT_TARGET = 9.2; 754 | }; 755 | name = Debug; 756 | }; 757 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 758 | isa = XCBuildConfiguration; 759 | buildSettings = { 760 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 761 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 762 | CLANG_ANALYZER_NONNULL = YES; 763 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 764 | CLANG_WARN_INFINITE_RECURSION = YES; 765 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 766 | COPY_PHASE_STRIP = NO; 767 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 768 | GCC_NO_COMMON_BLOCKS = YES; 769 | INFOPLIST_FILE = "rn_starter_kit-tvOS/Info.plist"; 770 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 771 | OTHER_LDFLAGS = ( 772 | "$(inherited)", 773 | "-ObjC", 774 | "-lc++", 775 | ); 776 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.rn_starter_kit-tvOS"; 777 | PRODUCT_NAME = "$(TARGET_NAME)"; 778 | SDKROOT = appletvos; 779 | TARGETED_DEVICE_FAMILY = 3; 780 | TVOS_DEPLOYMENT_TARGET = 9.2; 781 | }; 782 | name = Release; 783 | }; 784 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 785 | isa = XCBuildConfiguration; 786 | buildSettings = { 787 | BUNDLE_LOADER = "$(TEST_HOST)"; 788 | CLANG_ANALYZER_NONNULL = YES; 789 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 790 | CLANG_WARN_INFINITE_RECURSION = YES; 791 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 792 | DEBUG_INFORMATION_FORMAT = dwarf; 793 | ENABLE_TESTABILITY = YES; 794 | GCC_NO_COMMON_BLOCKS = YES; 795 | INFOPLIST_FILE = "rn_starter_kit-tvOSTests/Info.plist"; 796 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 797 | OTHER_LDFLAGS = ( 798 | "$(inherited)", 799 | "-ObjC", 800 | "-lc++", 801 | ); 802 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.rn_starter_kit-tvOSTests"; 803 | PRODUCT_NAME = "$(TARGET_NAME)"; 804 | SDKROOT = appletvos; 805 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rn_starter_kit-tvOS.app/rn_starter_kit-tvOS"; 806 | TVOS_DEPLOYMENT_TARGET = 10.1; 807 | }; 808 | name = Debug; 809 | }; 810 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 811 | isa = XCBuildConfiguration; 812 | buildSettings = { 813 | BUNDLE_LOADER = "$(TEST_HOST)"; 814 | CLANG_ANALYZER_NONNULL = YES; 815 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 816 | CLANG_WARN_INFINITE_RECURSION = YES; 817 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 818 | COPY_PHASE_STRIP = NO; 819 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 820 | GCC_NO_COMMON_BLOCKS = YES; 821 | INFOPLIST_FILE = "rn_starter_kit-tvOSTests/Info.plist"; 822 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 823 | OTHER_LDFLAGS = ( 824 | "$(inherited)", 825 | "-ObjC", 826 | "-lc++", 827 | ); 828 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.rn_starter_kit-tvOSTests"; 829 | PRODUCT_NAME = "$(TARGET_NAME)"; 830 | SDKROOT = appletvos; 831 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/rn_starter_kit-tvOS.app/rn_starter_kit-tvOS"; 832 | TVOS_DEPLOYMENT_TARGET = 10.1; 833 | }; 834 | name = Release; 835 | }; 836 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 837 | isa = XCBuildConfiguration; 838 | buildSettings = { 839 | ALWAYS_SEARCH_USER_PATHS = NO; 840 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 841 | CLANG_CXX_LANGUAGE_STANDARD = "c++20"; 842 | CLANG_CXX_LIBRARY = "libc++"; 843 | CLANG_ENABLE_MODULES = YES; 844 | CLANG_ENABLE_OBJC_ARC = YES; 845 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 846 | CLANG_WARN_BOOL_CONVERSION = YES; 847 | CLANG_WARN_COMMA = YES; 848 | CLANG_WARN_CONSTANT_CONVERSION = YES; 849 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 850 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 851 | CLANG_WARN_EMPTY_BODY = YES; 852 | CLANG_WARN_ENUM_CONVERSION = YES; 853 | CLANG_WARN_INFINITE_RECURSION = YES; 854 | CLANG_WARN_INT_CONVERSION = YES; 855 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 856 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 857 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 858 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 859 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 860 | CLANG_WARN_STRICT_PROTOTYPES = YES; 861 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 862 | CLANG_WARN_UNREACHABLE_CODE = YES; 863 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 864 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 865 | COPY_PHASE_STRIP = NO; 866 | ENABLE_STRICT_OBJC_MSGSEND = YES; 867 | ENABLE_TESTABILITY = YES; 868 | GCC_C_LANGUAGE_STANDARD = gnu99; 869 | GCC_DYNAMIC_NO_PIC = NO; 870 | GCC_NO_COMMON_BLOCKS = YES; 871 | GCC_OPTIMIZATION_LEVEL = 0; 872 | GCC_PREPROCESSOR_DEFINITIONS = ( 873 | "DEBUG=1", 874 | "$(inherited)", 875 | ); 876 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 877 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 878 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 879 | GCC_WARN_UNDECLARED_SELECTOR = YES; 880 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 881 | GCC_WARN_UNUSED_FUNCTION = YES; 882 | GCC_WARN_UNUSED_VARIABLE = YES; 883 | HEADER_SEARCH_PATHS = ( 884 | "$(inherited)", 885 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers", 886 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core", 887 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers", 888 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios", 889 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx", 890 | "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers", 891 | "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers", 892 | "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios", 893 | ); 894 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 895 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 896 | LIBRARY_SEARCH_PATHS = ( 897 | "$(SDKROOT)/usr/lib/swift", 898 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 899 | "\"$(inherited)\"", 900 | ); 901 | MTL_ENABLE_DEBUG_INFO = YES; 902 | ONLY_ACTIVE_ARCH = YES; 903 | OTHER_LDFLAGS = ( 904 | "$(inherited)", 905 | " ", 906 | ); 907 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; 908 | SDKROOT = iphoneos; 909 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG"; 910 | USE_HERMES = true; 911 | }; 912 | name = Debug; 913 | }; 914 | 83CBBA211A601CBA00E9B192 /* Release */ = { 915 | isa = XCBuildConfiguration; 916 | buildSettings = { 917 | ALWAYS_SEARCH_USER_PATHS = NO; 918 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 919 | CLANG_CXX_LANGUAGE_STANDARD = "c++20"; 920 | CLANG_CXX_LIBRARY = "libc++"; 921 | CLANG_ENABLE_MODULES = YES; 922 | CLANG_ENABLE_OBJC_ARC = YES; 923 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 924 | CLANG_WARN_BOOL_CONVERSION = YES; 925 | CLANG_WARN_COMMA = YES; 926 | CLANG_WARN_CONSTANT_CONVERSION = YES; 927 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 928 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 929 | CLANG_WARN_EMPTY_BODY = YES; 930 | CLANG_WARN_ENUM_CONVERSION = YES; 931 | CLANG_WARN_INFINITE_RECURSION = YES; 932 | CLANG_WARN_INT_CONVERSION = YES; 933 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 934 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 935 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 936 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 937 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 938 | CLANG_WARN_STRICT_PROTOTYPES = YES; 939 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 940 | CLANG_WARN_UNREACHABLE_CODE = YES; 941 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 942 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 943 | COPY_PHASE_STRIP = YES; 944 | ENABLE_NS_ASSERTIONS = NO; 945 | ENABLE_STRICT_OBJC_MSGSEND = YES; 946 | GCC_C_LANGUAGE_STANDARD = gnu99; 947 | GCC_NO_COMMON_BLOCKS = YES; 948 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 949 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 950 | GCC_WARN_UNDECLARED_SELECTOR = YES; 951 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 952 | GCC_WARN_UNUSED_FUNCTION = YES; 953 | GCC_WARN_UNUSED_VARIABLE = YES; 954 | HEADER_SEARCH_PATHS = ( 955 | "$(inherited)", 956 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers", 957 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core", 958 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers", 959 | "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios", 960 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx", 961 | "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers", 962 | "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers", 963 | "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios", 964 | ); 965 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 966 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 967 | LIBRARY_SEARCH_PATHS = ( 968 | "$(SDKROOT)/usr/lib/swift", 969 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 970 | "\"$(inherited)\"", 971 | ); 972 | MTL_ENABLE_DEBUG_INFO = NO; 973 | OTHER_LDFLAGS = ( 974 | "$(inherited)", 975 | " ", 976 | ); 977 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; 978 | SDKROOT = iphoneos; 979 | USE_HERMES = true; 980 | VALIDATE_PRODUCT = YES; 981 | }; 982 | name = Release; 983 | }; 984 | /* End XCBuildConfiguration section */ 985 | 986 | /* Begin XCConfigurationList section */ 987 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rn_starter_kitTests" */ = { 988 | isa = XCConfigurationList; 989 | buildConfigurations = ( 990 | 00E356F61AD99517003FC87E /* Debug */, 991 | 00E356F71AD99517003FC87E /* Release */, 992 | ); 993 | defaultConfigurationIsVisible = 0; 994 | defaultConfigurationName = Release; 995 | }; 996 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rn_starter_kit" */ = { 997 | isa = XCConfigurationList; 998 | buildConfigurations = ( 999 | 13B07F941A680F5B00A75B9A /* Debug */, 1000 | 13B07F951A680F5B00A75B9A /* Release */, 1001 | ); 1002 | defaultConfigurationIsVisible = 0; 1003 | defaultConfigurationName = Release; 1004 | }; 1005 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rn_starter_kit-tvOS" */ = { 1006 | isa = XCConfigurationList; 1007 | buildConfigurations = ( 1008 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1009 | 2D02E4981E0B4A5E006451C7 /* Release */, 1010 | ); 1011 | defaultConfigurationIsVisible = 0; 1012 | defaultConfigurationName = Release; 1013 | }; 1014 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "rn_starter_kit-tvOSTests" */ = { 1015 | isa = XCConfigurationList; 1016 | buildConfigurations = ( 1017 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1018 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1019 | ); 1020 | defaultConfigurationIsVisible = 0; 1021 | defaultConfigurationName = Release; 1022 | }; 1023 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "rn_starter_kit" */ = { 1024 | isa = XCConfigurationList; 1025 | buildConfigurations = ( 1026 | 83CBBA201A601CBA00E9B192 /* Debug */, 1027 | 83CBBA211A601CBA00E9B192 /* Release */, 1028 | ); 1029 | defaultConfigurationIsVisible = 0; 1030 | defaultConfigurationName = Release; 1031 | }; 1032 | /* End XCConfigurationList section */ 1033 | }; 1034 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1035 | } 1036 | --------------------------------------------------------------------------------