react-native-tvos 0.64.2-4 → 0.64.2-5
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/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
- package/README.md +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactAndroidHWInputDeviceHelper.java +30 -2
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +32 -0
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h.bak +32 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +149 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp.bak +149 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +237 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.h.bak +237 -0
- package/ReactCommon/react/renderer/components/rncore/Props.cpp +218 -0
- package/ReactCommon/react/renderer/components/rncore/Props.cpp.bak +218 -0
- package/ReactCommon/react/renderer/components/rncore/Props.h +576 -0
- package/ReactCommon/react/renderer/components/rncore/Props.h.bak +576 -0
- package/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +273 -0
- package/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h.bak +273 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +29 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp.bak +29 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +126 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h.bak +126 -0
- package/android/com/facebook/react/react-native/{0.64.2-4/react-native-0.64.2-4-sources.jar → 0.64.2-5/react-native-0.64.2-5-sources.jar} +0 -0
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5-sources.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5-sources.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5.aar +0 -0
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.64.2-4/react-native-0.64.2-4.pom → 0.64.2-5/react-native-0.64.2-5.pom} +1 -1
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.2-5/react-native-0.64.2-5.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +3 -3
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/local-cli/cli.js +0 -0
- package/package.json +1 -1
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj.rej +1034 -0
- package/template/package.json +1 -1
- package/Libraries/.npmignore +0 -1
- package/Libraries/Components/AppleTV/TVFocusGuideView.js.orig +0 -61
- package/ReactAndroid/.npmignore +0 -3
- package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
- package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4.aar +0 -0
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2-4/react-native-0.64.2-4.pom.sha1 +0 -1
- package/third-party-podspecs/hermes-engine.podspec +0 -45
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateComponentHObjCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
#import <React/RCTDefines.h>
|
|
12
|
+
#import <React/RCTLog.h>
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
@protocol RCTActivityIndicatorViewViewProtocol <NSObject>
|
|
17
|
+
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
@protocol RCTDatePickerViewProtocol <NSObject>
|
|
21
|
+
- (void)setNativeDate:(float)date;
|
|
22
|
+
@end
|
|
23
|
+
|
|
24
|
+
RCT_EXTERN inline void RCTDatePickerHandleCommand(
|
|
25
|
+
id<RCTDatePickerViewProtocol> componentView,
|
|
26
|
+
NSString const *commandName,
|
|
27
|
+
NSArray const *args)
|
|
28
|
+
{
|
|
29
|
+
if ([commandName isEqualToString:@"setNativeDate"]) {
|
|
30
|
+
#if RCT_DEBUG
|
|
31
|
+
if ([args count] != 1) {
|
|
32
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"DatePicker", commandName, (int)[args count], 1);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
NSObject *arg0 = args[0];
|
|
38
|
+
#if RCT_DEBUG
|
|
39
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"float", @"DatePicker", commandName, @"1st")) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
#endif
|
|
43
|
+
float date = [(NSNumber *)arg0 floatValue];
|
|
44
|
+
|
|
45
|
+
[componentView setNativeDate:date];
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#if RCT_DEBUG
|
|
50
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"DatePicker", commandName);
|
|
51
|
+
#endif
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@protocol RCTAndroidDrawerLayoutViewProtocol <NSObject>
|
|
55
|
+
- (void)openDrawer;
|
|
56
|
+
- (void)closeDrawer;
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
RCT_EXTERN inline void RCTAndroidDrawerLayoutHandleCommand(
|
|
60
|
+
id<RCTAndroidDrawerLayoutViewProtocol> componentView,
|
|
61
|
+
NSString const *commandName,
|
|
62
|
+
NSArray const *args)
|
|
63
|
+
{
|
|
64
|
+
if ([commandName isEqualToString:@"openDrawer"]) {
|
|
65
|
+
#if RCT_DEBUG
|
|
66
|
+
if ([args count] != 0) {
|
|
67
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
#endif
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
[componentView openDrawer];
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if ([commandName isEqualToString:@"closeDrawer"]) {
|
|
79
|
+
#if RCT_DEBUG
|
|
80
|
+
if ([args count] != 0) {
|
|
81
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
[componentView closeDrawer];
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#if RCT_DEBUG
|
|
93
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidDrawerLayout", commandName);
|
|
94
|
+
#endif
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@protocol RCTRCTMaskedViewViewProtocol <NSObject>
|
|
98
|
+
|
|
99
|
+
@end
|
|
100
|
+
|
|
101
|
+
@protocol RCTAndroidProgressBarViewProtocol <NSObject>
|
|
102
|
+
|
|
103
|
+
@end
|
|
104
|
+
|
|
105
|
+
@protocol RCTRCTProgressViewViewProtocol <NSObject>
|
|
106
|
+
|
|
107
|
+
@end
|
|
108
|
+
|
|
109
|
+
@protocol RCTAndroidSwipeRefreshLayoutViewProtocol <NSObject>
|
|
110
|
+
- (void)setNativeRefreshing:(BOOL)value;
|
|
111
|
+
@end
|
|
112
|
+
|
|
113
|
+
RCT_EXTERN inline void RCTAndroidSwipeRefreshLayoutHandleCommand(
|
|
114
|
+
id<RCTAndroidSwipeRefreshLayoutViewProtocol> componentView,
|
|
115
|
+
NSString const *commandName,
|
|
116
|
+
NSArray const *args)
|
|
117
|
+
{
|
|
118
|
+
if ([commandName isEqualToString:@"setNativeRefreshing"]) {
|
|
119
|
+
#if RCT_DEBUG
|
|
120
|
+
if ([args count] != 1) {
|
|
121
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwipeRefreshLayout", commandName, (int)[args count], 1);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
#endif
|
|
125
|
+
|
|
126
|
+
NSObject *arg0 = args[0];
|
|
127
|
+
#if RCT_DEBUG
|
|
128
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwipeRefreshLayout", commandName, @"1st")) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
#endif
|
|
132
|
+
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
133
|
+
|
|
134
|
+
[componentView setNativeRefreshing:value];
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#if RCT_DEBUG
|
|
139
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwipeRefreshLayout", commandName);
|
|
140
|
+
#endif
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@protocol RCTPullToRefreshViewViewProtocol <NSObject>
|
|
144
|
+
- (void)setNativeRefreshing:(BOOL)refreshing;
|
|
145
|
+
@end
|
|
146
|
+
|
|
147
|
+
RCT_EXTERN inline void RCTPullToRefreshViewHandleCommand(
|
|
148
|
+
id<RCTPullToRefreshViewViewProtocol> componentView,
|
|
149
|
+
NSString const *commandName,
|
|
150
|
+
NSArray const *args)
|
|
151
|
+
{
|
|
152
|
+
if ([commandName isEqualToString:@"setNativeRefreshing"]) {
|
|
153
|
+
#if RCT_DEBUG
|
|
154
|
+
if ([args count] != 1) {
|
|
155
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"PullToRefreshView", commandName, (int)[args count], 1);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
#endif
|
|
159
|
+
|
|
160
|
+
NSObject *arg0 = args[0];
|
|
161
|
+
#if RCT_DEBUG
|
|
162
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"PullToRefreshView", commandName, @"1st")) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
#endif
|
|
166
|
+
BOOL refreshing = [(NSNumber *)arg0 boolValue];
|
|
167
|
+
|
|
168
|
+
[componentView setNativeRefreshing:refreshing];
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#if RCT_DEBUG
|
|
173
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"PullToRefreshView", commandName);
|
|
174
|
+
#endif
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@protocol RCTSafeAreaViewViewProtocol <NSObject>
|
|
178
|
+
|
|
179
|
+
@end
|
|
180
|
+
|
|
181
|
+
@protocol RCTAndroidHorizontalScrollContentViewViewProtocol <NSObject>
|
|
182
|
+
|
|
183
|
+
@end
|
|
184
|
+
|
|
185
|
+
@protocol RCTRCTSegmentedControlViewProtocol <NSObject>
|
|
186
|
+
|
|
187
|
+
@end
|
|
188
|
+
|
|
189
|
+
@protocol RCTSliderViewProtocol <NSObject>
|
|
190
|
+
|
|
191
|
+
@end
|
|
192
|
+
|
|
193
|
+
@protocol RCTAndroidSwitchViewProtocol <NSObject>
|
|
194
|
+
- (void)setNativeValue:(BOOL)value;
|
|
195
|
+
@end
|
|
196
|
+
|
|
197
|
+
RCT_EXTERN inline void RCTAndroidSwitchHandleCommand(
|
|
198
|
+
id<RCTAndroidSwitchViewProtocol> componentView,
|
|
199
|
+
NSString const *commandName,
|
|
200
|
+
NSArray const *args)
|
|
201
|
+
{
|
|
202
|
+
if ([commandName isEqualToString:@"setNativeValue"]) {
|
|
203
|
+
#if RCT_DEBUG
|
|
204
|
+
if ([args count] != 1) {
|
|
205
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwitch", commandName, (int)[args count], 1);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
#endif
|
|
209
|
+
|
|
210
|
+
NSObject *arg0 = args[0];
|
|
211
|
+
#if RCT_DEBUG
|
|
212
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwitch", commandName, @"1st")) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
#endif
|
|
216
|
+
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
217
|
+
|
|
218
|
+
[componentView setNativeValue:value];
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
#if RCT_DEBUG
|
|
223
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwitch", commandName);
|
|
224
|
+
#endif
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@protocol RCTSwitchViewProtocol <NSObject>
|
|
228
|
+
- (void)setValue:(BOOL)value;
|
|
229
|
+
@end
|
|
230
|
+
|
|
231
|
+
RCT_EXTERN inline void RCTSwitchHandleCommand(
|
|
232
|
+
id<RCTSwitchViewProtocol> componentView,
|
|
233
|
+
NSString const *commandName,
|
|
234
|
+
NSArray const *args)
|
|
235
|
+
{
|
|
236
|
+
if ([commandName isEqualToString:@"setValue"]) {
|
|
237
|
+
#if RCT_DEBUG
|
|
238
|
+
if ([args count] != 1) {
|
|
239
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"Switch", commandName, (int)[args count], 1);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
#endif
|
|
243
|
+
|
|
244
|
+
NSObject *arg0 = args[0];
|
|
245
|
+
#if RCT_DEBUG
|
|
246
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"Switch", commandName, @"1st")) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
#endif
|
|
250
|
+
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
251
|
+
|
|
252
|
+
[componentView setValue:value];
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#if RCT_DEBUG
|
|
257
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"Switch", commandName);
|
|
258
|
+
#endif
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@protocol RCTInputAccessoryViewProtocol <NSObject>
|
|
262
|
+
|
|
263
|
+
@end
|
|
264
|
+
|
|
265
|
+
@protocol RCTUnimplementedNativeViewViewProtocol <NSObject>
|
|
266
|
+
|
|
267
|
+
@end
|
|
268
|
+
|
|
269
|
+
@protocol RCTModalHostViewViewProtocol <NSObject>
|
|
270
|
+
|
|
271
|
+
@end
|
|
272
|
+
|
|
273
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateComponentHObjCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
#import <React/RCTDefines.h>
|
|
12
|
+
#import <React/RCTLog.h>
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
@protocol RCTActivityIndicatorViewViewProtocol <NSObject>
|
|
17
|
+
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
@protocol RCTDatePickerViewProtocol <NSObject>
|
|
21
|
+
- (void)setNativeDate:(float)date;
|
|
22
|
+
@end
|
|
23
|
+
|
|
24
|
+
RCT_EXTERN inline void RCTDatePickerHandleCommand(
|
|
25
|
+
id<RCTDatePickerViewProtocol> componentView,
|
|
26
|
+
NSString const *commandName,
|
|
27
|
+
NSArray const *args)
|
|
28
|
+
{
|
|
29
|
+
if ([commandName isEqualToString:@"setNativeDate"]) {
|
|
30
|
+
#if RCT_DEBUG
|
|
31
|
+
if ([args count] != 1) {
|
|
32
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"DatePicker", commandName, (int)[args count], 1);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
NSObject *arg0 = args[0];
|
|
38
|
+
#if RCT_DEBUG
|
|
39
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"float", @"DatePicker", commandName, @"1st")) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
#endif
|
|
43
|
+
float date = [(NSNumber *)arg0 floatValue];
|
|
44
|
+
|
|
45
|
+
[componentView setNativeDate:date];
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#if RCT_DEBUG
|
|
50
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"DatePicker", commandName);
|
|
51
|
+
#endif
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@protocol RCTAndroidDrawerLayoutViewProtocol <NSObject>
|
|
55
|
+
- (void)openDrawer;
|
|
56
|
+
- (void)closeDrawer;
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
RCT_EXTERN inline void RCTAndroidDrawerLayoutHandleCommand(
|
|
60
|
+
id<RCTAndroidDrawerLayoutViewProtocol> componentView,
|
|
61
|
+
NSString const *commandName,
|
|
62
|
+
NSArray const *args)
|
|
63
|
+
{
|
|
64
|
+
if ([commandName isEqualToString:@"openDrawer"]) {
|
|
65
|
+
#if RCT_DEBUG
|
|
66
|
+
if ([args count] != 0) {
|
|
67
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
#endif
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
[componentView openDrawer];
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if ([commandName isEqualToString:@"closeDrawer"]) {
|
|
79
|
+
#if RCT_DEBUG
|
|
80
|
+
if ([args count] != 0) {
|
|
81
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
[componentView closeDrawer];
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#if RCT_DEBUG
|
|
93
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidDrawerLayout", commandName);
|
|
94
|
+
#endif
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@protocol RCTRCTMaskedViewViewProtocol <NSObject>
|
|
98
|
+
|
|
99
|
+
@end
|
|
100
|
+
|
|
101
|
+
@protocol RCTAndroidProgressBarViewProtocol <NSObject>
|
|
102
|
+
|
|
103
|
+
@end
|
|
104
|
+
|
|
105
|
+
@protocol RCTRCTProgressViewViewProtocol <NSObject>
|
|
106
|
+
|
|
107
|
+
@end
|
|
108
|
+
|
|
109
|
+
@protocol RCTAndroidSwipeRefreshLayoutViewProtocol <NSObject>
|
|
110
|
+
- (void)setNativeRefreshing:(BOOL)value;
|
|
111
|
+
@end
|
|
112
|
+
|
|
113
|
+
RCT_EXTERN inline void RCTAndroidSwipeRefreshLayoutHandleCommand(
|
|
114
|
+
id<RCTAndroidSwipeRefreshLayoutViewProtocol> componentView,
|
|
115
|
+
NSString const *commandName,
|
|
116
|
+
NSArray const *args)
|
|
117
|
+
{
|
|
118
|
+
if ([commandName isEqualToString:@"setNativeRefreshing"]) {
|
|
119
|
+
#if RCT_DEBUG
|
|
120
|
+
if ([args count] != 1) {
|
|
121
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwipeRefreshLayout", commandName, (int)[args count], 1);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
#endif
|
|
125
|
+
|
|
126
|
+
NSObject *arg0 = args[0];
|
|
127
|
+
#if RCT_DEBUG
|
|
128
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwipeRefreshLayout", commandName, @"1st")) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
#endif
|
|
132
|
+
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
133
|
+
|
|
134
|
+
[componentView setNativeRefreshing:value];
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#if RCT_DEBUG
|
|
139
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwipeRefreshLayout", commandName);
|
|
140
|
+
#endif
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@protocol RCTPullToRefreshViewViewProtocol <NSObject>
|
|
144
|
+
- (void)setNativeRefreshing:(BOOL)refreshing;
|
|
145
|
+
@end
|
|
146
|
+
|
|
147
|
+
RCT_EXTERN inline void RCTPullToRefreshViewHandleCommand(
|
|
148
|
+
id<RCTPullToRefreshViewViewProtocol> componentView,
|
|
149
|
+
NSString const *commandName,
|
|
150
|
+
NSArray const *args)
|
|
151
|
+
{
|
|
152
|
+
if ([commandName isEqualToString:@"setNativeRefreshing"]) {
|
|
153
|
+
#if RCT_DEBUG
|
|
154
|
+
if ([args count] != 1) {
|
|
155
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"PullToRefreshView", commandName, (int)[args count], 1);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
#endif
|
|
159
|
+
|
|
160
|
+
NSObject *arg0 = args[0];
|
|
161
|
+
#if RCT_DEBUG
|
|
162
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"PullToRefreshView", commandName, @"1st")) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
#endif
|
|
166
|
+
BOOL refreshing = [(NSNumber *)arg0 boolValue];
|
|
167
|
+
|
|
168
|
+
[componentView setNativeRefreshing:refreshing];
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#if RCT_DEBUG
|
|
173
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"PullToRefreshView", commandName);
|
|
174
|
+
#endif
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@protocol RCTSafeAreaViewViewProtocol <NSObject>
|
|
178
|
+
|
|
179
|
+
@end
|
|
180
|
+
|
|
181
|
+
@protocol RCTAndroidHorizontalScrollContentViewViewProtocol <NSObject>
|
|
182
|
+
|
|
183
|
+
@end
|
|
184
|
+
|
|
185
|
+
@protocol RCTRCTSegmentedControlViewProtocol <NSObject>
|
|
186
|
+
|
|
187
|
+
@end
|
|
188
|
+
|
|
189
|
+
@protocol RCTSliderViewProtocol <NSObject>
|
|
190
|
+
|
|
191
|
+
@end
|
|
192
|
+
|
|
193
|
+
@protocol RCTAndroidSwitchViewProtocol <NSObject>
|
|
194
|
+
- (void)setNativeValue:(BOOL)value;
|
|
195
|
+
@end
|
|
196
|
+
|
|
197
|
+
RCT_EXTERN inline void RCTAndroidSwitchHandleCommand(
|
|
198
|
+
id<RCTAndroidSwitchViewProtocol> componentView,
|
|
199
|
+
NSString const *commandName,
|
|
200
|
+
NSArray const *args)
|
|
201
|
+
{
|
|
202
|
+
if ([commandName isEqualToString:@"setNativeValue"]) {
|
|
203
|
+
#if RCT_DEBUG
|
|
204
|
+
if ([args count] != 1) {
|
|
205
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwitch", commandName, (int)[args count], 1);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
#endif
|
|
209
|
+
|
|
210
|
+
NSObject *arg0 = args[0];
|
|
211
|
+
#if RCT_DEBUG
|
|
212
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwitch", commandName, @"1st")) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
#endif
|
|
216
|
+
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
217
|
+
|
|
218
|
+
[componentView setNativeValue:value];
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
#if RCT_DEBUG
|
|
223
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwitch", commandName);
|
|
224
|
+
#endif
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@protocol RCTSwitchViewProtocol <NSObject>
|
|
228
|
+
- (void)setValue:(BOOL)value;
|
|
229
|
+
@end
|
|
230
|
+
|
|
231
|
+
RCT_EXTERN inline void RCTSwitchHandleCommand(
|
|
232
|
+
id<RCTSwitchViewProtocol> componentView,
|
|
233
|
+
NSString const *commandName,
|
|
234
|
+
NSArray const *args)
|
|
235
|
+
{
|
|
236
|
+
if ([commandName isEqualToString:@"setValue"]) {
|
|
237
|
+
#if RCT_DEBUG
|
|
238
|
+
if ([args count] != 1) {
|
|
239
|
+
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"Switch", commandName, (int)[args count], 1);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
#endif
|
|
243
|
+
|
|
244
|
+
NSObject *arg0 = args[0];
|
|
245
|
+
#if RCT_DEBUG
|
|
246
|
+
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"Switch", commandName, @"1st")) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
#endif
|
|
250
|
+
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
251
|
+
|
|
252
|
+
[componentView setValue:value];
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#if RCT_DEBUG
|
|
257
|
+
RCTLogError(@"%@ received command %@, which is not a supported command.", @"Switch", commandName);
|
|
258
|
+
#endif
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@protocol RCTInputAccessoryViewProtocol <NSObject>
|
|
262
|
+
|
|
263
|
+
@end
|
|
264
|
+
|
|
265
|
+
@protocol RCTUnimplementedNativeViewViewProtocol <NSObject>
|
|
266
|
+
|
|
267
|
+
@end
|
|
268
|
+
|
|
269
|
+
@protocol RCTModalHostViewViewProtocol <NSObject>
|
|
270
|
+
|
|
271
|
+
@end
|
|
272
|
+
|
|
273
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateShadowNodeCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include <react/renderer/components/rncore/ShadowNodes.h>
|
|
12
|
+
|
|
13
|
+
namespace facebook {
|
|
14
|
+
namespace react {
|
|
15
|
+
|
|
16
|
+
extern const char ActivityIndicatorViewComponentName[] = "ActivityIndicatorView";
|
|
17
|
+
extern const char DatePickerComponentName[] = "DatePicker";
|
|
18
|
+
extern const char AndroidDrawerLayoutComponentName[] = "AndroidDrawerLayout";
|
|
19
|
+
extern const char RCTMaskedViewComponentName[] = "RCTMaskedView";
|
|
20
|
+
extern const char RCTProgressViewComponentName[] = "RCTProgressView";
|
|
21
|
+
extern const char AndroidSwipeRefreshLayoutComponentName[] = "AndroidSwipeRefreshLayout";
|
|
22
|
+
extern const char PullToRefreshViewComponentName[] = "PullToRefreshView";
|
|
23
|
+
extern const char AndroidHorizontalScrollContentViewComponentName[] = "AndroidHorizontalScrollContentView";
|
|
24
|
+
extern const char RCTSegmentedControlComponentName[] = "RCTSegmentedControl";
|
|
25
|
+
extern const char SwitchComponentName[] = "Switch";
|
|
26
|
+
extern const char UnimplementedNativeViewComponentName[] = "UnimplementedNativeView";
|
|
27
|
+
|
|
28
|
+
} // namespace react
|
|
29
|
+
} // namespace facebook
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateShadowNodeCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include <react/renderer/components/FBReactNativeSpec/ShadowNodes.h>
|
|
12
|
+
|
|
13
|
+
namespace facebook {
|
|
14
|
+
namespace react {
|
|
15
|
+
|
|
16
|
+
extern const char ActivityIndicatorViewComponentName[] = "ActivityIndicatorView";
|
|
17
|
+
extern const char DatePickerComponentName[] = "DatePicker";
|
|
18
|
+
extern const char AndroidDrawerLayoutComponentName[] = "AndroidDrawerLayout";
|
|
19
|
+
extern const char RCTMaskedViewComponentName[] = "RCTMaskedView";
|
|
20
|
+
extern const char RCTProgressViewComponentName[] = "RCTProgressView";
|
|
21
|
+
extern const char AndroidSwipeRefreshLayoutComponentName[] = "AndroidSwipeRefreshLayout";
|
|
22
|
+
extern const char PullToRefreshViewComponentName[] = "PullToRefreshView";
|
|
23
|
+
extern const char AndroidHorizontalScrollContentViewComponentName[] = "AndroidHorizontalScrollContentView";
|
|
24
|
+
extern const char RCTSegmentedControlComponentName[] = "RCTSegmentedControl";
|
|
25
|
+
extern const char SwitchComponentName[] = "Switch";
|
|
26
|
+
extern const char UnimplementedNativeViewComponentName[] = "UnimplementedNativeView";
|
|
27
|
+
|
|
28
|
+
} // namespace react
|
|
29
|
+
} // namespace facebook
|