react-native-webview-bootpay 13.13.44 → 13.13.46

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.
@@ -12,7 +12,7 @@
12
12
 
13
13
  using namespace facebook::react;
14
14
 
15
- auto BPStringToOnShouldStartLoadWithRequestNavigationTypeEnum(std::string value) {
15
+ auto BPCStringToOnShouldStartLoadWithRequestNavigationTypeEnum(std::string value) {
16
16
  if (value == "click") return BPCWebViewEventEmitter::OnShouldStartLoadWithRequestNavigationType::Click;
17
17
  if (value == "formsubmit") return BPCWebViewEventEmitter::OnShouldStartLoadWithRequestNavigationType::Formsubmit;
18
18
  if (value == "backforward") return BPCWebViewEventEmitter::OnShouldStartLoadWithRequestNavigationType::Backforward;
@@ -21,7 +21,7 @@ auto BPStringToOnShouldStartLoadWithRequestNavigationTypeEnum(std::string value)
21
21
  return BPCWebViewEventEmitter::OnShouldStartLoadWithRequestNavigationType::Other;
22
22
  }
23
23
 
24
- auto BPStringToOnLoadingStartNavigationTypeEnum(std::string value) {
24
+ auto BPCStringToOnLoadingStartNavigationTypeEnum(std::string value) {
25
25
  if (value == "click") return BPCWebViewEventEmitter::OnLoadingStartNavigationType::Click;
26
26
  if (value == "formsubmit") return BPCWebViewEventEmitter::OnLoadingStartNavigationType::Formsubmit;
27
27
  if (value == "backforward") return BPCWebViewEventEmitter::OnLoadingStartNavigationType::Backforward;
@@ -30,7 +30,7 @@ auto BPStringToOnLoadingStartNavigationTypeEnum(std::string value) {
30
30
  return BPCWebViewEventEmitter::OnLoadingStartNavigationType::Other;
31
31
  }
32
32
 
33
- auto BPStringToOnLoadingFinishNavigationTypeEnum(std::string value) {
33
+ auto BPCStringToOnLoadingFinishNavigationTypeEnum(std::string value) {
34
34
  if (value == "click") return BPCWebViewEventEmitter::OnLoadingFinishNavigationType::Click;
35
35
  if (value == "formsubmit") return BPCWebViewEventEmitter::OnLoadingFinishNavigationType::Formsubmit;
36
36
  if (value == "backforward") return BPCWebViewEventEmitter::OnLoadingFinishNavigationType::Backforward;
@@ -81,7 +81,7 @@ auto BPStringToOnLoadingFinishNavigationTypeEnum(std::string value) {
81
81
  .url = std::string([[dictionary valueForKey:@"url"] UTF8String]),
82
82
  .lockIdentifier = [[dictionary valueForKey:@"lockIdentifier"] doubleValue],
83
83
  .title = std::string([[dictionary valueForKey:@"title"] UTF8String]),
84
- .navigationType = BPStringToOnShouldStartLoadWithRequestNavigationTypeEnum(std::string([[dictionary valueForKey:@"navigationType"] UTF8String])),
84
+ .navigationType = BPCStringToOnShouldStartLoadWithRequestNavigationTypeEnum(std::string([[dictionary valueForKey:@"navigationType"] UTF8String])),
85
85
  .canGoBack = static_cast<bool>([[dictionary valueForKey:@"canGoBack"] boolValue]),
86
86
  .canGoForward = static_cast<bool>([[dictionary valueForKey:@"canGoForward"] boolValue]),
87
87
  .isTopFrame = static_cast<bool>([[dictionary valueForKey:@"isTopFrame"] boolValue]),
@@ -98,7 +98,7 @@ auto BPStringToOnLoadingFinishNavigationTypeEnum(std::string value) {
98
98
  .url = std::string([[dictionary valueForKey:@"url"] UTF8String]),
99
99
  .lockIdentifier = [[dictionary valueForKey:@"lockIdentifier"] doubleValue],
100
100
  .title = std::string([[dictionary valueForKey:@"title"] UTF8String]),
101
- .navigationType = BPStringToOnLoadingStartNavigationTypeEnum(std::string([[dictionary valueForKey:@"navigationType"] UTF8String])),
101
+ .navigationType = BPCStringToOnLoadingStartNavigationTypeEnum(std::string([[dictionary valueForKey:@"navigationType"] UTF8String])),
102
102
  .canGoBack = static_cast<bool>([[dictionary valueForKey:@"canGoBack"] boolValue]),
103
103
  .canGoForward = static_cast<bool>([[dictionary valueForKey:@"canGoForward"] boolValue]),
104
104
  .loading = static_cast<bool>([[dictionary valueForKey:@"loading"] boolValue]),
@@ -146,7 +146,7 @@ auto BPStringToOnLoadingFinishNavigationTypeEnum(std::string value) {
146
146
  .url = std::string([[dictionary valueForKey:@"url"] UTF8String]),
147
147
  .lockIdentifier = [[dictionary valueForKey:@"lockIdentifier"] doubleValue],
148
148
  .title = std::string([[dictionary valueForKey:@"title"] UTF8String]),
149
- .navigationType = BPStringToOnLoadingFinishNavigationTypeEnum(std::string([[dictionary valueForKey:@"navigationType"] UTF8String], [[dictionary valueForKey:@"navigationType"] lengthOfBytesUsingEncoding:NSUTF8StringEncoding])),
149
+ .navigationType = BPCStringToOnLoadingFinishNavigationTypeEnum(std::string([[dictionary valueForKey:@"navigationType"] UTF8String], [[dictionary valueForKey:@"navigationType"] lengthOfBytesUsingEncoding:NSUTF8StringEncoding])),
150
150
  .canGoBack = static_cast<bool>([[dictionary valueForKey:@"canGoBack"] boolValue]),
151
151
  .canGoForward = static_cast<bool>([[dictionary valueForKey:@"canGoForward"] boolValue]),
152
152
  .loading = static_cast<bool>([[dictionary valueForKey:@"loading"] boolValue]),
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "Thibault Malbranche <malbranche.thibault@gmail.com>"
11
11
  ],
12
12
  "license": "MIT",
13
- "version": "13.13.44",
13
+ "version": "13.13.46",
14
14
  "homepage": "https://github.com/react-native-webview/react-native-webview#readme",
15
15
  "scripts": {
16
16
  "android": "react-native run-android",