-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from Karthiccc23/add-react-native-webview
Add react-native-webview plugin
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 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
16 changes: 16 additions & 0 deletions
16
plugins/ern_v0.46.0+/react-native-webview_v11.26.1+/RNCWebViewPackagePlugin.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,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
33
plugins/ern_v0.46.0+/react-native-webview_v11.26.1+/config.json
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,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" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} |