1.0.0 • Published 8 years ago
react-native-simplerouter v1.0.0
react-native-simplerouter
A straightforward and flexible router for React Native
How to use
import Router from 'react-native-simplerouter';
class test extends Component {
constructor(){
super();
let routes = {
blank : <View style={{backgroundColor:'#007fff', flex:1}}></View>
}
this.router = new Router(routes,{id:'blank',transition:'default'});
}
render() {
return this.router.nav;
}
}
1.0.0
8 years ago