# Rotating Cube, but sharing the same code between React x React Native

**URL:** <https://forum.babylonjs.com/t/rotating-cube-but-sharing-the-same-code-between-react-x-react-native/32517>\
**Category:** Demos and projects\
**Tags:** react, native, mobile, babylon-native\
**Created:** [July 26, 2022, 9:51pm UTC](https://forum.babylonjs.com/t/rotating-cube-but-sharing-the-same-code-between-react-x-react-native/32517 "2022-07-26T21:51:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![runtothedoor](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/runtothedoor/32/25879_2.png) [@runtothedoor](https://forum.babylonjs.com/u/runtothedoor)\
**Post date:** [July 26, 2022, 9:51pm UTC](https://forum.babylonjs.com/t/rotating-cube-but-sharing-the-same-code-between-react-x-react-native/32517/1 "2022-07-26T21:51:54Z")

</div>

![](https://github.com/runtothedoor/rotating-cube-demo-babylon-rxn/raw/main/cube.gif)

Repository:  
[GitHub - runtothedoor/rotating-cube-demo-babylon-rxn: 🟦 🔄 [DEMO] Cross Platform BabylonJS Simple 3D Cube built with React and React Native.](https://github.com/runtothedoor/rotating-cube-demo-babylon-rxn)

Technologies:

- TypeScript
- Yarn Workspaces
- React / React Native
- React Native Web
- BabylonJS / BabylonReactNative
- CRACO

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [July 28, 2022, 12:04pm UTC](https://forum.babylonjs.com/t/rotating-cube-but-sharing-the-same-code-between-react-x-react-native/32517/2 "2022-07-28T12:04:02Z")

</div>

Very nice, thanks for sharing with us! And welcome to the community 😃
