# rokid-framework-rn

> ## The application framework for rokid based on react native

Latest version **0.7.0** (published 2016-10-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install rokid-framework-rn
pnpm add rokid-framework-rn
yarn add rokid-framework-rn
bun add rokid-framework-rn
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2016-10-31 |
| First published | 2016-10-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | leolang langneng@rokid.com |
| Maintainers | laoliangtf |

## Links

- npm: https://www.npmjs.com/package/rokid-framework-rn
- Repository: https://github.com/Leo-Lang/rokid-framework-react-native
- Issues: https://github.com/Leo-Lang/rokid-framework-react-native/issues
- npm.io page: https://npm.io/package/rokid-framework-rn

## Dependencies (3)

- [react](https://npm.io/package/react.md) 15.1.0
- [react-native](https://npm.io/package/react-native.md) 0.27.2
- [react-native-rokid-module](https://npm.io/package/react-native-rokid-module.md) 0.0.2

## Recent versions

- 0.7.0 (latest) — 2016-10-31
- 0.6.0 — 2016-10-15

## README

#rokid-framework-rn

## Installation

```
npm i --save rokid-framework-rn
```

**on Android:**

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

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

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

```
compile project(':rokid-framework-rn')
```

####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-rn';


```





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

---
_Source: https://npm.io/package/rokid-framework-rn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
