0.6.0 • Published 9 years ago

rokid-framework-react-native v0.6.0

Weekly downloads
8
License
ISC
Repository
github
Last release
9 years ago

#rokid-framework-react-native

Installation

npm i --save rokid-framework-react-native

on Android:

####1. android/settings.gradle:: Add the following snippet

include ":rokid-framework-react-native"
project(':rokid-framework-react-native').projectDir = new File(rootProject.projectDir,'../node_modules/rokid-framework-react-native/android/rokid-framework-react-native')

####2. android/app/build.gradle: Add in dependencies block.

compile project(':rokid-framework-react-native')

####3. in your MainActivity (or equivalent) the FrameAnimReactPackage needs to be added. Add the import at the top:

import com.leolang.rokidframework.react.RKReactActivity;
import com.leolang.rokidframework.react.RKReactPackage;

####4. In order for React Native to use the package, add it the packages inside of the class extending RKReactActivity.

public class MainActivity extends RKReactActivity
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
	new MainReactPackage(),
	...
	new RKReactPackage()
  );
}

Usage

###js

import RKReactNative from 'rokid-framework-react-native';

##sample

###android/app & index.android.js

0.6.0

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago