You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All I'm trying to do is navigate from one container to another. I'm using Redux-Thunk.
Actual behaviour
NavigationRouter recognizes my other scenes as functions they return undefined, scene does not change.
Code
EDIT: Glad to see mds code snippet is working
Router import React, { Component } from 'react'
import { Scene, Router } from 'react-native-router-flux'
import Styles from './Styles/NavigationContainerStyles'
import NavigationDrawer from './NavigationDrawer'
import LaunchScreen from '../Containers/LaunchScreen'
import Login from '../Containers/LoginScreen'
import SettingsScreen from '../Containers/SettingsScreen'
class NavigationRouter extends Component {
render () {
return (
)
}
}
export default NavigationRouter LoginScreenimport React, { PropTypes } from 'react'
import {
View,
ScrollView,
Text,
TextInput,
TouchableOpacity,
Image,
Keyboard,
LayoutAnimation
} from 'react-native'
import { connect } from 'react-redux'
import Styles from './Styles/LoginScreenStyles'
import {Images, Metrics} from '../Themes'
import { Actions as NavigationActions } from 'react-native-router-flux'
import { Button, Text as NBText, Contant, Form, Item, Input, Label } from 'native-base'
import { loginUser } from '../Reducers/LoginActions'
import settingsScreen from './SettingsScreen'
Version
Tell us which versions you are using:
Expected behaviour
All I'm trying to do is navigate from one container to another. I'm using Redux-Thunk.
Actual behaviour
NavigationRouter recognizes my other scenes as functions they return undefined, scene does not change.
Code
EDIT: Glad to see mds code snippet is
working
Router
import
React, { Component } from 'react'import { Scene, Router } from 'react-native-router-flux'
import Styles from './Styles/NavigationContainerStyles'
import NavigationDrawer from './NavigationDrawer'
import LaunchScreen from '../Containers/LaunchScreen'
import Login from '../Containers/LoginScreen'
import SettingsScreen from '../Containers/SettingsScreen'
class NavigationRouter extends Component {
render () {
return (
)
}
}
export default NavigationRouter
LoginScreen
import React, { PropTypes } from 'react'import {
View,
ScrollView,
Text,
TextInput,
TouchableOpacity,
Image,
Keyboard,
LayoutAnimation
} from 'react-native'
import { connect } from 'react-redux'
import Styles from './Styles/LoginScreenStyles'
import {Images, Metrics} from '../Themes'
import { Actions as NavigationActions } from 'react-native-router-flux'
import { Button, Text as NBText, Contant, Form, Item, Input, Label } from 'native-base'
import { loginUser } from '../Reducers/LoginActions'
import settingsScreen from './SettingsScreen'
class LoginScreen extends React.Component {
The text was updated successfully, but these errors were encountered: