简体   繁体   中英

How to pass down Redux store in React Native Router Flux

i've encountered a sligthly more difficult problem than i can handle myself.

Problem: I want to pass down the redux store as a prop to the login scene, but since the navigator is not a react component and its just a prop in an element which is using connect()...well it's better if i show you some pictures:

reduxrouter_element

reduxrouter_connect

navigator

What should i do?

Thank you for the answers in advance :)

edit.:

I've just simply imported store, and it worked...guess this was some kind of black magic...

解决方案:我只是简单地导入了商店,并且工作正常……猜测这是某种黑魔法

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM