Skip to content

Commit

Permalink
Update patch for react-native-safe-area-context
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Dec 19, 2024
1 parent 381ae77 commit 1bc4a9c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Example/patches/react-native-safe-area-context+4.10.5.patch

This file was deleted.

39 changes: 39 additions & 0 deletions Example/patches/react-native-safe-area-context+5.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git a/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaProviderManagerDelegate.java b/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaProviderManagerDelegate.java
index dd4ef6c..5043a0f 100644
--- a/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaProviderManagerDelegate.java
+++ b/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaProviderManagerDelegate.java
@@ -11,12 +11,13 @@ package com.facebook.react.viewmanagers;

import android.view.View;
import androidx.annotation.Nullable;
+import com.facebook.react.uimanager.BaseViewManager;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
-import com.facebook.react.uimanager.BaseViewManagerInterface;
+import com.facebook.react.uimanager.LayoutShadowNode;

public class RNCSafeAreaProviderManagerDelegate<
T extends View,
- U extends BaseViewManagerInterface<T> & RNCSafeAreaProviderManagerInterface<T>>
+ U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNCSafeAreaProviderManagerInterface<T>>
extends BaseViewManagerDelegate<T, U> {
public RNCSafeAreaProviderManagerDelegate(U viewManager) {
super(viewManager);
diff --git a/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaViewManagerDelegate.java b/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaViewManagerDelegate.java
index de1686c..2c077ce 100644
--- a/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaViewManagerDelegate.java
+++ b/node_modules/react-native-safe-area-context/android/src/paper/java/com/facebook/react/viewmanagers/RNCSafeAreaViewManagerDelegate.java
@@ -12,11 +12,12 @@ package com.facebook.react.viewmanagers;
import android.view.View;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.BaseViewManager;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
-import com.facebook.react.uimanager.BaseViewManagerInterface;
+import com.facebook.react.uimanager.LayoutShadowNode;

public class RNCSafeAreaViewManagerDelegate<
- T extends View, U extends BaseViewManagerInterface<T> & RNCSafeAreaViewManagerInterface<T>>
+ T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNCSafeAreaViewManagerInterface<T>>
extends BaseViewManagerDelegate<T, U> {
public RNCSafeAreaViewManagerDelegate(U viewManager) {
super(viewManager);

0 comments on commit 1bc4a9c

Please sign in to comment.