react-native-youtil-element-ui
v0.0.1
Published
Youtil组件库
Downloads
1
Readme
react-native-youtil-element-ui
Getting started
$ npm install react-native-youtil-element-ui --save
Mostly automatic installation
$ react-native link react-native-youtil-element-ui
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-youtil-element-ui
and addRNYoutilElementUi.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNYoutilElementUi.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.youtil.element.ui.RNYoutilElementUiPackage;
to the imports at the top of the file - Add
new RNYoutilElementUiPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-youtil-element-ui' project(':react-native-youtil-element-ui').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-youtil-element-ui/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-youtil-element-ui')
Usage
import RNYoutilElementUi from 'react-native-youtil-element-ui';
// TODO: What to do with the module?
RNYoutilElementUi;