react-native-diaozhao-common
v1.0.2
Published
<!-- * @Author: zogpap [email protected] * @Date: 2022-06-09 12:05:18 * @LastEditors: zogpap [email protected] * @LastEditTime: 2022-06-10 17:53:55 * @FilePath: /diaozhao-common/README.md * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置:
Downloads
8
Readme
react-native-diaozhao-common
优先配合config里需要的配置信息 否则会报错
$ import Config from 'react-native-diaozhao-common/common/config'
$ 在项目根目录的 index.js优先导入设置
Getting started
$ npm install react-native-diaozhao-common --save
Mostly automatic installation
$ react-native link react-native-diaozhao-common
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-diaozhao-common
and addRNDiaozhaoCommon.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNDiaozhaoCommon.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.diaozhao.ui.RNDiaozhaoCommonPackage;
to the imports at the top of the file - Add
new RNDiaozhaoCommonPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-diaozhao-common' project(':react-native-diaozhao-common').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-diaozhao-common/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-diaozhao-common')
Usage
import RNDiaozhaoCommon from 'react-native-diaozhao-common';
// TODO: What to do with the module?
RNDiaozhaoCommon;
版本
1.0.2
新增多个UI组件