Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 546 Bytes

File metadata and controls

40 lines (23 loc) · 546 Bytes

react-native-cocos2dx

基于ReactNative JSI

Installation

yarn add react-native-cocos2dx

Usage

iOS

Android

Set your own COCOS_BUILD_PATH in .env file(which in the root of your React Native app)

js

import { Cocos2dGlviewView } from 'react-native-cocos2dx';

// ...

<View style={{ flex: 1 }}>
  <Cocos2dxGLView />
</View>;

see ./example

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT