After check the React Native documentation, I still don\'t understand the best way to create views and navigate between different components.
I don\'t want to use an
I suggest you use react-navigation you can take a look to the Navigator Playground example
Install navigation module.
npm install --save react-navigation
Import it in your app
import {
TabNavigator,
} from 'react-navigation';
const BasicApp = TabNavigator({
Main: {screen: MainScreen},
Setup: {screen: SetupScreen},
});
...and navigate
class MainScreen extends React.Component {
static navigationOptions = {
label: 'Home',
};
render() {
const { navigate } = this.props.navigation;
return (