@pinwheel/react-native-pinwheel 3.6.0 → 3.6.1
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.
|
@@ -89,7 +89,7 @@ class Pinwheel : FrameLayout {
|
|
|
89
89
|
Handler(Looper.getMainLooper()).post {
|
|
90
90
|
if (this.pinwheelFragment == null) {
|
|
91
91
|
this.token?.let {
|
|
92
|
-
val pinwheelFragment = PinwheelFragment.newInstanceWithAdvancedOptions(it, "react native", "3.6.
|
|
92
|
+
val pinwheelFragment = PinwheelFragment.newInstanceWithAdvancedOptions(it, "react native", "3.6.1", getReactNativeVersion(), this.handleInsets, this.useDarkMode)
|
|
93
93
|
pinwheelEventListener?.let { listener ->
|
|
94
94
|
pinwheelFragment.pinwheelEventListener = listener
|
|
95
95
|
}
|
|
@@ -8,11 +8,24 @@
|
|
|
8
8
|
|
|
9
9
|
@implementation RTNPinwheelManager
|
|
10
10
|
|
|
11
|
-
#ifdef RCT_NEW_ARCH_ENABLED
|
|
12
|
-
RCT_EXPORT_MODULE(RTNPinwheelView)
|
|
13
|
-
#else
|
|
14
11
|
RCT_EXPORT_MODULE(RTNPinwheel)
|
|
15
|
-
|
|
12
|
+
|
|
13
|
+
- (UIView *)view
|
|
14
|
+
{
|
|
15
|
+
return [[RTNPinwheelView alloc] init];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
RCT_EXPORT_VIEW_PROPERTY(token, NSString);
|
|
19
|
+
RCT_EXPORT_VIEW_PROPERTY(useDarkMode, BOOL);
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
@interface RTNPinwheelViewManager : RCTViewManager
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
@implementation RTNPinwheelViewManager
|
|
27
|
+
|
|
28
|
+
RCT_EXPORT_MODULE(RTNPinwheelView)
|
|
16
29
|
|
|
17
30
|
- (UIView *)view
|
|
18
31
|
{
|
package/ios/RTNPinwheelView.mm
CHANGED
|
@@ -74,7 +74,7 @@ using namespace facebook::react;
|
|
|
74
74
|
[[PinwheelWrapperVC alloc] initWithToken:self.token
|
|
75
75
|
delegate:self
|
|
76
76
|
sdk:@"react native"
|
|
77
|
-
version:@"3.6.
|
|
77
|
+
version:@"3.6.1"
|
|
78
78
|
useDarkMode:self.useDarkMode
|
|
79
79
|
useAppBoundDomains:NO
|
|
80
80
|
useAppBoundDomainsForNativeLink:NO];
|
|
@@ -237,7 +237,7 @@ Class<RCTComponentViewProtocol> RTNPinwheelCls(void) {
|
|
|
237
237
|
[[PinwheelWrapperVC alloc] initWithToken:self.token
|
|
238
238
|
delegate:self
|
|
239
239
|
sdk:@"react native"
|
|
240
|
-
version:@"3.6.
|
|
240
|
+
version:@"3.6.1"
|
|
241
241
|
useDarkMode:self.useDarkMode
|
|
242
242
|
useAppBoundDomains:NO
|
|
243
243
|
useAppBoundDomainsForNativeLink:NO];
|