1.0.0 • Published 8 years ago

react-native-simplerouter v1.0.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
8 years ago

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;
	}
}