-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(🤖): bridgeless support on Android (#2269)
Co-authored-by: William Candillon <[email protected]>
- Loading branch information
1 parent
93ebd7f
commit 789decc
Showing
9 changed files
with
117 additions
and
19 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
11 changes: 11 additions & 0 deletions
11
...ge/android/src/reactnative69/java/com/shopify/reactnative/skia/ReactNativeCompatible.java
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,11 @@ | ||
package com.shopify.reactnative.skia; | ||
|
||
import com.facebook.react.bridge.ReactContext; | ||
import com.facebook.react.bridge.RuntimeExecutor; | ||
|
||
/* package */ final class ReactNativeCompatible { | ||
public static RuntimeExecutor getRuntimeExecutor(ReactContext context) { | ||
return context.getCatalystInstance().getRuntimeExecutor(); | ||
} | ||
} | ||
|
14 changes: 14 additions & 0 deletions
14
...ge/android/src/reactnative74/java/com/shopify/reactnative/skia/ReactNativeCompatible.java
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,14 @@ | ||
package com.shopify.reactnative.skia; | ||
|
||
import androidx.annotation.OptIn; | ||
|
||
import com.facebook.react.bridge.ReactContext; | ||
import com.facebook.react.bridge.RuntimeExecutor; | ||
import com.facebook.react.common.annotations.FrameworkAPI; | ||
|
||
/* package */ final class ReactNativeCompatible { | ||
@OptIn(markerClass = FrameworkAPI.class) | ||
public static RuntimeExecutor getRuntimeExecutor(ReactContext context) { | ||
return context.getRuntimeExecutor(); | ||
} | ||
} |