Skip to content

Monte9/Asphalt

Repository files navigation

Asphalt - Time to hit the road with React Native

TODO:

  • Write tests using Jest
  • Use MobX for state management
  • Implement React Navigation for navigation across the app
  • Implement full-featured chat functionality
  • Implement social login with Facebook

React Navigation use cases:

Navigate back on button press:

<TouchableOpacity
  onPress={ () => this.props.navigation.goBack() }
  style={{
    padding:20,
    borderRadius:20,
    backgroundColor:'purple',
    marginTop:20
  }}>
  <Text>{'Go back a screen this tab'}</Text>
</TouchableOpacity>

Navigate between tab bars from views:

<TouchableOpacity
  onPress={
    () => this.props.navigation.dispatch({ type:'JUMP_TO_TAB', payload:{index:0} })
  }
  style={{
    padding:20,
    borderRadius:20,
    backgroundColor:'purple',
    marginTop:20
  }}>
  <Text>{'Go back to root tab'}</Text>
</TouchableOpacity>

About

Functional React Native App; to push the boundaries of my RN skills

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published