Skip to content

2.0.0-rc.4: react-native-worklets

Pre-release
Pre-release

Choose a tag to compare

@eduardoborges eduardoborges released this 02 Sep 19:52
· 14 commits to v2/react-native-worklets since this release
1e2b46d

Release candidate of the react-native-worklets migration (continues margelo#327).

Changes since rc.3: on Android the Filament runtime's queue is a worklets::AsyncQueueUI with a render-thread scheduler instead of a subclass of AsyncQueue. The subclass failed react-native-worklets' dynamic_pointer_cast whenever libworklets.so was loaded before libreact-native-filament.so (Android compares type_info by pointer and the weak AsyncQueue type_info binds per library in dlopen order), which left the runtime without a queue and aborted on the first scheduled worklet. With Reanimated in the app that was the normal load order.

Verified on React Native 0.83.1 (example app) and 0.87.1 (fresh template app with Reanimated sensors, both library load orders), New Architecture, Hermes, iOS simulator and Android emulator. Peers: react-native-worklets >= 0.12, react-native-reanimated >= 4. Requires the react-native-worklets/plugin Babel plugin.

The tarball includes the prebuilt Filament (from 1.11.0) and Bullet3 binaries, so it installs like the npm package:

"react-native-filament": "https://github.com/eduardoborges/react-native-filament/releases/download/v2.0.0-rc.4/react-native-filament-2.0.0-rc.4.tgz"