Skip to content

Commit

Permalink
Merge pull request #249 from Karthiccc23/add-react-native-webview
Browse files Browse the repository at this point in the history
Add react-native-webview plugin
  • Loading branch information
rthic23 committed May 10, 2023
2 parents aa345aa + 59ee25c commit 5a20664
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,7 @@
"react-native-video@4.4.5",
"react-native-view-overflow@0.0.5",
"react-native-view-shot@3.1.2",
"react-native-webview@11.26.1",
"react-native-wkwebview-reborn@2.0.0",
"realm@5.0.3",
"rn-fetch-blob@0.12.0"
Expand Down Expand Up @@ -1680,6 +1681,7 @@
"react-native-video@4.4.5",
"react-native-view-overflow@0.0.5",
"react-native-view-shot@3.1.2",
"react-native-webview@11.26.1",
"react-native-wkwebview-reborn@2.0.0",
"realm@5.0.3",
"rn-fetch-blob@0.12.0"
Expand Down Expand Up @@ -1755,6 +1757,7 @@
"react-native-video@4.4.5",
"react-native-view-overflow@0.0.5",
"react-native-view-shot@3.1.2",
"react-native-webview@11.26.1",
"react-native-wkwebview-reborn@2.0.0",
"realm@5.0.3",
"rn-fetch-blob@0.12.0"
Expand Down Expand Up @@ -1830,6 +1833,7 @@
"react-native-video@4.4.5",
"react-native-view-overflow@0.0.5",
"react-native-view-shot@3.1.2",
"react-native-webview@11.26.1",
"react-native-wkwebview-reborn@2.0.0",
"realm@5.0.3",
"rn-fetch-blob@0.12.0"
Expand Down Expand Up @@ -1905,6 +1909,7 @@
"react-native-video@4.4.5",
"react-native-view-overflow@0.0.5",
"react-native-view-shot@3.1.2",
"react-native-webview@11.26.1",
"react-native-wkwebview-reborn@2.0.0",
"realm@5.0.3",
"rn-fetch-blob@0.12.0"
Expand Down Expand Up @@ -1980,6 +1985,7 @@
"react-native-video@4.4.5",
"react-native-view-overflow@0.0.5",
"react-native-view-shot@3.1.2",
"react-native-webview@11.26.1",
"react-native-wkwebview-reborn@2.0.0",
"realm@5.0.3",
"rn-fetch-blob@0.12.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.walmartlabs.ern.container.plugins;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.facebook.react.ReactPackage;
import com.reactnativecommunity.webview.RNCWebViewPackage;

public class RNCWebViewPackagePlugin implements ReactPlugin {
@Override
public ReactPackage hook(@NonNull Application application, @Nullable ReactPluginConfig config) {
return new RNCWebViewPackage();
}
}
33 changes: 33 additions & 0 deletions plugins/ern_v0.46.0+/react-native-webview_v11.26.1+/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"android": {
"root": "android",
"dependencies": [
"implementation 'androidx.webkit:webkit:1.4.0'"
]
},
"ios": {
"copy": [
{
"dest": "{{{projectName}}}/Libraries/RNCWebView",
"source": "ios/*"
}
],
"pbxproj": {
"addHeaderSearchPath": [
"\"$(SRCROOT)/{{{projectName}}}/Libraries/RNCWebView/**\""
],
"addProject": [
{
"group": "Libraries",
"path": "RNCWebView/RNCWebView.xcodeproj",
"staticLibs": [
{
"name": "libRNCWebView.a",
"target": "RNCWebView"
}
]
}
]
}
}
}

0 comments on commit 5a20664

Please sign in to comment.