forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FOR DISCUSSION] One way to get
sharedData
into ShareToStream, Shar…
…eToPm This is just meant to show one way this could be done -- it seems more React- and React-Navigation idiomatic. It avoids calling `createMaterialTopTabNavigator` from within a render method or a constructor. This uses the alternative mentioned at the "Common Mistakes" doc [1], with the `router` static and threading through the `navigation` prop. There are a few comments I would make about some of the code, not addressed in this commit, but hopefully this will help for conceptual clarity about the kind of thing I'm suggesting. :) More discussion at https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/.60screenProps.60.20in.20react-navigation.20v2/near/888521. [1]: https://reactnavigation.org/docs/2.x/common-mistakes/#explicitly-rendering-more-than-one-navigator
- Loading branch information
1 parent
ebd94be
commit f482827
Showing
1 changed file
with
51 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters