aksonov / aksonov/react-native-router-flux
Get current route and props
- Lingua principale
- JavaScript
- Stelle
- 8.9k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Version
- react-native-router-flux v4.0.5
- react v16.5.0
- react-native v0.57.2
### Help needed
Hi, i am facing an implementation issue, currently i have a chat screen on my app. I get notification events on my Routes component so i get the push notification event and i load the scene i want to (chat scene).
Now the problem is that they can be multiple chats (using the same scene with differents properties obviously), i want to reload the scene only if the push notification is about another chat (not the current chat) so i need to "get current route and his properties" when the event is triggered.
As a first step, i only check if current scene is "chat" (with ACTIONS.currentScene), but now i need to access the properties of current scene.
This is my app structure:
`
<-- This is my Router component
`
Any help will be appreciated
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.