-
-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
153 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
android/src/main/rn-compat/rn75/com/rnmapbox/rnmbx/rncompat/Dynamic.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.rnmapbox.rnmbx.rncompat.dynamic | ||
|
||
import com.facebook.react.bridge.Dynamic | ||
import com.facebook.react.bridge.ReadableType | ||
|
||
val Dynamic.type: ReadableType | ||
get() { return this.getType() } | ||
|
||
val Dynamic.isNull: Boolean | ||
get() { return this.isNull() } |
5 changes: 5 additions & 0 deletions
5
android/src/main/rn-compat/rn75/com/rnmapbox/rnmbx/rncompat/ReadableMap.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.rnmapbox.rnmbx.rncompat.readable_map | ||
import com.facebook.react.bridge.ReadableMap | ||
|
||
val ReadableMap.entryIterator: Iterator<Map. Entry<String, Any>> | ||
get() { return this.getEntryIterator() } |
7 changes: 7 additions & 0 deletions
7
android/src/main/rn-compat/rn75/com/rnmapbox/rnmbx/rncompat/ResourceDrawableIdHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.rnmapbox.rnmbx.rncompat.resourcedrawableidhelper; | ||
|
||
import com.facebook.react.views.imagehelper.ResourceDrawableIdHelper | ||
|
||
public fun ResourceDrawableIdHelper.Companion.getInstance(): ResourceDrawableIdHelper { | ||
return this.instance | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
diff --git a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt | ||
index c45adc0..9fa52f0 100644 | ||
--- a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt | ||
+++ b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt | ||
@@ -44,7 +44,7 @@ open class ScreenViewManager : ViewGroupManager<Screen>(), RNSScreenManagerInter | ||
): Any? { | ||
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { | ||
// fabricViewStateManager should never be null in Fabric. The null check is only for Paper's empty impl. | ||
- view.fabricViewStateManager?.setStateWrapper(stateWrapper) | ||
+ view.setStateWrapper(stateWrapper) | ||
} | ||
return super.updateState(view, props, stateWrapper) | ||
} | ||
diff --git a/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt b/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt | ||
index 917c18d..71570a8 100644 | ||
--- a/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt | ||
+++ b/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt | ||
@@ -2,11 +2,12 @@ package com.swmansion.rnscreens | ||
|
||
import android.view.ViewGroup | ||
import com.facebook.react.bridge.ReactContext | ||
-import com.facebook.react.uimanager.FabricViewStateManager | ||
+import com.facebook.react.uimanager.StateWrapper | ||
|
||
-abstract class FabricEnabledViewGroup constructor(context: ReactContext?) : ViewGroup(context) { | ||
+abstract class FabricEnabledViewGroup(context: ReactContext?) : ViewGroup(context) { | ||
+ private var mStateWrapper: StateWrapper? = null | ||
|
||
- val fabricViewStateManager get() = null as FabricViewStateManager? | ||
+ fun setStateWrapper(stateWrapper: StateWrapper?) = Unit | ||
|
||
protected fun updateScreenSizeFabric(width: Int, height: Int, headerHeight: Double) { | ||
// do nothing | ||
diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.cpp b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.cpp | ||
index 1de0596..5b28c16 100644 | ||
--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.cpp | ||
+++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.cpp | ||
@@ -5,7 +5,7 @@ namespace react { | ||
|
||
extern const char RNSModalScreenComponentName[] = "RNSModalScreen"; | ||
|
||
-Point RNSModalScreenShadowNode::getContentOriginOffset() const { | ||
+Point RNSModalScreenShadowNode::getContentOriginOffset(bool includeTransform) const { | ||
auto stateData = getStateData(); | ||
auto contentOffset = stateData.contentOffset; | ||
return {contentOffset.x, contentOffset.y}; | ||
diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.h b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.h | ||
index 67709d9..05ffb81 100644 | ||
--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.h | ||
+++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSModalScreenShadowNode.h | ||
@@ -19,7 +19,7 @@ class JSI_EXPORT RNSModalScreenShadowNode final : public ConcreteViewShadowNode< | ||
public: | ||
using ConcreteViewShadowNode::ConcreteViewShadowNode; | ||
|
||
- Point getContentOriginOffset() const override; | ||
+ Point getContentOriginOffset(bool includeTransform) const override; | ||
static ShadowNodeTraits BaseTraits() { | ||
auto traits = ConcreteViewShadowNode::BaseTraits(); | ||
traits.set(ShadowNodeTraits::Trait::RootNodeKind); | ||
diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp | ||
index 0e3746e..ea707fb 100644 | ||
--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp | ||
+++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.cpp | ||
@@ -5,7 +5,7 @@ namespace react { | ||
|
||
extern const char RNSScreenComponentName[] = "RNSScreen"; | ||
|
||
-Point RNSScreenShadowNode::getContentOriginOffset() const { | ||
+Point RNSScreenShadowNode::getContentOriginOffset(bool includeTransform) const { | ||
auto stateData = getStateData(); | ||
auto contentOffset = stateData.contentOffset; | ||
return {contentOffset.x, contentOffset.y}; | ||
diff --git a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h | ||
index 25b6442..4688721 100644 | ||
--- a/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h | ||
+++ b/node_modules/react-native-screens/common/cpp/react/renderer/components/rnscreens/RNSScreenShadowNode.h | ||
@@ -19,7 +19,7 @@ class JSI_EXPORT RNSScreenShadowNode final : public ConcreteViewShadowNode< | ||
public: | ||
using ConcreteViewShadowNode::ConcreteViewShadowNode; | ||
|
||
- Point getContentOriginOffset() const override; | ||
+ Point getContentOriginOffset(bool includeTransform ) const override; | ||
}; | ||
|
||
} // namespace react |
Oops, something went wrong.