How to pass props to Screen component with a tab navigator?

前端 未结 4 1208
灰色年华
灰色年华 2021-02-07 08:51

This is my first post on StackOverflow, so apologies if I\'m not following the correct format.

I\'m building my first app using tab navigator from React Navigation

4条回答
  •  攒了一身酷
    2021-02-07 09:28

    you can use the following

     }/>
    

    You may gate a warning loss of current state due to re-render the component. but the props will work. If you want to copy current state props then you can use {...props}

提交回复
热议问题