react-native-reanimated 3.15.1 → 3.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,7 +195,7 @@ void NativeReanimatedModule::scheduleOnUI(
195
195
  const jsi::Value &worklet) {
196
196
  auto shareableWorklet = extractShareableOrThrow<ShareableWorklet>(
197
197
  rt, worklet, "[Reanimated] Only worklets can be scheduled to run on UI.");
198
- uiScheduler_->scheduleOnUI([=] {
198
+ uiScheduler_->scheduleOnUI([=, this] {
199
199
  #if JS_RUNTIME_HERMES
200
200
  // JSI's scope defined here allows for JSI-objects to be cleared up after
201
201
  // each runtime loop. Within these loops we typically create some temporary
@@ -261,7 +261,7 @@ jsi::Value NativeReanimatedModule::registerEventHandler(
261
261
  rt, worklet, "[Reanimated] Event handler must be a worklet.");
262
262
  int emitterReactTagInt = emitterReactTag.asNumber();
263
263
 
264
- uiScheduler_->scheduleOnUI([=] {
264
+ uiScheduler_->scheduleOnUI([=, this] {
265
265
  auto handler = std::make_shared<WorkletEventHandler>(
266
266
  newRegistrationId, eventNameStr, emitterReactTagInt, handlerShareable);
267
267
  eventHandlerRegistry_->registerEventHandler(std::move(handler));
@@ -275,7 +275,7 @@ void NativeReanimatedModule::unregisterEventHandler(
275
275
  const jsi::Value &registrationId) {
276
276
  uint64_t id = registrationId.asNumber();
277
277
  uiScheduler_->scheduleOnUI(
278
- [=] { eventHandlerRegistry_->unregisterEventHandler(id); });
278
+ [=, this] { eventHandlerRegistry_->unregisterEventHandler(id); });
279
279
  }
280
280
 
281
281
  #ifdef RCT_NEW_ARCH_ENABLED
@@ -371,7 +371,7 @@ jsi::Value NativeReanimatedModule::getViewProp(
371
371
 
372
372
  const int viewTagInt = viewTag.asNumber();
373
373
 
374
- uiScheduler_->scheduleOnUI([=]() {
374
+ uiScheduler_->scheduleOnUI([=, this]() {
375
375
  jsi::Runtime &uiRuntime = uiWorkletRuntime_->getJSIRuntime();
376
376
  const jsi::Value propNameValue =
377
377
  jsi::String::createFromUtf8(uiRuntime, propNameStr);
@@ -878,7 +878,7 @@ jsi::Value NativeReanimatedModule::subscribeForKeyboardEvents(
878
878
  handlerWorklet,
879
879
  "[Reanimated] Keyboard event handler must be a worklet.");
880
880
  return subscribeForKeyboardEventsFunction_(
881
- [=](int keyboardState, int height) {
881
+ [=, this](int keyboardState, int height) {
882
882
  uiWorkletRuntime_->runGuarded(
883
883
  shareableHandler, jsi::Value(keyboardState), jsi::Value(height));
884
884
  },
@@ -5,5 +5,5 @@
5
5
  * with the version used to build the native part of the library in runtime.
6
6
  * Remember to keep this in sync with the version declared in `package.json`
7
7
  */
8
- export const jsVersion = '3.15.1';
8
+ export const jsVersion = '3.15.2';
9
9
  //# sourceMappingURL=jsVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsVersion"],"sources":["jsVersion.ts"],"sourcesContent":["'use strict';\n/**\n * We hardcode the version of Reanimated here in order to compare it\n * with the version used to build the native part of the library in runtime.\n * Remember to keep this in sync with the version declared in `package.json`\n */\nexport const jsVersion = '3.15.1';\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["jsVersion"],"sources":["jsVersion.ts"],"sourcesContent":["'use strict';\n/**\n * We hardcode the version of Reanimated here in order to compare it\n * with the version used to build the native part of the library in runtime.\n * Remember to keep this in sync with the version declared in `package.json`\n */\nexport const jsVersion = '3.15.2';\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,QAAQ","ignoreList":[]}
@@ -3,4 +3,4 @@
3
3
  * with the version used to build the native part of the library in runtime.
4
4
  * Remember to keep this in sync with the version declared in `package.json`
5
5
  */
6
- export declare const jsVersion = "3.15.1";
6
+ export declare const jsVersion = "3.15.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-reanimated",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "description": "More powerful alternative to Animated library for React Native.",
5
5
  "scripts": {
6
6
  "test": "yarn format:js && yarn lint:js && yarn test:unit",
@@ -4,4 +4,4 @@
4
4
  * with the version used to build the native part of the library in runtime.
5
5
  * Remember to keep this in sync with the version declared in `package.json`
6
6
  */
7
- export const jsVersion = '3.15.1';
7
+ export const jsVersion = '3.15.2';