react-native-webview-bootpay 11.22.82 → 11.22.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -1
- package/android/gradle.properties +6 -6
- package/apple/BPCWebView.m +3 -1
- package/lib/WebViewTypes.d.ts +3 -3
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -28,7 +28,7 @@ buildscript {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
def getExtOrIntegerDefault(name) {
|
|
31
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['
|
|
31
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['BootpayRNWebView' + name]).toInteger()
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
apply plugin: 'com.android.library'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
BootpayRNWebView_kotlinVersion=1.3.50
|
|
2
|
+
BootpayRNWebView_webkitVersion=1.4.0
|
|
3
|
+
BootpayRNWebView_compileSdkVersion=29
|
|
4
|
+
BootpayRNWebView_buildToolsVersion=29.0.3
|
|
5
|
+
BootpayRNWebView_targetSdkVersion=28
|
|
6
|
+
BootpayRNWebView_minSdkVersion=21
|
package/apple/BPCWebView.m
CHANGED
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
|
|
20
20
|
static NSTimer *keyboardTimer;
|
|
21
21
|
static NSString *const HistoryShimName = @"ReactNativeHistoryShim";
|
|
22
|
-
static NSString *const MessageHandlerName = @"ReactNativeWebView";
|
|
22
|
+
// static NSString *const MessageHandlerName = @"ReactNativeWebView";
|
|
23
|
+
static NSString *const MessageHandlerName = @"BootpayRNWebView";
|
|
24
|
+
|
|
23
25
|
static NSURLCredential* clientAuthenticationCredential;
|
|
24
26
|
static NSDictionary* customCertificatesForHost;
|
|
25
27
|
|
package/lib/WebViewTypes.d.ts
CHANGED
|
@@ -575,7 +575,7 @@ export interface IOSWebViewProps extends WebViewSharedProps {
|
|
|
575
575
|
* if you require to send message to App , webpage has to explicitly call webkit message handler
|
|
576
576
|
* and receive it on `onMessage` handler on react native side
|
|
577
577
|
* @example
|
|
578
|
-
* window.webkit.messageHandlers.
|
|
578
|
+
* window.webkit.messageHandlers.BootpayRNWebView.postMessage("hello apple pay")
|
|
579
579
|
* @platform ios
|
|
580
580
|
* The default value is false.
|
|
581
581
|
*/
|
|
@@ -982,10 +982,10 @@ export interface WebViewSharedProps extends ViewProps {
|
|
|
982
982
|
*/
|
|
983
983
|
onNavigationStateChange?: (event: WebViewNavigation) => void;
|
|
984
984
|
/**
|
|
985
|
-
* Function that is invoked when the webview calls `window.
|
|
985
|
+
* Function that is invoked when the webview calls `window.BootpayRNWebView.postMessage`.
|
|
986
986
|
* Setting this property will inject this global into your webview.
|
|
987
987
|
*
|
|
988
|
-
* `window.
|
|
988
|
+
* `window.BootpayRNWebView.postMessage` accepts one argument, `data`, which will be
|
|
989
989
|
* available on the event object, `event.nativeEvent.data`. `data` must be a string.
|
|
990
990
|
*/
|
|
991
991
|
onMessage?: (event: WebViewMessageEvent) => void;
|
package/package.json
CHANGED