├── .babelrc ├── .buckconfig ├── .eslintrc.json ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .upgrade-info ├── assets.txt ├── debugging.txt ├── management.txt ├── offline.txt ├── release.txt └── testing.txt ├── .vscode └── settings.json ├── .watchmanconfig ├── App ├── actions │ ├── currencies.js │ └── theme.js ├── components │ ├── Alert │ │ ├── DropdownAlert.js │ │ ├── index.js │ │ └── styles.js │ ├── Button │ │ ├── ClearButton.js │ │ ├── images │ │ │ ├── icon.png │ │ │ ├── icon@2x.png │ │ │ └── icon@3x.png │ │ ├── index.js │ │ └── styles.js │ ├── Container │ │ ├── Container.js │ │ ├── index.js │ │ └── styles.js │ ├── Header │ │ ├── Header.js │ │ ├── images │ │ │ ├── gear.png │ │ │ ├── gear@2x.png │ │ │ └── gear@3x.png │ │ ├── index.js │ │ └── styles.js │ ├── List │ │ ├── Icon.js │ │ ├── ListItem.js │ │ ├── Separator.js │ │ ├── images │ │ │ ├── arrow-forward │ │ │ │ ├── arrow-forward.png │ │ │ │ ├── arrow-forward@2x.png │ │ │ │ └── arrow-forward@3x.png │ │ │ ├── checkmark │ │ │ │ ├── checkmark.png │ │ │ │ ├── checkmark@2x.png │ │ │ │ └── checkmark@3x.png │ │ │ └── link │ │ │ │ ├── link.png │ │ │ │ ├── link@2x.png │ │ │ │ └── link@3x.png │ │ ├── index.js │ │ └── styles.js │ ├── Logo │ │ ├── Logo.js │ │ ├── images │ │ │ ├── background.png │ │ │ ├── background@2x.png │ │ │ ├── background@3x.png │ │ │ ├── logo.png │ │ │ ├── logo@2x.png │ │ │ └── logo@3x.png │ │ ├── index.js │ │ └── styles.js │ ├── Text │ │ ├── LastConverted.js │ │ ├── index.js │ │ └── styles.js │ └── TextInput │ │ ├── InputWithButton.js │ │ ├── index.js │ │ └── styles.js ├── config │ ├── colors.js │ ├── routes.js │ ├── sagas.js │ └── store.js ├── data │ └── currencies.js ├── index.js ├── reducers │ ├── currencies.js │ ├── index.js │ └── theme.js ├── screens │ ├── CurrencyList.js │ ├── Home.js │ ├── Options.js │ └── Themes.js └── util │ └── dates.js ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── currencyconverter │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── 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 │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── assets ├── android-app-icons.zip ├── ios-app-icons.zip ├── screenshot.png └── splash-icon.zip ├── index.js ├── ios ├── CurrencyConverter-tvOS │ └── Info.plist ├── CurrencyConverter-tvOSTests │ └── Info.plist ├── CurrencyConverter.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── CurrencyConverter-tvOS.xcscheme │ │ └── CurrencyConverter.xcscheme ├── CurrencyConverter │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── CurrencyConverterTests │ ├── CurrencyConverterTests.m │ └── Info.plist ├── package-lock.json ├── package.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["module:metro-react-native-babel-preset"] 3 | } 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb", 3 | "parser": "babel-eslint", 4 | "env": { 5 | "browser": true 6 | }, 7 | "plugins": ["react"], 8 | "rules": { 9 | "react/jsx-filename-extension": [ 10 | 2, 11 | { 12 | "extensions": [".js", ".jsx"] 13 | } 14 | ], 15 | "react/require-default-props": [0], 16 | "global-require": [0], 17 | "func-names": [0], 18 | "react/prop-types": [0], 19 | "import/prefer-default-export": [0] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | emoji=true 31 | 32 | esproposal.optional_chaining=enable 33 | esproposal.nullish_coalescing=enable 34 | 35 | module.system=haste 36 | module.system.haste.use_name_reducers=true 37 | # get basename 38 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 39 | # strip .js or .js.flow suffix 40 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 41 | # strip .ios suffix 42 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 44 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 45 | module.system.haste.paths.blacklist=.*/__tests__/.* 46 | module.system.haste.paths.blacklist=.*/__mocks__/.* 47 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 48 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 49 | 50 | munge_underscores=true 51 | 52 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 53 | 54 | module.file_ext=.js 55 | module.file_ext=.jsx 56 | module.file_ext=.json 57 | module.file_ext=.native.js 58 | 59 | suppress_type=$FlowIssue 60 | suppress_type=$FlowFixMe 61 | suppress_type=$FlowFixMeProps 62 | suppress_type=$FlowFixMeState 63 | 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 68 | 69 | [version] 70 | ^0.78.0 71 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | -------------------------------------------------------------------------------- /.upgrade-info/assets.txt: -------------------------------------------------------------------------------- 1 | master 2 | assets-start 3 | assets-packages 4 | assets-ios-icon 5 | assets-android-icon 6 | assets-ios-splash-screen 7 | assets-android-splash-screen 8 | -------------------------------------------------------------------------------- /.upgrade-info/debugging.txt: -------------------------------------------------------------------------------- 1 | master 2 | debugging-start 3 | debugging-packages 4 | debugging-react-dev-tools 5 | debugging-redux-logger 6 | debugging-redux-dev-tools 7 | -------------------------------------------------------------------------------- /.upgrade-info/management.txt: -------------------------------------------------------------------------------- 1 | master 2 | management-start 3 | management-packages 4 | management-ios-fastlane 5 | management-android-fastlane 6 | management-ios-promoting 7 | management-android-promoting 8 | management-installing-codepush 9 | management-ota-updates 10 | management-continuous-integration 11 | -------------------------------------------------------------------------------- /.upgrade-info/offline.txt: -------------------------------------------------------------------------------- 1 | master 2 | offline-start 3 | offline-packages 4 | offline-netinfo 5 | offline-network-info-redux 6 | offline-notifying-connection-status 7 | offline-saving-data 8 | offline-handling-offline-requests 9 | offline-clearing-error-messages 10 | offline-handling-timed-out-requests 11 | -------------------------------------------------------------------------------- /.upgrade-info/release.txt: -------------------------------------------------------------------------------- 1 | master 2 | release-start 3 | release-packages 4 | release-ios-preparing 5 | release-android-create 6 | -------------------------------------------------------------------------------- /.upgrade-info/testing.txt: -------------------------------------------------------------------------------- 1 | master 2 | testing-start 3 | testing-packages 4 | testing-first-testing 5 | testing-tracking-test-coverage 6 | testing-organizing 7 | testing-component-snapshot 8 | testing-redux-actions 9 | testing-redux-actions-snapshot 10 | testing-redux-reducer 11 | testing-redux-reducer-snapshot 12 | testing-user-interaction-enzyme 13 | testing-integration-screen 14 | testing-redux-saga 15 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "prettier.eslintIntegration": true, 3 | "editor.formatOnSave": true 4 | } 5 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App/actions/currencies.js: -------------------------------------------------------------------------------- 1 | export const CHANGE_CURRENCY_AMOUNT = 'CHANGE_CURRENCY_AMOUNT'; 2 | export const SWAP_CURRENCY = 'SWAP_CURRENCY'; 3 | export const CHANGE_BASE_CURRENCY = 'CHANGE_BASE_CURRENCY'; 4 | export const CHANGE_QUOTE_CURRENCY = 'CHANGE_QUOTE_CURRENCY'; 5 | export const GET_INITIAL_CONVERSION = 'GET_INITIAL_CONVERSION'; 6 | 7 | export const CONVERSION_RESULT = 'CONVERSION_RESULT'; 8 | export const CONVERSION_ERROR = 'CONVERSION_ERROR'; 9 | 10 | export const getInitialConversion = () => ({ 11 | type: GET_INITIAL_CONVERSION, 12 | }); 13 | 14 | export const changeCurrencyAmount = amount => ({ 15 | type: CHANGE_CURRENCY_AMOUNT, 16 | amount: parseFloat(amount), 17 | }); 18 | 19 | export const swapCurrency = () => ({ 20 | type: SWAP_CURRENCY, 21 | }); 22 | 23 | export const changeBaseCurrency = currency => ({ 24 | type: CHANGE_BASE_CURRENCY, 25 | currency, 26 | }); 27 | 28 | export const changeQuoteCurrency = currency => ({ 29 | type: CHANGE_QUOTE_CURRENCY, 30 | currency, 31 | }); 32 | -------------------------------------------------------------------------------- /App/actions/theme.js: -------------------------------------------------------------------------------- 1 | export const CHANGE_PRIMARY_COLOR = 'CHANGE_PRIMARY_COLOR'; 2 | 3 | export const changePrimaryColor = color => ({ 4 | type: CHANGE_PRIMARY_COLOR, 5 | color, 6 | }); 7 | -------------------------------------------------------------------------------- /App/components/Alert/DropdownAlert.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Animated, Text, SafeAreaView, Dimensions, TouchableOpacity } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | 6 | const { height } = Dimensions.get('window'); 7 | export default class DropdownAlert extends React.Component { 8 | state = { 9 | contentHeight: height, 10 | title: null, 11 | message: null, 12 | }; 13 | 14 | animatedOffset = new Animated.Value(0); 15 | 16 | alertWithType = (type, title, message) => { 17 | this.setState( 18 | { 19 | title, 20 | message, 21 | }, 22 | () => { 23 | this.open().then(() => { 24 | setTimeout(() => { 25 | this.close(); 26 | }, 3000); 27 | }); 28 | }, 29 | ); 30 | }; 31 | 32 | measureContent = ({ nativeEvent }) => { 33 | this.setState({ 34 | contentHeight: Math.ceil(nativeEvent.layout.height), 35 | }); 36 | }; 37 | 38 | open = () => 39 | new Promise((resolve) => { 40 | Animated.timing(this.animatedOffset, { 41 | toValue: 1, 42 | useNativeDriver: true, 43 | }).start(() => resolve()); 44 | }); 45 | 46 | close = () => 47 | new Promise((resolve) => { 48 | Animated.timing(this.animatedOffset, { 49 | toValue: 0, 50 | useNativeDriver: true, 51 | }).start(() => resolve()); 52 | }); 53 | 54 | render() { 55 | const containerStyles = [ 56 | styles.container, 57 | styles.error, 58 | { 59 | transform: [ 60 | { 61 | translateY: this.animatedOffset.interpolate({ 62 | inputRange: [0, 1], 63 | outputRange: [-this.state.contentHeight, 0], 64 | }), 65 | }, 66 | ], 67 | }, 68 | ]; 69 | 70 | return ( 71 | 72 | 73 | 74 | 75 | {this.state.title} 76 | 77 | {this.state.message} 78 | 79 | 80 | 81 | ); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /App/components/Alert/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import DropdownAlert from './DropdownAlert'; 3 | 4 | const AlertContext = React.createContext({}); 5 | 6 | export const AlertConsumer = AlertContext.Consumer; 7 | 8 | export class AlertProvider extends React.Component { 9 | alertWithType = (...args) => this.dropdown.alertWithType(...args); 10 | 11 | render() { 12 | return ( 13 | 18 | {this.props.children} 19 | { 21 | this.dropdown = ref; 22 | }} 23 | /> 24 | 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /App/components/Alert/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet, Platform, StatusBar } from 'react-native'; 2 | 3 | export default StyleSheet.create({ 4 | container: { 5 | position: 'absolute', 6 | left: 0, 7 | right: 0, 8 | top: 0, 9 | paddingHorizontal: 20, 10 | paddingVertical: 10, 11 | justifyContent: 'center', 12 | overflow: 'hidden', 13 | ...Platform.select({ 14 | android: { 15 | paddingTop: StatusBar.currentHeight * 1.5, 16 | }, 17 | }), 18 | }, 19 | titleText: { 20 | fontSize: 16, 21 | textAlign: 'left', 22 | fontWeight: 'bold', 23 | color: '#fff', 24 | backgroundColor: 'transparent', 25 | }, 26 | messageText: { 27 | fontSize: 14, 28 | textAlign: 'left', 29 | fontWeight: 'normal', 30 | color: '#fff', 31 | backgroundColor: 'transparent', 32 | }, 33 | error: { 34 | backgroundColor: '#cc3232', 35 | }, 36 | }); 37 | -------------------------------------------------------------------------------- /App/components/Button/ClearButton.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Text, TouchableOpacity, Image, View } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | 6 | const ClearButton = ({ text, onPress }) => ( 7 | 8 | 9 | 10 | {text} 11 | 12 | 13 | ); 14 | 15 | export default ClearButton; 16 | -------------------------------------------------------------------------------- /App/components/Button/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Button/images/icon.png -------------------------------------------------------------------------------- /App/components/Button/images/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Button/images/icon@2x.png -------------------------------------------------------------------------------- /App/components/Button/images/icon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Button/images/icon@3x.png -------------------------------------------------------------------------------- /App/components/Button/index.js: -------------------------------------------------------------------------------- 1 | import ClearButton from './ClearButton'; 2 | import styles from './styles'; 3 | 4 | export { ClearButton, styles }; 5 | -------------------------------------------------------------------------------- /App/components/Button/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import colors from '../../config/colors'; 3 | 4 | export default StyleSheet.create({ 5 | container: { 6 | alignItems: 'center', 7 | }, 8 | wrapper: { 9 | flexDirection: 'row', 10 | alignItems: 'center', 11 | }, 12 | icon: { 13 | width: 19, 14 | marginRight: 11, 15 | }, 16 | text: { 17 | color: colors.$white, 18 | fontSize: 14, 19 | paddingVertical: 20, 20 | fontWeight: '300', 21 | }, 22 | }); 23 | -------------------------------------------------------------------------------- /App/components/Container/Container.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { SafeAreaView } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | 6 | const Container = ({ children, backgroundColor }) => { 7 | const containerStyles = [styles.container]; 8 | if (backgroundColor) { 9 | containerStyles.push({ backgroundColor }); 10 | } 11 | return {children}; 12 | }; 13 | 14 | export default Container; 15 | -------------------------------------------------------------------------------- /App/components/Container/index.js: -------------------------------------------------------------------------------- 1 | import Container from './Container'; 2 | import styles from './styles'; 3 | 4 | export { Container, styles }; 5 | -------------------------------------------------------------------------------- /App/components/Container/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import colors from '../../config/colors'; 3 | 4 | export default StyleSheet.create({ 5 | container: { 6 | flex: 1, 7 | alignItems: 'center', 8 | justifyContent: 'center', 9 | backgroundColor: colors.$primaryBlue, 10 | }, 11 | }); 12 | -------------------------------------------------------------------------------- /App/components/Header/Header.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Image, TouchableOpacity, SafeAreaView } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | 6 | const Header = ({ onPress }) => ( 7 | 8 | 9 | 10 | 11 | 12 | ); 13 | 14 | export default Header; 15 | -------------------------------------------------------------------------------- /App/components/Header/images/gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Header/images/gear.png -------------------------------------------------------------------------------- /App/components/Header/images/gear@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Header/images/gear@2x.png -------------------------------------------------------------------------------- /App/components/Header/images/gear@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Header/images/gear@3x.png -------------------------------------------------------------------------------- /App/components/Header/index.js: -------------------------------------------------------------------------------- 1 | import Header from './Header'; 2 | import styles from './styles'; 3 | 4 | export { Header, styles }; 5 | -------------------------------------------------------------------------------- /App/components/Header/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet, Platform, StatusBar } from 'react-native'; 2 | 3 | export default StyleSheet.create({ 4 | container: { 5 | position: 'absolute', 6 | left: 0, 7 | top: 0, 8 | right: 0, 9 | ...Platform.select({ 10 | ios: { 11 | paddingTop: 20, 12 | }, 13 | android: { 14 | paddingTop: StatusBar.currentHeight, 15 | }, 16 | }), 17 | }, 18 | button: { 19 | alignSelf: 'flex-end', 20 | paddingVertical: 5, 21 | paddingHorizontal: 20, 22 | }, 23 | icon: { 24 | width: 18, 25 | }, 26 | }); 27 | -------------------------------------------------------------------------------- /App/components/List/Icon.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, Image } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | 6 | const getIcon = (name) => { 7 | switch (name) { 8 | case 'arrow-forward': 9 | return require('./images/arrow-forward/arrow-forward.png'); 10 | case 'link': 11 | return require('./images/link/link.png'); 12 | case 'checkmark': 13 | default: 14 | return require('./images/checkmark/checkmark.png'); 15 | } 16 | }; 17 | 18 | const Icon = ({ 19 | visible, iconBackground, iconName, iconColor, iconSize, 20 | }) => { 21 | if (visible) { 22 | const containerStyles = [styles.icon]; 23 | if (visible) { 24 | containerStyles.push(styles.iconVisible); 25 | } 26 | if (iconBackground) { 27 | containerStyles.push({ backgroundColor: iconBackground }); 28 | } 29 | 30 | const iconStyles = [styles.checkIcon]; 31 | if (iconColor) { 32 | iconStyles.push({ tintColor: iconColor }); 33 | } 34 | 35 | if (iconSize) { 36 | iconStyles.push({ width: iconSize }); 37 | } 38 | 39 | return ( 40 | 41 | {iconName ? ( 42 | 43 | ) : null} 44 | 45 | ); 46 | } 47 | 48 | return ; 49 | }; 50 | 51 | export default Icon; 52 | -------------------------------------------------------------------------------- /App/components/List/ListItem.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, Text, TouchableHighlight } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | import colors from '../../config/colors'; 6 | import Icon from './Icon'; 7 | 8 | const ListItem = ({ 9 | text, 10 | onPress, 11 | selected = false, 12 | visible = true, 13 | customIcon = null, 14 | iconBackground, 15 | iconName, 16 | }) => ( 17 | 18 | 19 | {text} 20 | {selected ? ( 21 | 22 | ) : ( 23 | 24 | )} 25 | {customIcon} 26 | 27 | 28 | ); 29 | 30 | export default ListItem; 31 | -------------------------------------------------------------------------------- /App/components/List/Separator.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | 6 | const Separator = () => ; 7 | 8 | export default Separator; 9 | -------------------------------------------------------------------------------- /App/components/List/images/arrow-forward/arrow-forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/arrow-forward/arrow-forward.png -------------------------------------------------------------------------------- /App/components/List/images/arrow-forward/arrow-forward@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/arrow-forward/arrow-forward@2x.png -------------------------------------------------------------------------------- /App/components/List/images/arrow-forward/arrow-forward@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/arrow-forward/arrow-forward@3x.png -------------------------------------------------------------------------------- /App/components/List/images/checkmark/checkmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/checkmark/checkmark.png -------------------------------------------------------------------------------- /App/components/List/images/checkmark/checkmark@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/checkmark/checkmark@2x.png -------------------------------------------------------------------------------- /App/components/List/images/checkmark/checkmark@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/checkmark/checkmark@3x.png -------------------------------------------------------------------------------- /App/components/List/images/link/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/link/link.png -------------------------------------------------------------------------------- /App/components/List/images/link/link@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/link/link@2x.png -------------------------------------------------------------------------------- /App/components/List/images/link/link@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/List/images/link/link@3x.png -------------------------------------------------------------------------------- /App/components/List/index.js: -------------------------------------------------------------------------------- 1 | import ListItem from './ListItem'; 2 | import styles from './styles'; 3 | import Separator from './Separator'; 4 | import Icon from './Icon'; 5 | 6 | export { ListItem, styles, Separator, Icon }; 7 | -------------------------------------------------------------------------------- /App/components/List/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import colors from '../../config/colors'; 3 | 4 | export default StyleSheet.create({ 5 | row: { 6 | paddingHorizontal: 20, 7 | paddingVertical: 16, 8 | justifyContent: 'space-between', 9 | alignItems: 'center', 10 | flexDirection: 'row', 11 | backgroundColor: colors.$white, 12 | }, 13 | text: { 14 | color: colors.$darkText, 15 | fontSize: 16, 16 | }, 17 | separator: { 18 | backgroundColor: colors.$border, 19 | height: StyleSheet.hairlineWidth, 20 | flex: 1, 21 | marginLeft: 20, 22 | }, 23 | icon: { 24 | backgroundColor: 'transparent', 25 | borderRadius: 15, 26 | width: 30, 27 | height: 30, 28 | alignItems: 'center', 29 | justifyContent: 'center', 30 | }, 31 | iconVisible: { 32 | backgroundColor: colors.$primaryBlue, 33 | }, 34 | checkIcon: { 35 | width: 18, 36 | tintColor: colors.$white, 37 | }, 38 | }); 39 | -------------------------------------------------------------------------------- /App/components/Logo/Logo.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { View, Text, Keyboard, Animated, Platform, StyleSheet } from 'react-native'; 3 | 4 | import styles, { imageSizes } from './styles'; 5 | 6 | const ANIMATION_DURATION = 250; 7 | 8 | class Logo extends Component { 9 | constructor(props) { 10 | super(props); 11 | 12 | this.state = { 13 | containerImageWidth: new Animated.Value(imageSizes.$largeContainerSize), 14 | imageWidth: new Animated.Value(imageSizes.$largeImageSize), 15 | }; 16 | } 17 | 18 | componentDidMount() { 19 | const name = Platform.OS === 'ios' ? 'Will' : 'Did'; 20 | this.keyboardDidShowListener = Keyboard.addListener( 21 | `keyboard${name}Show`, 22 | this.keyboardWillShow, 23 | ); 24 | this.keyboardDidHideListener = Keyboard.addListener( 25 | `keyboard${name}Hide`, 26 | this.keyboardWillHide, 27 | ); 28 | } 29 | 30 | componentWillUnmount() { 31 | this.keyboardDidShowListener.remove(); 32 | this.keyboardDidHideListener.remove(); 33 | } 34 | 35 | keyboardWillShow = () => { 36 | Animated.parallel([ 37 | Animated.timing(this.state.containerImageWidth, { 38 | toValue: imageSizes.$smallContainerSize, 39 | duration: ANIMATION_DURATION, 40 | }), 41 | Animated.timing(this.state.imageWidth, { 42 | toValue: imageSizes.$smallImageSize, 43 | duration: ANIMATION_DURATION, 44 | }), 45 | ]).start(); 46 | }; 47 | 48 | keyboardWillHide = () => { 49 | Animated.parallel([ 50 | Animated.timing(this.state.containerImageWidth, { 51 | toValue: imageSizes.$largeContainerSize, 52 | duration: ANIMATION_DURATION, 53 | }), 54 | Animated.timing(this.state.imageWidth, { 55 | toValue: imageSizes.$largeImageSize, 56 | duration: ANIMATION_DURATION, 57 | }), 58 | ]).start(); 59 | }; 60 | 61 | render() { 62 | const containerImageStyles = [ 63 | styles.containerImage, 64 | { width: this.state.containerImageWidth, height: this.state.containerImageWidth }, 65 | ]; 66 | const imageStyles = [ 67 | styles.logo, 68 | { width: this.state.imageWidth }, 69 | this.props.tintColor ? { tintColor: this.props.tintColor } : null, 70 | ]; 71 | 72 | return ( 73 | 74 | 75 | 80 | 85 | 86 | Currency Converter 87 | 88 | ); 89 | } 90 | } 91 | 92 | export default Logo; 93 | -------------------------------------------------------------------------------- /App/components/Logo/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Logo/images/background.png -------------------------------------------------------------------------------- /App/components/Logo/images/background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Logo/images/background@2x.png -------------------------------------------------------------------------------- /App/components/Logo/images/background@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Logo/images/background@3x.png -------------------------------------------------------------------------------- /App/components/Logo/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Logo/images/logo.png -------------------------------------------------------------------------------- /App/components/Logo/images/logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Logo/images/logo@2x.png -------------------------------------------------------------------------------- /App/components/Logo/images/logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/App/components/Logo/images/logo@3x.png -------------------------------------------------------------------------------- /App/components/Logo/index.js: -------------------------------------------------------------------------------- 1 | import Logo from './Logo'; 2 | import styles from './styles'; 3 | 4 | export { Logo, styles }; 5 | -------------------------------------------------------------------------------- /App/components/Logo/styles.js: -------------------------------------------------------------------------------- 1 | import { Dimensions, StyleSheet } from 'react-native'; 2 | import colors from '../../config/colors'; 3 | 4 | const imageWidth = Dimensions.get('window').width / 2; 5 | 6 | export const imageSizes = { 7 | $smallContainerSize: imageWidth / 2, 8 | $smallImageSize: imageWidth / 4, 9 | $largeContainerSize: imageWidth, 10 | $largeImageSize: imageWidth / 2, 11 | }; 12 | 13 | export default StyleSheet.create({ 14 | container: { 15 | alignItems: 'center', 16 | }, 17 | containerImage: { 18 | alignItems: 'center', 19 | justifyContent: 'center', 20 | width: colors.$largeContainerSize, 21 | height: colors.$largeContainerSize, 22 | }, 23 | logo: { 24 | width: colors.$largeImageSize, 25 | tintColor: colors.$primaryBlue, 26 | }, 27 | text: { 28 | color: colors.$white, 29 | fontSize: 28, 30 | letterSpacing: -0.5, 31 | marginTop: 15, 32 | fontWeight: '600', 33 | }, 34 | }); 35 | -------------------------------------------------------------------------------- /App/components/Text/LastConverted.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Text } from 'react-native'; 3 | import { formatDate } from '../../util/dates'; 4 | 5 | import styles from './styles'; 6 | 7 | const LastConverted = ({ 8 | date, base, quote, conversionRate, 9 | }) => ( 10 | 11 | 1 {base} = {conversionRate} {quote} as of {formatDate(date)} 12 | 13 | ); 14 | 15 | export default LastConverted; 16 | -------------------------------------------------------------------------------- /App/components/Text/index.js: -------------------------------------------------------------------------------- 1 | import LastConverted from './LastConverted'; 2 | import styles from './styles'; 3 | 4 | export { LastConverted, styles }; 5 | -------------------------------------------------------------------------------- /App/components/Text/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import colors from '../../config/colors'; 3 | 4 | export default StyleSheet.create({ 5 | smallText: { 6 | color: colors.$white, 7 | textAlign: 'center', 8 | fontSize: 12, 9 | }, 10 | }); 11 | -------------------------------------------------------------------------------- /App/components/TextInput/InputWithButton.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, TextInput, TouchableHighlight, Text } from 'react-native'; 3 | 4 | import styles from './styles'; 5 | import colors from '../../config/colors'; 6 | 7 | const InputWithButton = (props) => { 8 | const containerStyles = [styles.container]; 9 | if (props.editable === false) { 10 | containerStyles.push(styles.containerDisabled); 11 | } 12 | 13 | const buttonTextStyles = [styles.buttonText]; 14 | if (props.textColor) { 15 | buttonTextStyles.push({ color: props.textColor }); 16 | } 17 | 18 | return ( 19 | 20 | 25 | {props.buttonText} 26 | 27 | 28 | 29 | 30 | ); 31 | }; 32 | 33 | export default InputWithButton; 34 | -------------------------------------------------------------------------------- /App/components/TextInput/index.js: -------------------------------------------------------------------------------- 1 | import InputWithButton from './InputWithButton'; 2 | import styles from './styles'; 3 | 4 | export { InputWithButton, styles }; 5 | -------------------------------------------------------------------------------- /App/components/TextInput/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import colors from '../../config/colors'; 3 | 4 | const INPUT_HEIGHT = 48; 5 | const BORDER_RADIUS = 4; 6 | 7 | export default StyleSheet.create({ 8 | container: { 9 | backgroundColor: colors.$white, 10 | width: '90%', 11 | height: INPUT_HEIGHT, 12 | flexDirection: 'row', 13 | alignItems: 'center', 14 | borderRadius: BORDER_RADIUS, 15 | marginVertical: 11, 16 | }, 17 | containerDisabled: { 18 | backgroundColor: colors.$lightGray, 19 | }, 20 | buttonContainer: { 21 | height: INPUT_HEIGHT, 22 | alignItems: 'center', 23 | justifyContent: 'center', 24 | backgroundColor: colors.$white, 25 | borderTopLeftRadius: BORDER_RADIUS, 26 | borderBottomLeftRadius: BORDER_RADIUS, 27 | }, 28 | buttonText: { 29 | fontWeight: '600', 30 | fontSize: 20, 31 | paddingHorizontal: 16, 32 | color: colors.primaryBlue, 33 | }, 34 | separator: { 35 | height: INPUT_HEIGHT, 36 | width: StyleSheet.hairlineWidth, 37 | backgroundColor: colors.$border, 38 | }, 39 | input: { 40 | flex: 1, 41 | height: INPUT_HEIGHT, 42 | borderTopRightRadius: BORDER_RADIUS, 43 | paddingHorizontal: 8, 44 | color: colors.$inputText, 45 | fontSize: 18, 46 | }, 47 | }); 48 | -------------------------------------------------------------------------------- /App/config/colors.js: -------------------------------------------------------------------------------- 1 | export default { 2 | $primaryBlue: '#4F6D7A', 3 | $primaryOrange: '#D57A66', 4 | $primaryGreen: '#00BD9D', 5 | $primaryPurple: '#9E768F', 6 | 7 | $white: '#FFFFFF', 8 | $lightGray: '#F0F0F0', 9 | $border: '#E2E2E2', 10 | $inputText: '#797979', 11 | $darkText: '#343434', 12 | }; 13 | -------------------------------------------------------------------------------- /App/config/routes.js: -------------------------------------------------------------------------------- 1 | import { createStackNavigator } from 'react-navigation'; 2 | 3 | import Home from '../screens/Home'; 4 | import CurrencyList from '../screens/CurrencyList'; 5 | import Options from '../screens/Options'; 6 | import Themes from '../screens/Themes'; 7 | 8 | const HomeStack = createStackNavigator( 9 | { 10 | Home: { 11 | screen: Home, 12 | navigationOptions: { 13 | header: () => null, 14 | headerTitle: 'Home', 15 | }, 16 | }, 17 | Options: { 18 | screen: Options, 19 | navigationOptions: { 20 | headerTitle: 'Options', 21 | }, 22 | }, 23 | Themes: { 24 | screen: Themes, 25 | navigationOptions: { 26 | headerTitle: 'Themes', 27 | }, 28 | }, 29 | }, 30 | { 31 | headerMode: 'screen', 32 | }, 33 | ); 34 | 35 | const CurrencyListStack = createStackNavigator({ 36 | CurrencyList: { 37 | screen: CurrencyList, 38 | navigationOptions: ({ navigation }) => ({ 39 | headerTitle: navigation.state.params.title, 40 | }), 41 | }, 42 | }); 43 | 44 | export default createStackNavigator( 45 | { 46 | Home: { 47 | screen: HomeStack, 48 | }, 49 | CurrencyList: { 50 | screen: CurrencyListStack, 51 | }, 52 | }, 53 | { 54 | mode: 'modal', 55 | headerMode: 'none', 56 | }, 57 | ); 58 | -------------------------------------------------------------------------------- /App/config/sagas.js: -------------------------------------------------------------------------------- 1 | import { takeEvery, call, put, select } from 'redux-saga/effects'; 2 | 3 | import { 4 | CHANGE_BASE_CURRENCY, 5 | GET_INITIAL_CONVERSION, 6 | SWAP_CURRENCY, 7 | CONVERSION_RESULT, 8 | CONVERSION_ERROR, 9 | } from '../actions/currencies'; 10 | 11 | export const getLatestRate = currency => 12 | fetch(`https://fixer.handlebarlabs.com/latest?base=${currency}`); 13 | 14 | const fetchLatestConversionRates = function* ({ currency }) { 15 | try { 16 | let usedCurrency = currency; 17 | if (usedCurrency === undefined) { 18 | usedCurrency = yield select(state => state.currencies.baseCurrency); 19 | } 20 | const response = yield call(getLatestRate, usedCurrency); 21 | const result = yield response.json(); 22 | if (result.error) { 23 | yield put({ type: CONVERSION_ERROR, error: result.error }); 24 | } else { 25 | yield put({ type: CONVERSION_RESULT, result }); 26 | } 27 | } catch (error) { 28 | yield put({ type: CONVERSION_ERROR, error: error.message }); 29 | } 30 | }; 31 | 32 | const rootSaga = function* () { 33 | yield takeEvery(GET_INITIAL_CONVERSION, fetchLatestConversionRates); 34 | yield takeEvery(CHANGE_BASE_CURRENCY, fetchLatestConversionRates); 35 | yield takeEvery(SWAP_CURRENCY, fetchLatestConversionRates); 36 | }; 37 | 38 | export default rootSaga; 39 | -------------------------------------------------------------------------------- /App/config/store.js: -------------------------------------------------------------------------------- 1 | import { createStore, applyMiddleware } from 'redux'; 2 | import logger from 'redux-logger'; 3 | import createSagaMiddleware from 'redux-saga'; 4 | 5 | import reducer from '../reducers'; 6 | import rootSaga from './sagas'; 7 | 8 | const sagaMiddleware = createSagaMiddleware(); 9 | const middleware = [sagaMiddleware]; 10 | if (process.env.NODE_ENV === 'development') { 11 | middleware.push(logger); 12 | } 13 | 14 | const store = createStore(reducer, applyMiddleware(...middleware)); 15 | 16 | sagaMiddleware.run(rootSaga); 17 | 18 | export default store; 19 | -------------------------------------------------------------------------------- /App/data/currencies.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | 'AUD', 3 | 'BGN', 4 | 'BRL', 5 | 'CAD', 6 | 'CHF', 7 | 'CNY', 8 | 'CZK', 9 | 'DKK', 10 | 'EUR', 11 | 'GBP', 12 | 'HKD', 13 | 'HRK', 14 | 'HUF', 15 | 'IDR', 16 | 'ILS', 17 | 'INR', 18 | 'JPY', 19 | 'KRW', 20 | 'MXN', 21 | 'MYR', 22 | 'NOK', 23 | 'NZD', 24 | 'PHP', 25 | 'PLN', 26 | 'RON', 27 | 'RUB', 28 | 'SEK', 29 | 'SGD', 30 | 'THB', 31 | 'TRY', 32 | 'USD', 33 | 'ZAR', 34 | ]; 35 | -------------------------------------------------------------------------------- /App/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Provider } from 'react-redux'; 3 | 4 | import Navigator from './config/routes'; 5 | import { AlertProvider } from './components/Alert'; 6 | import store from './config/store'; 7 | 8 | export default () => ( 9 | 10 | 11 | 12 | 13 | 14 | ); 15 | -------------------------------------------------------------------------------- /App/reducers/currencies.js: -------------------------------------------------------------------------------- 1 | import { 2 | CHANGE_CURRENCY_AMOUNT, 3 | SWAP_CURRENCY, 4 | CHANGE_BASE_CURRENCY, 5 | CHANGE_QUOTE_CURRENCY, 6 | GET_INITIAL_CONVERSION, 7 | CONVERSION_RESULT, 8 | CONVERSION_ERROR, 9 | } from '../actions/currencies'; 10 | 11 | const initialState = { 12 | baseCurrency: 'USD', 13 | quoteCurrency: 'GBP', 14 | amount: 100, 15 | conversions: {}, 16 | error: null, 17 | }; 18 | 19 | const setConversions = (state, action) => { 20 | let conversion = { 21 | isFetching: true, 22 | date: '', 23 | rates: {}, 24 | }; 25 | 26 | if (state.conversions[action.currency]) { 27 | conversion = state.conversions[action.currency]; 28 | } 29 | 30 | return { 31 | ...state.conversions, 32 | [action.currency]: conversion, 33 | }; 34 | }; 35 | 36 | export default (state = initialState, action) => { 37 | switch (action.type) { 38 | case CHANGE_CURRENCY_AMOUNT: 39 | return { ...state, amount: action.amount || 0 }; 40 | case SWAP_CURRENCY: 41 | return { 42 | ...state, 43 | baseCurrency: state.quoteCurrency, 44 | quoteCurrency: state.baseCurrency, 45 | }; 46 | case CHANGE_BASE_CURRENCY: 47 | return { 48 | ...state, 49 | baseCurrency: action.currency, 50 | conversions: setConversions(state, action), 51 | }; 52 | case CHANGE_QUOTE_CURRENCY: 53 | return { 54 | ...state, 55 | quoteCurrency: action.currency, 56 | conversions: setConversions(state, action), 57 | }; 58 | case GET_INITIAL_CONVERSION: 59 | return { ...state, conversions: setConversions(state, { currency: state.baseCurrency }) }; 60 | case CONVERSION_RESULT: 61 | return { 62 | ...state, 63 | conversions: { 64 | ...state.conversions, 65 | [action.result.base]: { 66 | isFetching: false, 67 | ...action.result, 68 | }, 69 | }, 70 | }; 71 | case CONVERSION_ERROR: 72 | return { ...state, error: action.error }; 73 | default: 74 | return state; 75 | } 76 | }; 77 | -------------------------------------------------------------------------------- /App/reducers/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | 3 | import currencies from './currencies'; 4 | import theme from './theme'; 5 | 6 | export default combineReducers({ 7 | currencies, 8 | theme, 9 | }); 10 | -------------------------------------------------------------------------------- /App/reducers/theme.js: -------------------------------------------------------------------------------- 1 | import { CHANGE_PRIMARY_COLOR } from '../actions/theme'; 2 | 3 | const initialState = { 4 | primaryColor: '#4F6D7A', 5 | }; 6 | 7 | export default (state = initialState, action) => { 8 | switch (action.type) { 9 | case CHANGE_PRIMARY_COLOR: 10 | return { ...state, primaryColor: action.color }; 11 | default: 12 | return state; 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /App/screens/CurrencyList.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { FlatList, StatusBar, View } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | 5 | import { ListItem, Separator } from '../components/List'; 6 | import currencies from '../data/currencies'; 7 | import { changeBaseCurrency, changeQuoteCurrency } from '../actions/currencies'; 8 | 9 | class CurrencyList extends Component { 10 | handlePress = (currency) => { 11 | const { type } = this.props.navigation.state.params; 12 | if (type === 'base') { 13 | this.props.dispatch(changeBaseCurrency(currency)); 14 | } else if (type === 'quote') { 15 | this.props.dispatch(changeQuoteCurrency(currency)); 16 | } 17 | 18 | this.props.navigation.goBack(null); 19 | }; 20 | 21 | render() { 22 | let comparisonCurrency = this.props.baseCurrency; 23 | if (this.props.navigation.state.params.type === 'quote') { 24 | comparisonCurrency = this.props.quoteCurrency; 25 | } 26 | 27 | return ( 28 | 29 | 30 | ( 33 | this.handlePress(item)} 37 | iconBackground={this.props.primaryColor} 38 | iconName="checkmark" 39 | /> 40 | )} 41 | keyExtractor={item => item} 42 | ItemSeparatorComponent={Separator} 43 | /> 44 | 45 | ); 46 | } 47 | } 48 | 49 | const mapStateToProps = state => ({ 50 | baseCurrency: state.currencies.baseCurrency, 51 | quoteCurrency: state.currencies.quoteCurrency, 52 | primaryColor: state.theme.primaryColor, 53 | }); 54 | 55 | export default connect(mapStateToProps)(CurrencyList); 56 | -------------------------------------------------------------------------------- /App/screens/Home.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { StatusBar, KeyboardAvoidingView } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | 5 | import { Container } from '../components/Container'; 6 | import { Logo } from '../components/Logo'; 7 | import { InputWithButton } from '../components/TextInput'; 8 | import { ClearButton } from '../components/Button'; 9 | import { LastConverted } from '../components/Text'; 10 | import { Header } from '../components/Header'; 11 | import { AlertConsumer } from '../components/Alert'; 12 | 13 | import { changeCurrencyAmount, swapCurrency, getInitialConversion } from '../actions/currencies'; 14 | 15 | class Home extends Component { 16 | constructor(props) { 17 | super(props); 18 | 19 | this.props.dispatch(getInitialConversion()); 20 | } 21 | 22 | componentDidUpdate() { 23 | if (this.props.currencyError) { 24 | this.props.alertWithType('error', 'Error', this.props.currencyError); 25 | } 26 | } 27 | 28 | handleChangeText = (text) => { 29 | this.props.dispatch(changeCurrencyAmount(text)); 30 | }; 31 | 32 | handlePressBaseCurrency = () => { 33 | this.props.navigation.navigate('CurrencyList', { title: 'Base Currency', type: 'base' }); 34 | }; 35 | 36 | handlePressQuoteCurrency = () => { 37 | this.props.navigation.navigate('CurrencyList', { title: 'Quote Currency', type: 'quote' }); 38 | }; 39 | 40 | handleSwapCurrency = () => { 41 | this.props.dispatch(swapCurrency()); 42 | }; 43 | 44 | handleOptionsPress = () => { 45 | this.props.navigation.navigate('Options'); 46 | }; 47 | 48 | render() { 49 | let quotePrice = '...'; 50 | if (!this.props.isFetching) { 51 | quotePrice = (this.props.amount * this.props.conversionRate).toFixed(2); 52 | } 53 | 54 | return ( 55 | 56 | 57 |
58 | 59 | 60 | 68 | 75 | 81 | 82 | 83 | 84 | ); 85 | } 86 | } 87 | 88 | const mapStateToProps = (state) => { 89 | const { baseCurrency, quoteCurrency } = state.currencies; 90 | const conversionSelector = state.currencies.conversions[baseCurrency] || {}; 91 | const rates = conversionSelector.rates || {}; 92 | 93 | return { 94 | baseCurrency, 95 | quoteCurrency, 96 | amount: state.currencies.amount, 97 | conversionRate: rates[quoteCurrency] || 0, 98 | lastConvertedDate: conversionSelector.date ? new Date(conversionSelector.date) : new Date(), 99 | isFetching: conversionSelector.isFetching, 100 | primaryColor: state.theme.primaryColor, 101 | currencyError: state.currencies.error, 102 | }; 103 | }; 104 | 105 | const ConnectedHome = connect(mapStateToProps)(Home); 106 | 107 | export default props => ( 108 | 109 | {context => } 110 | 111 | ); 112 | -------------------------------------------------------------------------------- /App/screens/Options.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { ScrollView, StatusBar, Linking } from 'react-native'; 3 | import { ListItem, Separator, Icon } from '../components/List'; 4 | import { AlertConsumer } from '../components/Alert'; 5 | 6 | const ICON_COLOR = '#868686'; 7 | const ICON_SIZE = 23; 8 | 9 | class Options extends Component { 10 | handlePressThemes = () => { 11 | this.props.navigation.navigate('Themes'); 12 | }; 13 | 14 | handlePressSite = () => { 15 | Linking.openURL('http://fixer.io').catch(() => 16 | this.props.alertWithType('error', 'Sorry!', "Fixer.io can't be opened right now.")); 17 | }; 18 | 19 | render() { 20 | return ( 21 | 22 | 23 | 34 | } 35 | /> 36 | 37 | 48 | } 49 | /> 50 | 51 | 52 | ); 53 | } 54 | } 55 | export default props => ( 56 | 57 | {context => } 58 | 59 | ); 60 | -------------------------------------------------------------------------------- /App/screens/Themes.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { ScrollView, StatusBar } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | 5 | import { ListItem, Separator } from '../components/List'; 6 | import { changePrimaryColor } from '../actions/theme'; 7 | import colors from '../config/colors'; 8 | 9 | class Themes extends Component { 10 | handlePressTheme = (color) => { 11 | this.props.dispatch(changePrimaryColor(color)); 12 | this.props.navigation.goBack(); 13 | }; 14 | 15 | render() { 16 | return ( 17 | 18 | 19 | this.handlePressTheme(colors.$primaryBlue)} 22 | selected 23 | iconBackground={colors.$primaryBlue} 24 | /> 25 | 26 | this.handlePressTheme(colors.$primaryOrange)} 29 | selected 30 | iconBackground={colors.$primaryOrange} 31 | /> 32 | 33 | this.handlePressTheme(colors.$primaryGreen)} 36 | selected 37 | iconBackground={colors.$primaryGreen} 38 | /> 39 | 40 | this.handlePressTheme(colors.$primaryPurple)} 43 | selected 44 | iconBackground={colors.$primaryPurple} 45 | /> 46 | 47 | 48 | ); 49 | } 50 | } 51 | export default connect()(Themes); 52 | -------------------------------------------------------------------------------- /App/util/dates.js: -------------------------------------------------------------------------------- 1 | const monthNames = [ 2 | 'January', 3 | 'February', 4 | 'March', 5 | 'April', 6 | 'May', 7 | 'June', 8 | 'July', 9 | 'August', 10 | 'September', 11 | 'October', 12 | 'November', 13 | 'December', 14 | ]; 15 | 16 | export const formatDate = (date) => { 17 | const day = date.getDate(); 18 | const monthIndex = date.getMonth(); 19 | const year = date.getFullYear(); 20 | 21 | return `${monthNames[monthIndex]} ${day}, ${year}`; 22 | }; 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native to Production Course App 2 | 3 | This is the repo for the course [React Native to Production](https://learn.handlebarlabs.com/p/learn-to-send-react-native-apps-to-production). 4 | 5 | Feel free to use this app as an example to structure your own app off of! It's a fully featured currency converter with multiple themes. 6 | 7 | ![Screenshot](assets/screenshot.png) 8 | 9 | ## Prerequisites 10 | 11 | To run this application you'll need to be able to run a "pure" React Native application. If you haven't already please visit the [Getting Started guide](https://facebook.github.io/react-native/docs/getting-started.html) for React Native, click "Building Projects with Native Code", and configure your development environment. Once you've done that you're set! 12 | 13 | ## Installation 14 | 15 | Run the following commands from your terminal: 16 | 17 | * `git clone https://github.com/HandlebarLabs/production-ready-react-native.git` 18 | * `cd production-ready-react-native` 19 | * `yarn install` 20 | 21 | ## Running 22 | 23 | * iOS: `yarn run ios` 24 | * Android: `yarn run android` 25 | -------------------------------------------------------------------------------- /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 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.currencyconverter", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.currencyconverter", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion rootProject.ext.compileSdkVersion 98 | buildToolsVersion rootProject.ext.buildToolsVersion 99 | 100 | defaultConfig { 101 | applicationId "com.currencyconverter" 102 | minSdkVersion rootProject.ext.minSdkVersion 103 | targetSdkVersion rootProject.ext.targetSdkVersion 104 | versionCode 1 105 | versionName "1.0" 106 | ndk { 107 | abiFilters "armeabi-v7a", "x86" 108 | } 109 | } 110 | splits { 111 | abi { 112 | reset() 113 | enable enableSeparateBuildPerCPUArchitecture 114 | universalApk false // If true, also generate a universal APK 115 | include "armeabi-v7a", "x86" 116 | } 117 | } 118 | buildTypes { 119 | release { 120 | minifyEnabled enableProguardInReleaseBuilds 121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 122 | } 123 | } 124 | // applicationVariants are e.g. debug, release 125 | applicationVariants.all { variant -> 126 | variant.outputs.each { output -> 127 | // For each separate APK per architecture, set a unique version code as described here: 128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 129 | def versionCodes = ["armeabi-v7a":1, "x86":2] 130 | def abi = output.getFilter(OutputFile.ABI) 131 | if (abi != null) { // null for the universal-debug, universal-release variants 132 | output.versionCodeOverride = 133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 134 | } 135 | } 136 | } 137 | } 138 | 139 | dependencies { 140 | implementation fileTree(dir: "libs", include: ["*.jar"]) 141 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 142 | implementation "com.facebook.react:react-native:+" // From node_modules 143 | } 144 | 145 | // Run this once to be able to run the application with BUCK 146 | // puts all compile dependencies into folder libs for BUCK to use 147 | task copyDownloadableDepsToLibs(type: Copy) { 148 | from configurations.compile 149 | into 'libs' 150 | } 151 | -------------------------------------------------------------------------------- /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 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/currencyconverter/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.currencyconverter; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "CurrencyConverter"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/currencyconverter/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.currencyconverter; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | 11 | import java.util.Arrays; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | return Arrays.asList( 25 | new MainReactPackage() 26 | ); 27 | } 28 | 29 | @Override 30 | protected String getJSMainModuleName() { 31 | return "index"; 32 | } 33 | }; 34 | 35 | @Override 36 | public ReactNativeHost getReactNativeHost() { 37 | return mReactNativeHost; 38 | } 39 | 40 | @Override 41 | public void onCreate() { 42 | super.onCreate(); 43 | SoLoader.init(this, /* native exopackage */ false); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CurrencyConverter 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 = "27.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 27 8 | targetSdkVersion = 26 9 | supportLibVersion = "27.1.1" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.1.4' 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | 35 | 36 | task wrapper(type: Wrapper) { 37 | gradleVersion = '4.4' 38 | distributionUrl = distributionUrl.replace("bin", "all") 39 | } 40 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'CurrencyConverter' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CurrencyConverter", 3 | "displayName": "CurrencyConverter" 4 | } -------------------------------------------------------------------------------- /assets/android-app-icons.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/assets/android-app-icons.zip -------------------------------------------------------------------------------- /assets/ios-app-icons.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/assets/ios-app-icons.zip -------------------------------------------------------------------------------- /assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/assets/screenshot.png -------------------------------------------------------------------------------- /assets/splash-icon.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HandlebarLabs/production-ready-react-native/a2ff5bd6433483b7506acafb6b23e57c0a4f0ca1/assets/splash-icon.zip -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry, YellowBox } from 'react-native'; 2 | import App from './App/index'; 3 | 4 | YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']); 5 | 6 | AppRegistry.registerComponent('CurrencyConverter', () => App); 7 | -------------------------------------------------------------------------------- /ios/CurrencyConverter-tvOS/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/CurrencyConverter-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 | -------------------------------------------------------------------------------- /ios/CurrencyConverter.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* CurrencyConverterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CurrencyConverterTests.m */; }; 16 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 36 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 37 | 2DCD954D1E0B4F2C00145EB5 /* CurrencyConverterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CurrencyConverterTests.m */; }; 38 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 39 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 41 | /* End PBXBuildFile section */ 42 | 43 | /* Begin PBXContainerItemProxy section */ 44 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 49 | remoteInfo = RCTActionSheet; 50 | }; 51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 56 | remoteInfo = RCTGeolocation; 57 | }; 58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 63 | remoteInfo = RCTImage; 64 | }; 65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 70 | remoteInfo = RCTNetwork; 71 | }; 72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 77 | remoteInfo = RCTVibration; 78 | }; 79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 82 | proxyType = 1; 83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 84 | remoteInfo = CurrencyConverter; 85 | }; 86 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 91 | remoteInfo = RCTSettings; 92 | }; 93 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 98 | remoteInfo = RCTWebSocket; 99 | }; 100 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 105 | remoteInfo = React; 106 | }; 107 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 110 | proxyType = 1; 111 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 112 | remoteInfo = "CurrencyConverter-tvOS"; 113 | }; 114 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 115 | isa = PBXContainerItemProxy; 116 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 117 | proxyType = 2; 118 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 119 | remoteInfo = "RCTBlob-tvOS"; 120 | }; 121 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 122 | isa = PBXContainerItemProxy; 123 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 124 | proxyType = 2; 125 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 126 | remoteInfo = fishhook; 127 | }; 128 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 129 | isa = PBXContainerItemProxy; 130 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 131 | proxyType = 2; 132 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 133 | remoteInfo = "fishhook-tvOS"; 134 | }; 135 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 136 | isa = PBXContainerItemProxy; 137 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 138 | proxyType = 2; 139 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 140 | remoteInfo = jsinspector; 141 | }; 142 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 143 | isa = PBXContainerItemProxy; 144 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 145 | proxyType = 2; 146 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 147 | remoteInfo = "jsinspector-tvOS"; 148 | }; 149 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 150 | isa = PBXContainerItemProxy; 151 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 152 | proxyType = 2; 153 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 154 | remoteInfo = "third-party"; 155 | }; 156 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 157 | isa = PBXContainerItemProxy; 158 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 159 | proxyType = 2; 160 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 161 | remoteInfo = "third-party-tvOS"; 162 | }; 163 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 164 | isa = PBXContainerItemProxy; 165 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 166 | proxyType = 2; 167 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 168 | remoteInfo = "double-conversion"; 169 | }; 170 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 171 | isa = PBXContainerItemProxy; 172 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 173 | proxyType = 2; 174 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 175 | remoteInfo = "double-conversion-tvOS"; 176 | }; 177 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = { 178 | isa = PBXContainerItemProxy; 179 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 180 | proxyType = 2; 181 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 182 | remoteInfo = privatedata; 183 | }; 184 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = { 185 | isa = PBXContainerItemProxy; 186 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 187 | proxyType = 2; 188 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 189 | remoteInfo = "privatedata-tvOS"; 190 | }; 191 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 192 | isa = PBXContainerItemProxy; 193 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 194 | proxyType = 2; 195 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 196 | remoteInfo = "RCTImage-tvOS"; 197 | }; 198 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 199 | isa = PBXContainerItemProxy; 200 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 201 | proxyType = 2; 202 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 203 | remoteInfo = "RCTLinking-tvOS"; 204 | }; 205 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 206 | isa = PBXContainerItemProxy; 207 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 208 | proxyType = 2; 209 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 210 | remoteInfo = "RCTNetwork-tvOS"; 211 | }; 212 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 213 | isa = PBXContainerItemProxy; 214 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 215 | proxyType = 2; 216 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 217 | remoteInfo = "RCTSettings-tvOS"; 218 | }; 219 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 220 | isa = PBXContainerItemProxy; 221 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 222 | proxyType = 2; 223 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 224 | remoteInfo = "RCTText-tvOS"; 225 | }; 226 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 227 | isa = PBXContainerItemProxy; 228 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 229 | proxyType = 2; 230 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 231 | remoteInfo = "RCTWebSocket-tvOS"; 232 | }; 233 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 234 | isa = PBXContainerItemProxy; 235 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 236 | proxyType = 2; 237 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 238 | remoteInfo = "React-tvOS"; 239 | }; 240 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 241 | isa = PBXContainerItemProxy; 242 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 243 | proxyType = 2; 244 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 245 | remoteInfo = yoga; 246 | }; 247 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 248 | isa = PBXContainerItemProxy; 249 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 250 | proxyType = 2; 251 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 252 | remoteInfo = "yoga-tvOS"; 253 | }; 254 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 255 | isa = PBXContainerItemProxy; 256 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 257 | proxyType = 2; 258 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 259 | remoteInfo = cxxreact; 260 | }; 261 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 262 | isa = PBXContainerItemProxy; 263 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 264 | proxyType = 2; 265 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 266 | remoteInfo = "cxxreact-tvOS"; 267 | }; 268 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 269 | isa = PBXContainerItemProxy; 270 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 271 | proxyType = 2; 272 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 273 | remoteInfo = jschelpers; 274 | }; 275 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 276 | isa = PBXContainerItemProxy; 277 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 278 | proxyType = 2; 279 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 280 | remoteInfo = "jschelpers-tvOS"; 281 | }; 282 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 283 | isa = PBXContainerItemProxy; 284 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 285 | proxyType = 2; 286 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 287 | remoteInfo = RCTAnimation; 288 | }; 289 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 290 | isa = PBXContainerItemProxy; 291 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 292 | proxyType = 2; 293 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 294 | remoteInfo = "RCTAnimation-tvOS"; 295 | }; 296 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 297 | isa = PBXContainerItemProxy; 298 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 299 | proxyType = 2; 300 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 301 | remoteInfo = RCTLinking; 302 | }; 303 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 304 | isa = PBXContainerItemProxy; 305 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 306 | proxyType = 2; 307 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 308 | remoteInfo = RCTText; 309 | }; 310 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 311 | isa = PBXContainerItemProxy; 312 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 313 | proxyType = 2; 314 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 315 | remoteInfo = RCTBlob; 316 | }; 317 | /* End PBXContainerItemProxy section */ 318 | 319 | /* Begin PBXFileReference section */ 320 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 321 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 322 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 323 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 324 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 325 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 326 | 00E356EE1AD99517003FC87E /* CurrencyConverterTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CurrencyConverterTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 327 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 328 | 00E356F21AD99517003FC87E /* CurrencyConverterTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CurrencyConverterTests.m; sourceTree = ""; }; 329 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 330 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 331 | 13B07F961A680F5B00A75B9A /* CurrencyConverter.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CurrencyConverter.app; sourceTree = BUILT_PRODUCTS_DIR; }; 332 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = CurrencyConverter/AppDelegate.h; sourceTree = ""; }; 333 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = CurrencyConverter/AppDelegate.m; sourceTree = ""; }; 334 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 335 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = CurrencyConverter/Images.xcassets; sourceTree = ""; }; 336 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = CurrencyConverter/Info.plist; sourceTree = ""; }; 337 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = CurrencyConverter/main.m; sourceTree = ""; }; 338 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 339 | 2D02E47B1E0B4A5D006451C7 /* CurrencyConverter-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CurrencyConverter-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 340 | 2D02E4901E0B4A5D006451C7 /* CurrencyConverter-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "CurrencyConverter-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 341 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 342 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 343 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 344 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 345 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 346 | /* End PBXFileReference section */ 347 | 348 | /* Begin PBXFrameworksBuildPhase section */ 349 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 350 | isa = PBXFrameworksBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | }; 357 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 358 | isa = PBXFrameworksBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 362 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 363 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 364 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 365 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 366 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 367 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 368 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 369 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 370 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 371 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 372 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 377 | isa = PBXFrameworksBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 381 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 382 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 383 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 384 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 385 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 386 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 387 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 392 | isa = PBXFrameworksBuildPhase; 393 | buildActionMask = 2147483647; 394 | files = ( 395 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 396 | ); 397 | runOnlyForDeploymentPostprocessing = 0; 398 | }; 399 | /* End PBXFrameworksBuildPhase section */ 400 | 401 | /* Begin PBXGroup section */ 402 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 403 | isa = PBXGroup; 404 | children = ( 405 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 406 | ); 407 | name = Products; 408 | sourceTree = ""; 409 | }; 410 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 411 | isa = PBXGroup; 412 | children = ( 413 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 414 | ); 415 | name = Products; 416 | sourceTree = ""; 417 | }; 418 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 419 | isa = PBXGroup; 420 | children = ( 421 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 422 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 423 | ); 424 | name = Products; 425 | sourceTree = ""; 426 | }; 427 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 428 | isa = PBXGroup; 429 | children = ( 430 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 431 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 432 | ); 433 | name = Products; 434 | sourceTree = ""; 435 | }; 436 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 437 | isa = PBXGroup; 438 | children = ( 439 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 440 | ); 441 | name = Products; 442 | sourceTree = ""; 443 | }; 444 | 00E356EF1AD99517003FC87E /* CurrencyConverterTests */ = { 445 | isa = PBXGroup; 446 | children = ( 447 | 00E356F21AD99517003FC87E /* CurrencyConverterTests.m */, 448 | 00E356F01AD99517003FC87E /* Supporting Files */, 449 | ); 450 | path = CurrencyConverterTests; 451 | sourceTree = ""; 452 | }; 453 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 454 | isa = PBXGroup; 455 | children = ( 456 | 00E356F11AD99517003FC87E /* Info.plist */, 457 | ); 458 | name = "Supporting Files"; 459 | sourceTree = ""; 460 | }; 461 | 139105B71AF99BAD00B5F7CC /* Products */ = { 462 | isa = PBXGroup; 463 | children = ( 464 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 465 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 466 | ); 467 | name = Products; 468 | sourceTree = ""; 469 | }; 470 | 139FDEE71B06529A00C62182 /* Products */ = { 471 | isa = PBXGroup; 472 | children = ( 473 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 474 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 475 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 476 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 477 | ); 478 | name = Products; 479 | sourceTree = ""; 480 | }; 481 | 13B07FAE1A68108700A75B9A /* CurrencyConverter */ = { 482 | isa = PBXGroup; 483 | children = ( 484 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 485 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 486 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 487 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 488 | 13B07FB61A68108700A75B9A /* Info.plist */, 489 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 490 | 13B07FB71A68108700A75B9A /* main.m */, 491 | ); 492 | name = CurrencyConverter; 493 | sourceTree = ""; 494 | }; 495 | 146834001AC3E56700842450 /* Products */ = { 496 | isa = PBXGroup; 497 | children = ( 498 | 146834041AC3E56700842450 /* libReact.a */, 499 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 500 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 501 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 502 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 503 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 504 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 505 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 506 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 507 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 508 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 509 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 510 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 511 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 512 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */, 513 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */, 514 | ); 515 | name = Products; 516 | sourceTree = ""; 517 | }; 518 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 519 | isa = PBXGroup; 520 | children = ( 521 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 522 | ); 523 | name = Frameworks; 524 | sourceTree = ""; 525 | }; 526 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 527 | isa = PBXGroup; 528 | children = ( 529 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 530 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 531 | ); 532 | name = Products; 533 | sourceTree = ""; 534 | }; 535 | 78C398B11ACF4ADC00677621 /* Products */ = { 536 | isa = PBXGroup; 537 | children = ( 538 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 539 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 540 | ); 541 | name = Products; 542 | sourceTree = ""; 543 | }; 544 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 545 | isa = PBXGroup; 546 | children = ( 547 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 548 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 549 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 550 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 551 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 552 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 553 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 554 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 555 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 556 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 557 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 558 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 559 | ); 560 | name = Libraries; 561 | sourceTree = ""; 562 | }; 563 | 832341B11AAA6A8300B99B32 /* Products */ = { 564 | isa = PBXGroup; 565 | children = ( 566 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 567 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 568 | ); 569 | name = Products; 570 | sourceTree = ""; 571 | }; 572 | 83CBB9F61A601CBA00E9B192 = { 573 | isa = PBXGroup; 574 | children = ( 575 | 13B07FAE1A68108700A75B9A /* CurrencyConverter */, 576 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 577 | 00E356EF1AD99517003FC87E /* CurrencyConverterTests */, 578 | 83CBBA001A601CBA00E9B192 /* Products */, 579 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 580 | ); 581 | indentWidth = 2; 582 | sourceTree = ""; 583 | tabWidth = 2; 584 | usesTabs = 0; 585 | }; 586 | 83CBBA001A601CBA00E9B192 /* Products */ = { 587 | isa = PBXGroup; 588 | children = ( 589 | 13B07F961A680F5B00A75B9A /* CurrencyConverter.app */, 590 | 00E356EE1AD99517003FC87E /* CurrencyConverterTests.xctest */, 591 | 2D02E47B1E0B4A5D006451C7 /* CurrencyConverter-tvOS.app */, 592 | 2D02E4901E0B4A5D006451C7 /* CurrencyConverter-tvOSTests.xctest */, 593 | ); 594 | name = Products; 595 | sourceTree = ""; 596 | }; 597 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 598 | isa = PBXGroup; 599 | children = ( 600 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 601 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 602 | ); 603 | name = Products; 604 | sourceTree = ""; 605 | }; 606 | /* End PBXGroup section */ 607 | 608 | /* Begin PBXNativeTarget section */ 609 | 00E356ED1AD99517003FC87E /* CurrencyConverterTests */ = { 610 | isa = PBXNativeTarget; 611 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CurrencyConverterTests" */; 612 | buildPhases = ( 613 | 00E356EA1AD99517003FC87E /* Sources */, 614 | 00E356EB1AD99517003FC87E /* Frameworks */, 615 | 00E356EC1AD99517003FC87E /* Resources */, 616 | ); 617 | buildRules = ( 618 | ); 619 | dependencies = ( 620 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 621 | ); 622 | name = CurrencyConverterTests; 623 | productName = CurrencyConverterTests; 624 | productReference = 00E356EE1AD99517003FC87E /* CurrencyConverterTests.xctest */; 625 | productType = "com.apple.product-type.bundle.unit-test"; 626 | }; 627 | 13B07F861A680F5B00A75B9A /* CurrencyConverter */ = { 628 | isa = PBXNativeTarget; 629 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CurrencyConverter" */; 630 | buildPhases = ( 631 | 13B07F871A680F5B00A75B9A /* Sources */, 632 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 633 | 13B07F8E1A680F5B00A75B9A /* Resources */, 634 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 635 | ); 636 | buildRules = ( 637 | ); 638 | dependencies = ( 639 | ); 640 | name = CurrencyConverter; 641 | productName = "Hello World"; 642 | productReference = 13B07F961A680F5B00A75B9A /* CurrencyConverter.app */; 643 | productType = "com.apple.product-type.application"; 644 | }; 645 | 2D02E47A1E0B4A5D006451C7 /* CurrencyConverter-tvOS */ = { 646 | isa = PBXNativeTarget; 647 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CurrencyConverter-tvOS" */; 648 | buildPhases = ( 649 | 2D02E4771E0B4A5D006451C7 /* Sources */, 650 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 651 | 2D02E4791E0B4A5D006451C7 /* Resources */, 652 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 653 | ); 654 | buildRules = ( 655 | ); 656 | dependencies = ( 657 | ); 658 | name = "CurrencyConverter-tvOS"; 659 | productName = "CurrencyConverter-tvOS"; 660 | productReference = 2D02E47B1E0B4A5D006451C7 /* CurrencyConverter-tvOS.app */; 661 | productType = "com.apple.product-type.application"; 662 | }; 663 | 2D02E48F1E0B4A5D006451C7 /* CurrencyConverter-tvOSTests */ = { 664 | isa = PBXNativeTarget; 665 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CurrencyConverter-tvOSTests" */; 666 | buildPhases = ( 667 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 668 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 669 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 670 | ); 671 | buildRules = ( 672 | ); 673 | dependencies = ( 674 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 675 | ); 676 | name = "CurrencyConverter-tvOSTests"; 677 | productName = "CurrencyConverter-tvOSTests"; 678 | productReference = 2D02E4901E0B4A5D006451C7 /* CurrencyConverter-tvOSTests.xctest */; 679 | productType = "com.apple.product-type.bundle.unit-test"; 680 | }; 681 | /* End PBXNativeTarget section */ 682 | 683 | /* Begin PBXProject section */ 684 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 685 | isa = PBXProject; 686 | attributes = { 687 | LastUpgradeCheck = 0940; 688 | ORGANIZATIONNAME = Facebook; 689 | TargetAttributes = { 690 | 00E356ED1AD99517003FC87E = { 691 | CreatedOnToolsVersion = 6.2; 692 | TestTargetID = 13B07F861A680F5B00A75B9A; 693 | }; 694 | 2D02E47A1E0B4A5D006451C7 = { 695 | CreatedOnToolsVersion = 8.2.1; 696 | ProvisioningStyle = Automatic; 697 | }; 698 | 2D02E48F1E0B4A5D006451C7 = { 699 | CreatedOnToolsVersion = 8.2.1; 700 | ProvisioningStyle = Automatic; 701 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 702 | }; 703 | }; 704 | }; 705 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CurrencyConverter" */; 706 | compatibilityVersion = "Xcode 3.2"; 707 | developmentRegion = English; 708 | hasScannedForEncodings = 0; 709 | knownRegions = ( 710 | en, 711 | Base, 712 | ); 713 | mainGroup = 83CBB9F61A601CBA00E9B192; 714 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 715 | projectDirPath = ""; 716 | projectReferences = ( 717 | { 718 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 719 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 720 | }, 721 | { 722 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 723 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 724 | }, 725 | { 726 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 727 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 728 | }, 729 | { 730 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 731 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 732 | }, 733 | { 734 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 735 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 736 | }, 737 | { 738 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 739 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 740 | }, 741 | { 742 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 743 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 744 | }, 745 | { 746 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 747 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 748 | }, 749 | { 750 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 751 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 752 | }, 753 | { 754 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 755 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 756 | }, 757 | { 758 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 759 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 760 | }, 761 | { 762 | ProductGroup = 146834001AC3E56700842450 /* Products */; 763 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 764 | }, 765 | ); 766 | projectRoot = ""; 767 | targets = ( 768 | 13B07F861A680F5B00A75B9A /* CurrencyConverter */, 769 | 00E356ED1AD99517003FC87E /* CurrencyConverterTests */, 770 | 2D02E47A1E0B4A5D006451C7 /* CurrencyConverter-tvOS */, 771 | 2D02E48F1E0B4A5D006451C7 /* CurrencyConverter-tvOSTests */, 772 | ); 773 | }; 774 | /* End PBXProject section */ 775 | 776 | /* Begin PBXReferenceProxy section */ 777 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 778 | isa = PBXReferenceProxy; 779 | fileType = archive.ar; 780 | path = libRCTActionSheet.a; 781 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 782 | sourceTree = BUILT_PRODUCTS_DIR; 783 | }; 784 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 785 | isa = PBXReferenceProxy; 786 | fileType = archive.ar; 787 | path = libRCTGeolocation.a; 788 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 789 | sourceTree = BUILT_PRODUCTS_DIR; 790 | }; 791 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 792 | isa = PBXReferenceProxy; 793 | fileType = archive.ar; 794 | path = libRCTImage.a; 795 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 796 | sourceTree = BUILT_PRODUCTS_DIR; 797 | }; 798 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 799 | isa = PBXReferenceProxy; 800 | fileType = archive.ar; 801 | path = libRCTNetwork.a; 802 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 803 | sourceTree = BUILT_PRODUCTS_DIR; 804 | }; 805 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 806 | isa = PBXReferenceProxy; 807 | fileType = archive.ar; 808 | path = libRCTVibration.a; 809 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 810 | sourceTree = BUILT_PRODUCTS_DIR; 811 | }; 812 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 813 | isa = PBXReferenceProxy; 814 | fileType = archive.ar; 815 | path = libRCTSettings.a; 816 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 817 | sourceTree = BUILT_PRODUCTS_DIR; 818 | }; 819 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 820 | isa = PBXReferenceProxy; 821 | fileType = archive.ar; 822 | path = libRCTWebSocket.a; 823 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 824 | sourceTree = BUILT_PRODUCTS_DIR; 825 | }; 826 | 146834041AC3E56700842450 /* libReact.a */ = { 827 | isa = PBXReferenceProxy; 828 | fileType = archive.ar; 829 | path = libReact.a; 830 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 831 | sourceTree = BUILT_PRODUCTS_DIR; 832 | }; 833 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = "libRCTBlob-tvOS.a"; 837 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = libfishhook.a; 844 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = "libfishhook-tvOS.a"; 851 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = libjsinspector.a; 858 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = "libjsinspector-tvOS.a"; 865 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = "libthird-party.a"; 872 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = "libthird-party.a"; 879 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = "libdouble-conversion.a"; 886 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = "libdouble-conversion.a"; 893 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = libprivatedata.a; 900 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = "libprivatedata-tvOS.a"; 907 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = "libRCTImage-tvOS.a"; 914 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = "libRCTLinking-tvOS.a"; 921 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = "libRCTNetwork-tvOS.a"; 928 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = "libRCTSettings-tvOS.a"; 935 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = "libRCTText-tvOS.a"; 942 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 946 | isa = PBXReferenceProxy; 947 | fileType = archive.ar; 948 | path = "libRCTWebSocket-tvOS.a"; 949 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 950 | sourceTree = BUILT_PRODUCTS_DIR; 951 | }; 952 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 953 | isa = PBXReferenceProxy; 954 | fileType = archive.ar; 955 | path = libReact.a; 956 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 957 | sourceTree = BUILT_PRODUCTS_DIR; 958 | }; 959 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 960 | isa = PBXReferenceProxy; 961 | fileType = archive.ar; 962 | path = libyoga.a; 963 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 964 | sourceTree = BUILT_PRODUCTS_DIR; 965 | }; 966 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 967 | isa = PBXReferenceProxy; 968 | fileType = archive.ar; 969 | path = libyoga.a; 970 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 971 | sourceTree = BUILT_PRODUCTS_DIR; 972 | }; 973 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 974 | isa = PBXReferenceProxy; 975 | fileType = archive.ar; 976 | path = libcxxreact.a; 977 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 978 | sourceTree = BUILT_PRODUCTS_DIR; 979 | }; 980 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 981 | isa = PBXReferenceProxy; 982 | fileType = archive.ar; 983 | path = libcxxreact.a; 984 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 985 | sourceTree = BUILT_PRODUCTS_DIR; 986 | }; 987 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 988 | isa = PBXReferenceProxy; 989 | fileType = archive.ar; 990 | path = libjschelpers.a; 991 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 992 | sourceTree = BUILT_PRODUCTS_DIR; 993 | }; 994 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 995 | isa = PBXReferenceProxy; 996 | fileType = archive.ar; 997 | path = libjschelpers.a; 998 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 999 | sourceTree = BUILT_PRODUCTS_DIR; 1000 | }; 1001 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1002 | isa = PBXReferenceProxy; 1003 | fileType = archive.ar; 1004 | path = libRCTAnimation.a; 1005 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1006 | sourceTree = BUILT_PRODUCTS_DIR; 1007 | }; 1008 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1009 | isa = PBXReferenceProxy; 1010 | fileType = archive.ar; 1011 | path = libRCTAnimation.a; 1012 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1013 | sourceTree = BUILT_PRODUCTS_DIR; 1014 | }; 1015 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1016 | isa = PBXReferenceProxy; 1017 | fileType = archive.ar; 1018 | path = libRCTLinking.a; 1019 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1020 | sourceTree = BUILT_PRODUCTS_DIR; 1021 | }; 1022 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1023 | isa = PBXReferenceProxy; 1024 | fileType = archive.ar; 1025 | path = libRCTText.a; 1026 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1027 | sourceTree = BUILT_PRODUCTS_DIR; 1028 | }; 1029 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1030 | isa = PBXReferenceProxy; 1031 | fileType = archive.ar; 1032 | path = libRCTBlob.a; 1033 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1034 | sourceTree = BUILT_PRODUCTS_DIR; 1035 | }; 1036 | /* End PBXReferenceProxy section */ 1037 | 1038 | /* Begin PBXResourcesBuildPhase section */ 1039 | 00E356EC1AD99517003FC87E /* Resources */ = { 1040 | isa = PBXResourcesBuildPhase; 1041 | buildActionMask = 2147483647; 1042 | files = ( 1043 | ); 1044 | runOnlyForDeploymentPostprocessing = 0; 1045 | }; 1046 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1047 | isa = PBXResourcesBuildPhase; 1048 | buildActionMask = 2147483647; 1049 | files = ( 1050 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1051 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1052 | ); 1053 | runOnlyForDeploymentPostprocessing = 0; 1054 | }; 1055 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1056 | isa = PBXResourcesBuildPhase; 1057 | buildActionMask = 2147483647; 1058 | files = ( 1059 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1060 | ); 1061 | runOnlyForDeploymentPostprocessing = 0; 1062 | }; 1063 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1064 | isa = PBXResourcesBuildPhase; 1065 | buildActionMask = 2147483647; 1066 | files = ( 1067 | ); 1068 | runOnlyForDeploymentPostprocessing = 0; 1069 | }; 1070 | /* End PBXResourcesBuildPhase section */ 1071 | 1072 | /* Begin PBXShellScriptBuildPhase section */ 1073 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1074 | isa = PBXShellScriptBuildPhase; 1075 | buildActionMask = 2147483647; 1076 | files = ( 1077 | ); 1078 | inputPaths = ( 1079 | ); 1080 | name = "Bundle React Native code and images"; 1081 | outputPaths = ( 1082 | ); 1083 | runOnlyForDeploymentPostprocessing = 0; 1084 | shellPath = /bin/sh; 1085 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1086 | }; 1087 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1088 | isa = PBXShellScriptBuildPhase; 1089 | buildActionMask = 2147483647; 1090 | files = ( 1091 | ); 1092 | inputPaths = ( 1093 | ); 1094 | name = "Bundle React Native Code And Images"; 1095 | outputPaths = ( 1096 | ); 1097 | runOnlyForDeploymentPostprocessing = 0; 1098 | shellPath = /bin/sh; 1099 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1100 | }; 1101 | /* End PBXShellScriptBuildPhase section */ 1102 | 1103 | /* Begin PBXSourcesBuildPhase section */ 1104 | 00E356EA1AD99517003FC87E /* Sources */ = { 1105 | isa = PBXSourcesBuildPhase; 1106 | buildActionMask = 2147483647; 1107 | files = ( 1108 | 00E356F31AD99517003FC87E /* CurrencyConverterTests.m in Sources */, 1109 | ); 1110 | runOnlyForDeploymentPostprocessing = 0; 1111 | }; 1112 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1113 | isa = PBXSourcesBuildPhase; 1114 | buildActionMask = 2147483647; 1115 | files = ( 1116 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1117 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1118 | ); 1119 | runOnlyForDeploymentPostprocessing = 0; 1120 | }; 1121 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1122 | isa = PBXSourcesBuildPhase; 1123 | buildActionMask = 2147483647; 1124 | files = ( 1125 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1126 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1127 | ); 1128 | runOnlyForDeploymentPostprocessing = 0; 1129 | }; 1130 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1131 | isa = PBXSourcesBuildPhase; 1132 | buildActionMask = 2147483647; 1133 | files = ( 1134 | 2DCD954D1E0B4F2C00145EB5 /* CurrencyConverterTests.m in Sources */, 1135 | ); 1136 | runOnlyForDeploymentPostprocessing = 0; 1137 | }; 1138 | /* End PBXSourcesBuildPhase section */ 1139 | 1140 | /* Begin PBXTargetDependency section */ 1141 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1142 | isa = PBXTargetDependency; 1143 | target = 13B07F861A680F5B00A75B9A /* CurrencyConverter */; 1144 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1145 | }; 1146 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1147 | isa = PBXTargetDependency; 1148 | target = 2D02E47A1E0B4A5D006451C7 /* CurrencyConverter-tvOS */; 1149 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1150 | }; 1151 | /* End PBXTargetDependency section */ 1152 | 1153 | /* Begin PBXVariantGroup section */ 1154 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1155 | isa = PBXVariantGroup; 1156 | children = ( 1157 | 13B07FB21A68108700A75B9A /* Base */, 1158 | ); 1159 | name = LaunchScreen.xib; 1160 | path = CurrencyConverter; 1161 | sourceTree = ""; 1162 | }; 1163 | /* End PBXVariantGroup section */ 1164 | 1165 | /* Begin XCBuildConfiguration section */ 1166 | 00E356F61AD99517003FC87E /* Debug */ = { 1167 | isa = XCBuildConfiguration; 1168 | buildSettings = { 1169 | BUNDLE_LOADER = "$(TEST_HOST)"; 1170 | GCC_PREPROCESSOR_DEFINITIONS = ( 1171 | "DEBUG=1", 1172 | "$(inherited)", 1173 | ); 1174 | INFOPLIST_FILE = CurrencyConverterTests/Info.plist; 1175 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1176 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1177 | OTHER_LDFLAGS = ( 1178 | "-ObjC", 1179 | "-lc++", 1180 | ); 1181 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1182 | PRODUCT_NAME = "$(TARGET_NAME)"; 1183 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CurrencyConverter.app/CurrencyConverter"; 1184 | }; 1185 | name = Debug; 1186 | }; 1187 | 00E356F71AD99517003FC87E /* Release */ = { 1188 | isa = XCBuildConfiguration; 1189 | buildSettings = { 1190 | BUNDLE_LOADER = "$(TEST_HOST)"; 1191 | COPY_PHASE_STRIP = NO; 1192 | INFOPLIST_FILE = CurrencyConverterTests/Info.plist; 1193 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1194 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1195 | OTHER_LDFLAGS = ( 1196 | "-ObjC", 1197 | "-lc++", 1198 | ); 1199 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1200 | PRODUCT_NAME = "$(TARGET_NAME)"; 1201 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CurrencyConverter.app/CurrencyConverter"; 1202 | }; 1203 | name = Release; 1204 | }; 1205 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1206 | isa = XCBuildConfiguration; 1207 | buildSettings = { 1208 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1209 | CURRENT_PROJECT_VERSION = 1; 1210 | DEAD_CODE_STRIPPING = NO; 1211 | INFOPLIST_FILE = CurrencyConverter/Info.plist; 1212 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1213 | OTHER_LDFLAGS = ( 1214 | "$(inherited)", 1215 | "-ObjC", 1216 | "-lc++", 1217 | ); 1218 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1219 | PRODUCT_NAME = CurrencyConverter; 1220 | VERSIONING_SYSTEM = "apple-generic"; 1221 | }; 1222 | name = Debug; 1223 | }; 1224 | 13B07F951A680F5B00A75B9A /* Release */ = { 1225 | isa = XCBuildConfiguration; 1226 | buildSettings = { 1227 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1228 | CURRENT_PROJECT_VERSION = 1; 1229 | INFOPLIST_FILE = CurrencyConverter/Info.plist; 1230 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1231 | OTHER_LDFLAGS = ( 1232 | "$(inherited)", 1233 | "-ObjC", 1234 | "-lc++", 1235 | ); 1236 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1237 | PRODUCT_NAME = CurrencyConverter; 1238 | VERSIONING_SYSTEM = "apple-generic"; 1239 | }; 1240 | name = Release; 1241 | }; 1242 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1243 | isa = XCBuildConfiguration; 1244 | buildSettings = { 1245 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1246 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1247 | CLANG_ANALYZER_NONNULL = YES; 1248 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1249 | CLANG_WARN_INFINITE_RECURSION = YES; 1250 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1251 | DEBUG_INFORMATION_FORMAT = dwarf; 1252 | ENABLE_TESTABILITY = YES; 1253 | GCC_NO_COMMON_BLOCKS = YES; 1254 | INFOPLIST_FILE = "CurrencyConverter-tvOS/Info.plist"; 1255 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1256 | OTHER_LDFLAGS = ( 1257 | "-ObjC", 1258 | "-lc++", 1259 | ); 1260 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CurrencyConverter-tvOS"; 1261 | PRODUCT_NAME = "$(TARGET_NAME)"; 1262 | SDKROOT = appletvos; 1263 | TARGETED_DEVICE_FAMILY = 3; 1264 | TVOS_DEPLOYMENT_TARGET = 9.2; 1265 | }; 1266 | name = Debug; 1267 | }; 1268 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1269 | isa = XCBuildConfiguration; 1270 | buildSettings = { 1271 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1272 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1273 | CLANG_ANALYZER_NONNULL = YES; 1274 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1275 | CLANG_WARN_INFINITE_RECURSION = YES; 1276 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1277 | COPY_PHASE_STRIP = NO; 1278 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1279 | GCC_NO_COMMON_BLOCKS = YES; 1280 | INFOPLIST_FILE = "CurrencyConverter-tvOS/Info.plist"; 1281 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1282 | OTHER_LDFLAGS = ( 1283 | "-ObjC", 1284 | "-lc++", 1285 | ); 1286 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CurrencyConverter-tvOS"; 1287 | PRODUCT_NAME = "$(TARGET_NAME)"; 1288 | SDKROOT = appletvos; 1289 | TARGETED_DEVICE_FAMILY = 3; 1290 | TVOS_DEPLOYMENT_TARGET = 9.2; 1291 | }; 1292 | name = Release; 1293 | }; 1294 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1295 | isa = XCBuildConfiguration; 1296 | buildSettings = { 1297 | BUNDLE_LOADER = "$(TEST_HOST)"; 1298 | CLANG_ANALYZER_NONNULL = YES; 1299 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1300 | CLANG_WARN_INFINITE_RECURSION = YES; 1301 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1302 | DEBUG_INFORMATION_FORMAT = dwarf; 1303 | ENABLE_TESTABILITY = YES; 1304 | GCC_NO_COMMON_BLOCKS = YES; 1305 | INFOPLIST_FILE = "CurrencyConverter-tvOSTests/Info.plist"; 1306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1307 | OTHER_LDFLAGS = ( 1308 | "-ObjC", 1309 | "-lc++", 1310 | ); 1311 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CurrencyConverter-tvOSTests"; 1312 | PRODUCT_NAME = "$(TARGET_NAME)"; 1313 | SDKROOT = appletvos; 1314 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CurrencyConverter-tvOS.app/CurrencyConverter-tvOS"; 1315 | TVOS_DEPLOYMENT_TARGET = 10.1; 1316 | }; 1317 | name = Debug; 1318 | }; 1319 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1320 | isa = XCBuildConfiguration; 1321 | buildSettings = { 1322 | BUNDLE_LOADER = "$(TEST_HOST)"; 1323 | CLANG_ANALYZER_NONNULL = YES; 1324 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1325 | CLANG_WARN_INFINITE_RECURSION = YES; 1326 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1327 | COPY_PHASE_STRIP = NO; 1328 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1329 | GCC_NO_COMMON_BLOCKS = YES; 1330 | INFOPLIST_FILE = "CurrencyConverter-tvOSTests/Info.plist"; 1331 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1332 | OTHER_LDFLAGS = ( 1333 | "-ObjC", 1334 | "-lc++", 1335 | ); 1336 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.CurrencyConverter-tvOSTests"; 1337 | PRODUCT_NAME = "$(TARGET_NAME)"; 1338 | SDKROOT = appletvos; 1339 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CurrencyConverter-tvOS.app/CurrencyConverter-tvOS"; 1340 | TVOS_DEPLOYMENT_TARGET = 10.1; 1341 | }; 1342 | name = Release; 1343 | }; 1344 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1345 | isa = XCBuildConfiguration; 1346 | buildSettings = { 1347 | ALWAYS_SEARCH_USER_PATHS = NO; 1348 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1349 | CLANG_CXX_LIBRARY = "libc++"; 1350 | CLANG_ENABLE_MODULES = YES; 1351 | CLANG_ENABLE_OBJC_ARC = YES; 1352 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1353 | CLANG_WARN_BOOL_CONVERSION = YES; 1354 | CLANG_WARN_COMMA = YES; 1355 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1356 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1357 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1358 | CLANG_WARN_EMPTY_BODY = YES; 1359 | CLANG_WARN_ENUM_CONVERSION = YES; 1360 | CLANG_WARN_INFINITE_RECURSION = YES; 1361 | CLANG_WARN_INT_CONVERSION = YES; 1362 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1363 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1364 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1365 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1366 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1367 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1368 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1369 | CLANG_WARN_UNREACHABLE_CODE = YES; 1370 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1371 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1372 | COPY_PHASE_STRIP = NO; 1373 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1374 | ENABLE_TESTABILITY = YES; 1375 | GCC_C_LANGUAGE_STANDARD = gnu99; 1376 | GCC_DYNAMIC_NO_PIC = NO; 1377 | GCC_NO_COMMON_BLOCKS = YES; 1378 | GCC_OPTIMIZATION_LEVEL = 0; 1379 | GCC_PREPROCESSOR_DEFINITIONS = ( 1380 | "DEBUG=1", 1381 | "$(inherited)", 1382 | ); 1383 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1384 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1385 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1386 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1387 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1388 | GCC_WARN_UNUSED_FUNCTION = YES; 1389 | GCC_WARN_UNUSED_VARIABLE = YES; 1390 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1391 | MTL_ENABLE_DEBUG_INFO = YES; 1392 | ONLY_ACTIVE_ARCH = YES; 1393 | SDKROOT = iphoneos; 1394 | }; 1395 | name = Debug; 1396 | }; 1397 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1398 | isa = XCBuildConfiguration; 1399 | buildSettings = { 1400 | ALWAYS_SEARCH_USER_PATHS = NO; 1401 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1402 | CLANG_CXX_LIBRARY = "libc++"; 1403 | CLANG_ENABLE_MODULES = YES; 1404 | CLANG_ENABLE_OBJC_ARC = YES; 1405 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1406 | CLANG_WARN_BOOL_CONVERSION = YES; 1407 | CLANG_WARN_COMMA = YES; 1408 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1409 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1410 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1411 | CLANG_WARN_EMPTY_BODY = YES; 1412 | CLANG_WARN_ENUM_CONVERSION = YES; 1413 | CLANG_WARN_INFINITE_RECURSION = YES; 1414 | CLANG_WARN_INT_CONVERSION = YES; 1415 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1416 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1417 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1418 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1419 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1420 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1421 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1422 | CLANG_WARN_UNREACHABLE_CODE = YES; 1423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1425 | COPY_PHASE_STRIP = YES; 1426 | ENABLE_NS_ASSERTIONS = NO; 1427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1428 | GCC_C_LANGUAGE_STANDARD = gnu99; 1429 | GCC_NO_COMMON_BLOCKS = YES; 1430 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1431 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1432 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1433 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1434 | GCC_WARN_UNUSED_FUNCTION = YES; 1435 | GCC_WARN_UNUSED_VARIABLE = YES; 1436 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1437 | MTL_ENABLE_DEBUG_INFO = NO; 1438 | SDKROOT = iphoneos; 1439 | VALIDATE_PRODUCT = YES; 1440 | }; 1441 | name = Release; 1442 | }; 1443 | /* End XCBuildConfiguration section */ 1444 | 1445 | /* Begin XCConfigurationList section */ 1446 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CurrencyConverterTests" */ = { 1447 | isa = XCConfigurationList; 1448 | buildConfigurations = ( 1449 | 00E356F61AD99517003FC87E /* Debug */, 1450 | 00E356F71AD99517003FC87E /* Release */, 1451 | ); 1452 | defaultConfigurationIsVisible = 0; 1453 | defaultConfigurationName = Release; 1454 | }; 1455 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CurrencyConverter" */ = { 1456 | isa = XCConfigurationList; 1457 | buildConfigurations = ( 1458 | 13B07F941A680F5B00A75B9A /* Debug */, 1459 | 13B07F951A680F5B00A75B9A /* Release */, 1460 | ); 1461 | defaultConfigurationIsVisible = 0; 1462 | defaultConfigurationName = Release; 1463 | }; 1464 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CurrencyConverter-tvOS" */ = { 1465 | isa = XCConfigurationList; 1466 | buildConfigurations = ( 1467 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1468 | 2D02E4981E0B4A5E006451C7 /* Release */, 1469 | ); 1470 | defaultConfigurationIsVisible = 0; 1471 | defaultConfigurationName = Release; 1472 | }; 1473 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "CurrencyConverter-tvOSTests" */ = { 1474 | isa = XCConfigurationList; 1475 | buildConfigurations = ( 1476 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1477 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1478 | ); 1479 | defaultConfigurationIsVisible = 0; 1480 | defaultConfigurationName = Release; 1481 | }; 1482 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CurrencyConverter" */ = { 1483 | isa = XCConfigurationList; 1484 | buildConfigurations = ( 1485 | 83CBBA201A601CBA00E9B192 /* Debug */, 1486 | 83CBBA211A601CBA00E9B192 /* Release */, 1487 | ); 1488 | defaultConfigurationIsVisible = 0; 1489 | defaultConfigurationName = Release; 1490 | }; 1491 | /* End XCConfigurationList section */ 1492 | }; 1493 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1494 | } 1495 | -------------------------------------------------------------------------------- /ios/CurrencyConverter.xcodeproj/xcshareddata/xcschemes/CurrencyConverter-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/CurrencyConverter.xcodeproj/xcshareddata/xcschemes/CurrencyConverter.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/CurrencyConverter/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (nonatomic, strong) UIWindow *window; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /ios/CurrencyConverter/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | 13 | @implementation AppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 16 | { 17 | NSURL *jsCodeLocation; 18 | 19 | #ifdef DEBUG 20 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 21 | #else 22 | jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 23 | #endif 24 | 25 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 26 | moduleName:@"CurrencyConverter" 27 | initialProperties:nil 28 | launchOptions:launchOptions]; 29 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 30 | 31 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 32 | UIViewController *rootViewController = [UIViewController new]; 33 | rootViewController.view = rootView; 34 | self.window.rootViewController = rootViewController; 35 | [self.window makeKeyAndVisible]; 36 | return YES; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ios/CurrencyConverter/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 | -------------------------------------------------------------------------------- /ios/CurrencyConverter/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/CurrencyConverter/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/CurrencyConverter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | CurrencyConverter 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 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSLocationWhenInUseUsageDescription 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | NSLocationWhenInUseUsageDescription 44 | 45 | NSAppTransportSecurity 46 | 47 | 48 | NSAllowsArbitraryLoads 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/CurrencyConverter/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/CurrencyConverterTests/CurrencyConverterTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface CurrencyConverterTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation CurrencyConverterTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /ios/CurrencyConverterTests/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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CurrencyConverter", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios --simulator='iPhone X'", 8 | "lint": "eslint .", 9 | "lint:fix": "eslint . --fix", 10 | "start": "node node_modules/react-native/local-cli/cli.js start", 11 | "test": "jest" 12 | }, 13 | "dependencies": { 14 | "react": "16.6.3", 15 | "react-native": "0.57.8", 16 | "react-navigation": "^2.0.1", 17 | "react-redux": "^5.0.7", 18 | "redux": "^4.0.0", 19 | "redux-logger": "^3.0.6", 20 | "redux-saga": "^0.16.0" 21 | }, 22 | "devDependencies": { 23 | "babel-eslint": "^8.2.3", 24 | "babel-jest": "22.4.3", 25 | "babel-preset-react-native": "4.0.0", 26 | "eslint-config-airbnb": "^16.1.0", 27 | "eslint-plugin-import": "^2.12.0", 28 | "eslint-plugin-jsx-a11y": "^6.0.3", 29 | "eslint-plugin-react": "^7.8.2", 30 | "jest": "22.4.3", 31 | "prettier": "^1.12.1", 32 | "prettier-eslint": "^8.8.1", 33 | "react-test-renderer": "16.3.1" 34 | }, 35 | "jest": { 36 | "preset": "react-native" 37 | } 38 | } 39 | --------------------------------------------------------------------------------