This is a simple react-native app for iOS
Details here React Native Getting Started. But quickly
-
macOS and XCode (this is built for iOS and requires XCode 9+)
-
Node 8 or 10 and watchman, can be installed using homebrew.
brew install node
brew install watchman
-
react-native installed via the cli
npm i -g react-native-cli
oryarn add global react-native
(yarn must be installed)
-
json-server for the api.
npm i -g json-server
- Clone the repo
- run
yarn
from inside the cloned directory to install all necessary package - run
yarn start
to start up the react-native bundler - In another terminal and within the cloned directory run
json-server --watch ./App/api/db.json
- This starts the api server.
- I have a sample db.json saved to serve a basic api with 2 endpoints (The response returned are random images and text not actual cars nor make)
- In another terminal and within the cloned directory run
react-native run-ios
- This would start up the iPhone Simulator, install the application and run it.
Haven't been able to update to High Sierra. I am still on Sierra with XCode 9.2 and couldn't use the awesomeness of the more recent React Native.
- When app loses connection and then regains connection, the infinite scroll does not work because onEndReach will have called already