Passing Props to Screens in React Native

前端 未结 2 2007
借酒劲吻你
借酒劲吻你 2021-01-28 02:03

I have started to learn React Native and as always begin by creating reusable components. I learnt how you can pass and access props while creating custom components.

I

2条回答
  •  星月不相逢
    2021-01-28 02:37

    In the constructor of HomeScreen, props should be able to passed to BaseComponent through

    constructor(props) {
      super(props);
    ...
    

    does it work for you?

提交回复
热议问题