react-navigation / react-navigation/react-navigation.github.io
Document the best possible way of navigation upon receiving push notification background and foreground
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 324
- 派生
- 2k
- PR 合并指标
- 30 天内没有已合并 PR
描述
This is a general question to all who are using react navigation, there is no documentation as to navigate to particular screen when user receives a notification
export const createRootNavigator = (signedIn = false) => {
return StackNavigator({
Login: screen: Login,
Welcome: screen: Welcome,
Loading: screen: Loading,
SignedIn: screen: SignedIn,
});
};
export const SignedIn = TabNavigator ({
Home: screen: HomeNavigation,
FeedBack: screen: FeedBackNavigation,
Search: screen: SearchNavigation,
Me: screen: ProfileNavigation,
});
I am using 'react-native-fcm' to receive the notification when app is in foreground or closed. How should I structure the code to navigate to specific screens upon receiving notification?
Shall I subscribe to onNotification in every screen and then navigate to specific screen or have it at a centralized place? Has anyone tackled this before? sample code would be great
| software | version |
|---|---|
| react-navigation | 1.0.0-beta.26 |
| react-native | 0.49.3 |
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中描述的 react-navigation 1.0.0-beta.26 设置和 react-native-fcm 通知场景开始。确定文档是否应涵盖前台和后台通知的集中处理,并定义导航到特定屏幕所需的指导或示例代码。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react, react-native
- 领域
- documentation, mobile-dev
- Issue 类型
- 文档
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100