Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to pass the parameters , between components ? #9

Open
isurugajasinghe opened this issue Mar 21, 2018 · 0 comments
Open

how to pass the parameters , between components ? #9

isurugajasinghe opened this issue Mar 21, 2018 · 0 comments

Comments

@isurugajasinghe
Copy link

navigate = () => {
const navigateToScreen2 = NavigationActions.navigate({
routeName:'screen2',
params:{name:'Shubhnik'}
})
// navigateToscreen2 will look like this:
/*
{
"type": "Navigation/NAVIGATE",
"routeName": "screen2",
"params":{
"name":"Shubhnik"
}
}
*/

  // The navigateToScreen2 action is dispatched and new navigation state will be calculated in basicNavigationReducer here ---> https://gist.github.com/shubhnik/b55602633aaeb5919f6f3c15552d1802
  this.props.navigation.dispatch(navigateToScreen2)

}

this method not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant