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
I am making an app for dual screen devices using the TwoPaneApp component of twopane navigation. At some of the places in my app I need to pass values as params but I don't see any way to do that using this library. If there is a way please help me out by posting a solution. If it's not possible currently, it will be great enhancement to this library.
The text was updated successfully, but these errors were encountered:
There are certain components in my app that enables or disables different features and areas in the app based on certain values(Eg. user permissions(string enum) and requestId(number) ). These values are better suited to be passed as params rather than props as they can also be undefined and the screen renders the default view. As most of the components in my app doesn't require props I have made a function and default config something like this:
config = {
key: string,
component: React Component
}
navigate (key) {
// Add the key to the stack using autopane
}
Now when we use react-navigation for single screen devices there is a React navigation context that provides the current route and the params provided to the route. And I am looking to see something similar to that where we can pass values as params and can access it inside the component using the context ( Like navigationContext.getParam()).
Hi,
I am making an app for dual screen devices using the TwoPaneApp component of twopane navigation. At some of the places in my app I need to pass values as params but I don't see any way to do that using this library. If there is a way please help me out by posting a solution. If it's not possible currently, it will be great enhancement to this library.
The text was updated successfully, but these errors were encountered: