react-native-sort

1.0.0 • Public • Published

react-native-sort

Work In Progress

Getting started

$ npm install react-native-sort --save

Mostly automatic installation

$ react-native link react-native-sort

Manual installation

Android

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

Usage

import Sort from 'react-native-sort';
 
const data=["Akrafjall","Bláfjöll","Blönduós","Akureyri","Austurárdalsháls","Básar á Goðalandi","Biskupsháls","Bíldudalur","Bjargtangar","Bjarnarey","Bláfjallaskáli","Blönduós Vegagerðarstöð","Botnsheiði","Brattabrekka","Breiðdalsheiði","Brú á Jökuldal","Árnes","Ásbyrgi","Ásgarður"];
 
const SortedData = Sort.it(data);

Readme

Keywords

Package Sidebar

Install

npm i react-native-sort

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

17.5 kB

Total Files

20

Last publish

Collaborators

  • bhavanpatel