This file contains 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 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 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 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 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 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 |
This file contains 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
# Replace "MyApp" with your app name | |
XCODE_WORKSPACE=/Users/MacBook/iOS/MyApp.xcworkspace | |
xcrun xcodebuild \ | |
-scheme MyApp \ | |
-workspace $XCODE_WORKSPACE \ | |
-configuration Debug \ | |
-destination 'platform=iOS Simulator,name=iPhone 8,OS=11.2' \ | |
-derivedDataPath \ | |
build |
This file contains 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
platform :ios do | |
desc "Example Fastlane - Ipa + Crashlytics" | |
lane :beta do | |
get_provisioning_profile( | |
adhoc: true, | |
force: true | |
) | |
gym( | |
export_method:"ad-hoc", | |
scheme: "MyApp", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# react-native-cli: 2.0.1 | |
# react-native: 0.55.3 | |
# NB: My rn files are inside "js" dir | |
project 'Golee.xcodeproj' | |
# Uncomment the next line to define a global platform for your project | |
# platform :ios, '9.0' |
This file contains 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
# ------ Prerequisites ------ | |
# Start server | |
$ mongod | |
# Start client | |
$ mongo | |
# Install packages on python 2.7 (required version of "pip" >= 10) | |
$ sudo pip install --ignore-installed pymongo | |
$ sudo pip install --ignore-installed numpy |
OlderNewer