Skip to content

Commit 9ef5f55

Browse files
jakex7tjzel
authored andcommitted
Update ReanimatedPackage to supported stable API (#6730)
## Summary Replace the deprecated `TurboReactPackage` with the newer `BaseReactPackage` to improve compatibility with future React Native releases. Note that this change requires at least [email protected]+, but this should not be an issue as, according to the compatibility table, [email protected] only supports versions 0.74 and above. Similar change has been introduced in the SVG package software-mansion/react-native-svg#2541 ## Test plan CI should pass
1 parent 94f4277 commit 9ef5f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_MODULE_START;
55

66
import androidx.annotation.NonNull;
7+
import com.facebook.react.BaseReactPackage;
78
import com.facebook.react.ReactApplication;
89
import com.facebook.react.ReactInstanceManager;
910
import com.facebook.react.ReactPackage;
10-
import com.facebook.react.TurboReactPackage;
1111
import com.facebook.react.bridge.NativeModule;
1212
import com.facebook.react.bridge.ReactApplicationContext;
1313
import com.facebook.react.bridge.ReactMarker;
@@ -36,7 +36,7 @@
3636
ReanimatedModule.class,
3737
ReanimatedUIManager.class,
3838
})
39-
public class ReanimatedPackage extends TurboReactPackage implements ReactPackage {
39+
public class ReanimatedPackage extends BaseReactPackage implements ReactPackage {
4040
@Override
4141
public NativeModule getModule(
4242
@NonNull String name, @NonNull ReactApplicationContext reactContext) {

0 commit comments

Comments
 (0)