react-native-ming-element
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-ming-element

Getting started

$ npm install react-native-ming-element --save

Mostly automatic installation

$ react-native link react-native-ming-element

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-ming-element and add RNMingElement.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNMingElement.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNMingElementPackage; to the imports at the top of the file
  • Add new RNMingElementPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-ming-element'
    project(':react-native-ming-element').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-ming-element/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-ming-element')
    

Windows

Read it! :D

  1. In Visual Studio add the RNMingElement.sln in node_modules/react-native-ming-element/windows/RNMingElement.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Ming.Element.RNMingElement; to the usings at the top of the file
  • Add new RNMingElementPackage() to the List<IReactPackage> returned by the Packages method

npm

$ npm version <update_type>
$ npm publish

\$ npm version 命令是用来自动更新版本号,update_type 取值有 patch minor major(https://www.jianshu.com/p/091a68ea1ca7)

Usage

import RNMingElement from "react-native-ming-element";

// TODO: What to do with the module?
RNMingElement;

Readme

Keywords

Package Sidebar

Install

npm i react-native-ming-element

Weekly Downloads

1

Version

1.0.1

License

none

Unpacked Size

34.9 kB

Total Files

24

Last publish

Collaborators

  • xiaoming555