React Native Create Custom Component/Library

后端 未结 4 1997
一向
一向 2020-12-23 12:27

In React Native, there are certain third-party components which compile their own libraries that can be included in your main React project. Examples of such third-party lib

4条回答
  •  攒了一身酷
    2020-12-23 12:57

    Using the react-native Module setup

    $ yarn global add create-react-native-module
    $ create-react-native-module NameOfLibrary
    

    A template would be generated for you, you can write your custom UI code in the index.js and expand on it as deemed fit.

提交回复
热议问题