How to pass values to other component in React-Native-Router-Flux?

后端 未结 5 1600
误落风尘
误落风尘 2020-12-08 06:44

My code is:

...

 


...
com1.js         


        
5条回答
  •  天涯浪人
    2020-12-08 07:36

    In addition to that, (and for those in the comments who said it didn't work) you may want to try below. When you pass the

    Actions.com2({text : 'Hello World'});
    

    Com2 should pass 'props'

    const Com2 = (props) => {
       return ( 
    );
    

提交回复
热议问题