javascript - Pattern for global object in React Native -


is there well-established pattern allowing single object available modules in react native application? know can pass object routemapper every particular scene , access way, feels lot of boilerplate , repeated code when absolutely need accessible entire application. in fact, need listening events @ times.

well, there react context. https://facebook.github.io/react/docs/context.html general wisdom is: don't use it.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -