Skip to content

Anthonyzou/react-native-io-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published