aksonov / aksonov/react-native-router-flux

Add "refs" property to "Actions" in API documentation

Aperta
#3,684 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
8.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have spent a lot of time trying to figure out how to call non static functions from my components via the navigation bar buttons rendered in App.js (router file). I eventually found out all you need to do is simply use `Actions.refs.sceneKey.functionName()` after coming across this issue thread (https://github.com/aksonov/react-native-router-flux/issues/2298).

Could save other people a lot of time if this is added to the documentation.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.