Closed
Description
Version
Tell us which versions you are using:
- react-native-router-flux v^3.36.0
- react-native v0.35.0
Expected behaviour
Expected sucessfull call to the function '_someFunction', as when the Scenes are placed directly within de router: as such:
<Scene key="login" component={Login} title="Login" onBack={ ()=>this._someFunction() } />
Where '_someFunction' is a function of "class App extends Component{ }"
Actual behaviour
Can not read property '' of undefined
const scenes = Actions.create(
<Scene key="login" component={Login} title="Login" onBack={ ()=>this._someFunction() } />
)
Steps to reproduce
- recreate sample from https://github.com/aksonov/react-native-router-flux
- add onBack as shown and the function '_someFunction' within class App extends Component
- use const scenes = Actions.create( ... )
Metadata
Metadata
Assignees
Labels
No labels