Skip to content

A note on the commands that are only used occasionally in ReactNative

   

This is an important comment note that I use only occasionally in ReactNative.

Installing react-native-cli globally with npm

npm install -g react-native-cli
react-native -v

Create a project
Be careful not to use the same name as a Sample(react-native init Sample) or something else used internally such as ReactNative, because it seems to give an error.

react-native init ReactNative

Launching the ios emulator.

cd ReactNative
react-native run-ios

  1. Show the indicator in ReactNative
  2. Display an image with ReactNative
  3. Specifying the size of the View in FlexBox
  4. Displaying a FlatList in ReactNative
  5. Display the button with ReactNative