Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terrysahaidak/reanimated-jsi
Reanimated with JSI on Android
https://github.com/terrysahaidak/reanimated-jsi
Last synced: about 2 months ago
JSON representation
Reanimated with JSI on Android
- Host: GitHub
- URL: https://github.com/terrysahaidak/reanimated-jsi
- Owner: terrysahaidak
- Created: 2019-10-27T18:24:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:35:50.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T20:05:50.229Z (almost 2 years ago)
- Language: C++
- Size: 1.96 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reanimated with JSI
## How it works
Currently all the JSI code is stored inside `jsi/android` folder. I'm copy-paste it during build to react-native source code, so it will be compiled together with all those cool libs/helpers RN team wrote (jsi, fbjni etc). For that reason, I'm using react-native from branch and compiling it with all the other code. Also, all the changes to Reanimated itself are done using patch-package. Check out `patches` dir. In order to update patches, run:
```bash
npx patch-package react-native-reanimated --include "ReanimatedModule.java|Callback.java|AnimatedNode.js|NodesManager.java"
```You can add additional files with `|` delimiter.
## Development
In order to start develop, clone this repository and run `npm install`, after it run `npm run android`. It will build the app (as well as react native) from sources and install to attached device.
If you want to change something, you can make your changes in the `jsi/android` files and then you have to run `npm run clean:android` in order to clean build folder and all the cached `so` files and then just run `npm run android` to build it again.
## License
MIT