Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 456 Bytes

react-native.md

File metadata and controls

30 lines (21 loc) · 456 Bytes

setup dependencies

  1. npm install --global expo-cli

  2. expo init myawesomeapp

  3. cd myawesomeapp

  4. expo init

create frontend

props

manage state

centerise components

    <View style={{flex:1,justifyContent: "center",alignItems: "center"}}>
      <Cat name="Maru" kill="20"/>
      <Cat name="Jellylorum" kill="30"/>
      <Cat name="Spot" kill="40"/>
    </View>