i started a new react native project. Made a directory which as other "pages" like login or so. And i EXCATLY did everything in here: https://github.com/aksonov/react-native-router-flux/blob/master/docs/MINI_TUTORIAL.md
But i all see is Login title at the top.It just doesnt work and i dont know what to do. Here are the codes:
index.android.js
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
import { Actions, Scene, Router } from 'react-native-router-flux';
import Login from './components/Login';
import Home from './components/Home';
export default class Yeni extends Component {
render() {
return (
<Router>
<Scene key="root">
<Scene key="login" component={Login} title="Login" initial={true} />
<Scene key="home" component={Home} title="Home" />
</Scene>
</Router>
)
}
}
AppRegistry.registerComponent('Yeni', () => Yeni);
components/Login.js
import React, { Component } from 'react';
import { AppRegistry, Text, View } from 'react-native';
export default class Login extends Component {
render() {
return (
<View>
<Text>Login page</Text>
</View>
)
}
}