1.1.1 • Published 6 years ago

react-native-fs-cache-manager v1.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

react-native-library

Getting started

$ npm install react-native-library --save

Mostly automatic installation

$ react-native link react-native-library

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-library and add ZKLibrary.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libZKLibrary.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.fscache.ZKLibraryPackage; to the imports at the top of the file
  • Add new ZKLibraryPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-library'
    project(':react-native-library').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-library/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-library')

Windows

Read it! :D

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

Usage

import ZKLibrary from 'react-native-library';

// TODO: What do with the module?
ZKLibrary;
1.1.1

6 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago