基于ReactNative JSI
yarn add react-native-cocos2dxSet your own COCOS_BUILD_PATH in .env file(which in the root of your React Native app)
import { Cocos2dGlviewView } from 'react-native-cocos2dx';
// ...
<View style={{ flex: 1 }}>
<Cocos2dxGLView />
</View>;see ./example
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT