Instagram-like demo app using eZ Platform Demo
brew install node
brew install watchman
npm install -g react-native-cli
xcode can be installed using Apple AppStore.
- clone Git repo into an existing folder:
git clone https://github.com/SylvainGuittard/react-native-demo.git .
- install additional
node.js
dependencies:
npm install
- rebuild ios/android folders:
react-native upgrade
- configure pre-domain exception so that application can connect to a non-secure host. Add this to
ios/PlacesAndTastes/Info.plist
file:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>yourserver.com</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<!--Include to specify minimum TLS version-->
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
Please, don't forget to replace yourserver.com
to your domain name (eg. react.ezstudiodemo.com
).
react-native run-ios