- Install homebrew:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install node.js:
brew install node
- Install Xcode: https://xcodereleases.com/
npx react-native init MyApp --template react-native-template-typescript
cd ios
pod install
cd ..
Then:
npx start
and:
npx run ios
See:
- https://reactnative.dev/docs/intro-react#jsx
- https://reactjs.org/docs/introducing-jsx.html
- https://reactjs.org/docs/jsx-in-depth.html
See:
- https://reactnative.dev/docs/intro-react#your-first-component
- https://reactjs.org/docs/components-and-props.html
See:
See:
tsc
is the TypeScript compiler.
Run it to check for errors in your code:
npx tsc --noEmit
See https://medium.com/dailyjs/javascript-module-cheatsheet-7bd474f1d829
See:
See:
See: