Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.37 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.37 KB

React native IO utils for Android

Network file upload and file download. As well as file/image/video picking utilities for android.

###Examples

  

#Installation

Install the npm package react-native-io-utils. Inside your React Native project, run (example):

npm install --save react-native-io-utils

In android/settings.gradle add the following lines

include :react-native-io-utils'
project(':react-native-io-utils').projectDir = file('../node_modules/react-native-io-utils/android')

In android/app/build.gradle, add a dependency to ':react-native-io-utils'

dependencies {
    compile project(':react-native-io-utils')
}

Next, you need to change the MainActivity of your app to register IOUtilsModule :

import com.rn.io.utils.IOUtilsModule; // add this import

public class MainActivity extends ReactActivity {
    //...

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new IOUtilsModule() // add this manager
      );
    }

TeamLockr io utils Team Lockr io utils for react native

These are functions created by the TeamLockr Team created for the TeamLockr platform.