This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "StoryReact", | |
| "version": "0.0.1", | |
| "private": true, | |
| "scripts": { | |
| "start": "node node_modules/react-native/local-cli/cli.js start" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Uncomment the next line to define a global platform for your project | |
| # platform :ios, '9.0' | |
| target 'StoryReact' do | |
| use_frameworks! | |
| pod 'React', :path => './js/node_modules/react-native', :subspecs => [ | |
| 'Core', | |
| 'CxxBridge', | |
| 'DevSupport', | |
| 'RCTText', | |
| 'RCTNetwork', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <key>NSAppTransportSecurity</key> | |
| <dict> | |
| <key>NSExceptionDomains</key> | |
| <dict> | |
| <key>localhost</key> | |
| <dict> | |
| <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> | |
| <true/> | |
| </dict> | |
| </dict> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| import React from 'react'; | |
| import ReactNative, { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, | |
| View, | |
| } from 'react-native'; | |
| const styles = StyleSheet.create({ | |
| container: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import React | |
| class ViewController: UIViewController { | |
| var reactRootView: RCTRootView! | |
| var jsCodeLocation: URL! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If on Release, must export js bundle to run | |
| if [ "$CONFIGURATION" == "Debug" ]; then | |
| echo "Debug Configuration" | |
| else | |
| echo "Release Configuration" | |
| # in my project "js/node_modules" | |
| cd js | |
| # Create a new .jsbundle | |
| react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output main.jsbundle |
NewerOlder