Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hannojg/react-native-box2d

JSI port of the Box2D physics engine for React Native.
https://github.com/hannojg/react-native-box2d

physics-2d physics-engine react-native react-native-jsi

Last synced: 4 months ago
JSON representation

JSI port of the Box2D physics engine for React Native.

Awesome Lists containing this project

README

        

# react-native-box2d

> โš ๏ธ๐Ÿšง This is WIP and not ready for production use. ๐Ÿšงโš ๏ธ
>
> I am still actively developing this library.

JSI port of the [Box2D physics engine](https://box2d.org/) for React Native.

Use real world physics to build gestures, animations, games or anything else you can think of.

![](./docs/img/example-boxes.webp)

---

## Installation

### React Native

```sh
yarn add react-native-box2d
cd ios && pod install
```

## Usage

TODO: Add usage example

## Limitations

As the library uses JSI for synchronous native methods access, remote debugging (e.g. with Chrome) is no longer possible. Instead, you should use [Flipper](https://fbflipper.com).

## Thanks

- [react-native-jsi-library-template](https://github.com/mrousavy/react-native-jsi-library-template)
- [box2d](https://box2d.org/)
- [@shopify/react-native-skia](https://github.com/Shopify/react-native-skia)

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT