react-native-tvos 0.73.1-0 → 0.73.1-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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
- package/React/Fabric/RCTThirdPartyFabricComponentsProvider.h +0 -33
- package/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm +0 -32
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +0 -29
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +0 -134
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +0 -171
- package/ReactCommon/react/renderer/components/rncore/Props.cpp +0 -157
- package/ReactCommon/react/renderer/components/rncore/Props.h +0 -394
- package/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +0 -257
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +0 -26
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +0 -111
- package/ReactCommon/react/renderer/components/rncore/States.cpp +0 -18
- package/ReactCommon/react/renderer/components/rncore/States.h +0 -141
|
@@ -1,394 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GeneratePropsH.js
|
|
9
|
-
*/
|
|
10
|
-
#pragma once
|
|
11
|
-
|
|
12
|
-
#include <cinttypes>
|
|
13
|
-
#include <react/renderer/components/view/ViewProps.h>
|
|
14
|
-
#include <react/renderer/core/PropsParserContext.h>
|
|
15
|
-
#include <react/renderer/graphics/Color.h>
|
|
16
|
-
#include <vector>
|
|
17
|
-
|
|
18
|
-
namespace facebook {
|
|
19
|
-
namespace react {
|
|
20
|
-
|
|
21
|
-
enum class ActivityIndicatorViewSize { Small, Large };
|
|
22
|
-
|
|
23
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ActivityIndicatorViewSize &result) {
|
|
24
|
-
auto string = (std::string)value;
|
|
25
|
-
if (string == "small") { result = ActivityIndicatorViewSize::Small; return; }
|
|
26
|
-
if (string == "large") { result = ActivityIndicatorViewSize::Large; return; }
|
|
27
|
-
abort();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static inline std::string toString(const ActivityIndicatorViewSize &value) {
|
|
31
|
-
switch (value) {
|
|
32
|
-
case ActivityIndicatorViewSize::Small: return "small";
|
|
33
|
-
case ActivityIndicatorViewSize::Large: return "large";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
class ActivityIndicatorViewProps final : public ViewProps {
|
|
38
|
-
public:
|
|
39
|
-
ActivityIndicatorViewProps() = default;
|
|
40
|
-
ActivityIndicatorViewProps(const PropsParserContext& context, const ActivityIndicatorViewProps &sourceProps, const RawProps &rawProps);
|
|
41
|
-
|
|
42
|
-
#pragma mark - Props
|
|
43
|
-
|
|
44
|
-
bool hidesWhenStopped{false};
|
|
45
|
-
bool animating{false};
|
|
46
|
-
SharedColor color{};
|
|
47
|
-
ActivityIndicatorViewSize size{ActivityIndicatorViewSize::Small};
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
enum class AndroidDrawerLayoutKeyboardDismissMode { None, OnDrag };
|
|
51
|
-
|
|
52
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutKeyboardDismissMode &result) {
|
|
53
|
-
auto string = (std::string)value;
|
|
54
|
-
if (string == "none") { result = AndroidDrawerLayoutKeyboardDismissMode::None; return; }
|
|
55
|
-
if (string == "on-drag") { result = AndroidDrawerLayoutKeyboardDismissMode::OnDrag; return; }
|
|
56
|
-
abort();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
static inline std::string toString(const AndroidDrawerLayoutKeyboardDismissMode &value) {
|
|
60
|
-
switch (value) {
|
|
61
|
-
case AndroidDrawerLayoutKeyboardDismissMode::None: return "none";
|
|
62
|
-
case AndroidDrawerLayoutKeyboardDismissMode::OnDrag: return "on-drag";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
enum class AndroidDrawerLayoutDrawerPosition { Left, Right };
|
|
66
|
-
|
|
67
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerPosition &result) {
|
|
68
|
-
auto string = (std::string)value;
|
|
69
|
-
if (string == "left") { result = AndroidDrawerLayoutDrawerPosition::Left; return; }
|
|
70
|
-
if (string == "right") { result = AndroidDrawerLayoutDrawerPosition::Right; return; }
|
|
71
|
-
abort();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
static inline std::string toString(const AndroidDrawerLayoutDrawerPosition &value) {
|
|
75
|
-
switch (value) {
|
|
76
|
-
case AndroidDrawerLayoutDrawerPosition::Left: return "left";
|
|
77
|
-
case AndroidDrawerLayoutDrawerPosition::Right: return "right";
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
enum class AndroidDrawerLayoutDrawerLockMode { Unlocked, LockedClosed, LockedOpen };
|
|
81
|
-
|
|
82
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerLockMode &result) {
|
|
83
|
-
auto string = (std::string)value;
|
|
84
|
-
if (string == "unlocked") { result = AndroidDrawerLayoutDrawerLockMode::Unlocked; return; }
|
|
85
|
-
if (string == "locked-closed") { result = AndroidDrawerLayoutDrawerLockMode::LockedClosed; return; }
|
|
86
|
-
if (string == "locked-open") { result = AndroidDrawerLayoutDrawerLockMode::LockedOpen; return; }
|
|
87
|
-
abort();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
static inline std::string toString(const AndroidDrawerLayoutDrawerLockMode &value) {
|
|
91
|
-
switch (value) {
|
|
92
|
-
case AndroidDrawerLayoutDrawerLockMode::Unlocked: return "unlocked";
|
|
93
|
-
case AndroidDrawerLayoutDrawerLockMode::LockedClosed: return "locked-closed";
|
|
94
|
-
case AndroidDrawerLayoutDrawerLockMode::LockedOpen: return "locked-open";
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
class AndroidDrawerLayoutProps final : public ViewProps {
|
|
99
|
-
public:
|
|
100
|
-
AndroidDrawerLayoutProps() = default;
|
|
101
|
-
AndroidDrawerLayoutProps(const PropsParserContext& context, const AndroidDrawerLayoutProps &sourceProps, const RawProps &rawProps);
|
|
102
|
-
|
|
103
|
-
#pragma mark - Props
|
|
104
|
-
|
|
105
|
-
AndroidDrawerLayoutKeyboardDismissMode keyboardDismissMode{AndroidDrawerLayoutKeyboardDismissMode::None};
|
|
106
|
-
SharedColor drawerBackgroundColor{};
|
|
107
|
-
AndroidDrawerLayoutDrawerPosition drawerPosition{AndroidDrawerLayoutDrawerPosition::Left};
|
|
108
|
-
Float drawerWidth{};
|
|
109
|
-
AndroidDrawerLayoutDrawerLockMode drawerLockMode{AndroidDrawerLayoutDrawerLockMode::Unlocked};
|
|
110
|
-
SharedColor statusBarBackgroundColor{};
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
class AndroidProgressBarProps final : public ViewProps {
|
|
114
|
-
public:
|
|
115
|
-
AndroidProgressBarProps() = default;
|
|
116
|
-
AndroidProgressBarProps(const PropsParserContext& context, const AndroidProgressBarProps &sourceProps, const RawProps &rawProps);
|
|
117
|
-
|
|
118
|
-
#pragma mark - Props
|
|
119
|
-
|
|
120
|
-
std::string styleAttr{};
|
|
121
|
-
std::string typeAttr{};
|
|
122
|
-
bool indeterminate{false};
|
|
123
|
-
double progress{0.0};
|
|
124
|
-
bool animating{true};
|
|
125
|
-
SharedColor color{};
|
|
126
|
-
std::string testID{""};
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
enum class AndroidSwipeRefreshLayoutSize { Default, Large };
|
|
130
|
-
|
|
131
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidSwipeRefreshLayoutSize &result) {
|
|
132
|
-
auto string = (std::string)value;
|
|
133
|
-
if (string == "default") { result = AndroidSwipeRefreshLayoutSize::Default; return; }
|
|
134
|
-
if (string == "large") { result = AndroidSwipeRefreshLayoutSize::Large; return; }
|
|
135
|
-
abort();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
static inline std::string toString(const AndroidSwipeRefreshLayoutSize &value) {
|
|
139
|
-
switch (value) {
|
|
140
|
-
case AndroidSwipeRefreshLayoutSize::Default: return "default";
|
|
141
|
-
case AndroidSwipeRefreshLayoutSize::Large: return "large";
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
class AndroidSwipeRefreshLayoutProps final : public ViewProps {
|
|
146
|
-
public:
|
|
147
|
-
AndroidSwipeRefreshLayoutProps() = default;
|
|
148
|
-
AndroidSwipeRefreshLayoutProps(const PropsParserContext& context, const AndroidSwipeRefreshLayoutProps &sourceProps, const RawProps &rawProps);
|
|
149
|
-
|
|
150
|
-
#pragma mark - Props
|
|
151
|
-
|
|
152
|
-
bool enabled{true};
|
|
153
|
-
std::vector<SharedColor> colors{};
|
|
154
|
-
SharedColor progressBackgroundColor{};
|
|
155
|
-
AndroidSwipeRefreshLayoutSize size{AndroidSwipeRefreshLayoutSize::Default};
|
|
156
|
-
Float progressViewOffset{0.0};
|
|
157
|
-
bool refreshing{false};
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
class PullToRefreshViewProps final : public ViewProps {
|
|
161
|
-
public:
|
|
162
|
-
PullToRefreshViewProps() = default;
|
|
163
|
-
PullToRefreshViewProps(const PropsParserContext& context, const PullToRefreshViewProps &sourceProps, const RawProps &rawProps);
|
|
164
|
-
|
|
165
|
-
#pragma mark - Props
|
|
166
|
-
|
|
167
|
-
SharedColor tintColor{};
|
|
168
|
-
SharedColor titleColor{};
|
|
169
|
-
std::string title{};
|
|
170
|
-
Float progressViewOffset{0.0};
|
|
171
|
-
bool refreshing{false};
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
class SafeAreaViewProps final : public ViewProps {
|
|
175
|
-
public:
|
|
176
|
-
SafeAreaViewProps() = default;
|
|
177
|
-
SafeAreaViewProps(const PropsParserContext& context, const SafeAreaViewProps &sourceProps, const RawProps &rawProps);
|
|
178
|
-
|
|
179
|
-
#pragma mark - Props
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
class AndroidHorizontalScrollContentViewProps final : public ViewProps {
|
|
185
|
-
public:
|
|
186
|
-
AndroidHorizontalScrollContentViewProps() = default;
|
|
187
|
-
AndroidHorizontalScrollContentViewProps(const PropsParserContext& context, const AndroidHorizontalScrollContentViewProps &sourceProps, const RawProps &rawProps);
|
|
188
|
-
|
|
189
|
-
#pragma mark - Props
|
|
190
|
-
|
|
191
|
-
bool removeClippedSubviews{false};
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
class AndroidSwitchProps final : public ViewProps {
|
|
195
|
-
public:
|
|
196
|
-
AndroidSwitchProps() = default;
|
|
197
|
-
AndroidSwitchProps(const PropsParserContext& context, const AndroidSwitchProps &sourceProps, const RawProps &rawProps);
|
|
198
|
-
|
|
199
|
-
#pragma mark - Props
|
|
200
|
-
|
|
201
|
-
bool disabled{false};
|
|
202
|
-
bool enabled{true};
|
|
203
|
-
SharedColor thumbColor{};
|
|
204
|
-
SharedColor trackColorForFalse{};
|
|
205
|
-
SharedColor trackColorForTrue{};
|
|
206
|
-
bool value{false};
|
|
207
|
-
bool on{false};
|
|
208
|
-
SharedColor thumbTintColor{};
|
|
209
|
-
SharedColor trackTintColor{};
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
class SwitchProps final : public ViewProps {
|
|
213
|
-
public:
|
|
214
|
-
SwitchProps() = default;
|
|
215
|
-
SwitchProps(const PropsParserContext& context, const SwitchProps &sourceProps, const RawProps &rawProps);
|
|
216
|
-
|
|
217
|
-
#pragma mark - Props
|
|
218
|
-
|
|
219
|
-
bool disabled{false};
|
|
220
|
-
bool value{false};
|
|
221
|
-
SharedColor tintColor{};
|
|
222
|
-
SharedColor onTintColor{};
|
|
223
|
-
SharedColor thumbTintColor{};
|
|
224
|
-
SharedColor thumbColor{};
|
|
225
|
-
SharedColor trackColorForFalse{};
|
|
226
|
-
SharedColor trackColorForTrue{};
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
class InputAccessoryProps final : public ViewProps {
|
|
230
|
-
public:
|
|
231
|
-
InputAccessoryProps() = default;
|
|
232
|
-
InputAccessoryProps(const PropsParserContext& context, const InputAccessoryProps &sourceProps, const RawProps &rawProps);
|
|
233
|
-
|
|
234
|
-
#pragma mark - Props
|
|
235
|
-
|
|
236
|
-
SharedColor backgroundColor{};
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
class TraceUpdateOverlayProps final : public ViewProps {
|
|
240
|
-
public:
|
|
241
|
-
TraceUpdateOverlayProps() = default;
|
|
242
|
-
TraceUpdateOverlayProps(const PropsParserContext& context, const TraceUpdateOverlayProps &sourceProps, const RawProps &rawProps);
|
|
243
|
-
|
|
244
|
-
#pragma mark - Props
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
class UnimplementedNativeViewProps final : public ViewProps {
|
|
250
|
-
public:
|
|
251
|
-
UnimplementedNativeViewProps() = default;
|
|
252
|
-
UnimplementedNativeViewProps(const PropsParserContext& context, const UnimplementedNativeViewProps &sourceProps, const RawProps &rawProps);
|
|
253
|
-
|
|
254
|
-
#pragma mark - Props
|
|
255
|
-
|
|
256
|
-
std::string name{""};
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
enum class ModalHostViewAnimationType { None, Slide, Fade };
|
|
260
|
-
|
|
261
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewAnimationType &result) {
|
|
262
|
-
auto string = (std::string)value;
|
|
263
|
-
if (string == "none") { result = ModalHostViewAnimationType::None; return; }
|
|
264
|
-
if (string == "slide") { result = ModalHostViewAnimationType::Slide; return; }
|
|
265
|
-
if (string == "fade") { result = ModalHostViewAnimationType::Fade; return; }
|
|
266
|
-
abort();
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
static inline std::string toString(const ModalHostViewAnimationType &value) {
|
|
270
|
-
switch (value) {
|
|
271
|
-
case ModalHostViewAnimationType::None: return "none";
|
|
272
|
-
case ModalHostViewAnimationType::Slide: return "slide";
|
|
273
|
-
case ModalHostViewAnimationType::Fade: return "fade";
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
enum class ModalHostViewPresentationStyle { FullScreen, PageSheet, FormSheet, OverFullScreen };
|
|
277
|
-
|
|
278
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewPresentationStyle &result) {
|
|
279
|
-
auto string = (std::string)value;
|
|
280
|
-
if (string == "fullScreen") { result = ModalHostViewPresentationStyle::FullScreen; return; }
|
|
281
|
-
if (string == "pageSheet") { result = ModalHostViewPresentationStyle::PageSheet; return; }
|
|
282
|
-
if (string == "formSheet") { result = ModalHostViewPresentationStyle::FormSheet; return; }
|
|
283
|
-
if (string == "overFullScreen") { result = ModalHostViewPresentationStyle::OverFullScreen; return; }
|
|
284
|
-
abort();
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
static inline std::string toString(const ModalHostViewPresentationStyle &value) {
|
|
288
|
-
switch (value) {
|
|
289
|
-
case ModalHostViewPresentationStyle::FullScreen: return "fullScreen";
|
|
290
|
-
case ModalHostViewPresentationStyle::PageSheet: return "pageSheet";
|
|
291
|
-
case ModalHostViewPresentationStyle::FormSheet: return "formSheet";
|
|
292
|
-
case ModalHostViewPresentationStyle::OverFullScreen: return "overFullScreen";
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
using ModalHostViewSupportedOrientationsMask = uint32_t;
|
|
296
|
-
|
|
297
|
-
enum class ModalHostViewSupportedOrientations: ModalHostViewSupportedOrientationsMask {
|
|
298
|
-
Portrait = 1 << 0,
|
|
299
|
-
PortraitUpsideDown = 1 << 1,
|
|
300
|
-
Landscape = 1 << 2,
|
|
301
|
-
LandscapeLeft = 1 << 3,
|
|
302
|
-
LandscapeRight = 1 << 4
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
constexpr bool operator&(
|
|
306
|
-
ModalHostViewSupportedOrientationsMask const lhs,
|
|
307
|
-
enum ModalHostViewSupportedOrientations const rhs) {
|
|
308
|
-
return lhs & static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
constexpr ModalHostViewSupportedOrientationsMask operator|(
|
|
312
|
-
ModalHostViewSupportedOrientationsMask const lhs,
|
|
313
|
-
enum ModalHostViewSupportedOrientations const rhs) {
|
|
314
|
-
return lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
constexpr void operator|=(
|
|
318
|
-
ModalHostViewSupportedOrientationsMask &lhs,
|
|
319
|
-
enum ModalHostViewSupportedOrientations const rhs) {
|
|
320
|
-
lhs = lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewSupportedOrientationsMask &result) {
|
|
324
|
-
auto items = std::vector<std::string>{value};
|
|
325
|
-
for (const auto &item : items) {
|
|
326
|
-
if (item == "portrait") {
|
|
327
|
-
result |= ModalHostViewSupportedOrientations::Portrait;
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
if (item == "portrait-upside-down") {
|
|
331
|
-
result |= ModalHostViewSupportedOrientations::PortraitUpsideDown;
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
if (item == "landscape") {
|
|
335
|
-
result |= ModalHostViewSupportedOrientations::Landscape;
|
|
336
|
-
continue;
|
|
337
|
-
}
|
|
338
|
-
if (item == "landscape-left") {
|
|
339
|
-
result |= ModalHostViewSupportedOrientations::LandscapeLeft;
|
|
340
|
-
continue;
|
|
341
|
-
}
|
|
342
|
-
if (item == "landscape-right") {
|
|
343
|
-
result |= ModalHostViewSupportedOrientations::LandscapeRight;
|
|
344
|
-
continue;
|
|
345
|
-
}
|
|
346
|
-
abort();
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
static inline std::string toString(const ModalHostViewSupportedOrientationsMask &value) {
|
|
351
|
-
auto result = std::string{};
|
|
352
|
-
auto separator = std::string{", "};
|
|
353
|
-
|
|
354
|
-
if (value & ModalHostViewSupportedOrientations::Portrait) {
|
|
355
|
-
result += "portrait" + separator;
|
|
356
|
-
}
|
|
357
|
-
if (value & ModalHostViewSupportedOrientations::PortraitUpsideDown) {
|
|
358
|
-
result += "portrait-upside-down" + separator;
|
|
359
|
-
}
|
|
360
|
-
if (value & ModalHostViewSupportedOrientations::Landscape) {
|
|
361
|
-
result += "landscape" + separator;
|
|
362
|
-
}
|
|
363
|
-
if (value & ModalHostViewSupportedOrientations::LandscapeLeft) {
|
|
364
|
-
result += "landscape-left" + separator;
|
|
365
|
-
}
|
|
366
|
-
if (value & ModalHostViewSupportedOrientations::LandscapeRight) {
|
|
367
|
-
result += "landscape-right" + separator;
|
|
368
|
-
}
|
|
369
|
-
if (!result.empty()) {
|
|
370
|
-
result.erase(result.length() - separator.length());
|
|
371
|
-
}
|
|
372
|
-
return result;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
class ModalHostViewProps final : public ViewProps {
|
|
376
|
-
public:
|
|
377
|
-
ModalHostViewProps() = default;
|
|
378
|
-
ModalHostViewProps(const PropsParserContext& context, const ModalHostViewProps &sourceProps, const RawProps &rawProps);
|
|
379
|
-
|
|
380
|
-
#pragma mark - Props
|
|
381
|
-
|
|
382
|
-
ModalHostViewAnimationType animationType{ModalHostViewAnimationType::None};
|
|
383
|
-
ModalHostViewPresentationStyle presentationStyle{ModalHostViewPresentationStyle::FullScreen};
|
|
384
|
-
bool transparent{false};
|
|
385
|
-
bool statusBarTranslucent{false};
|
|
386
|
-
bool hardwareAccelerated{false};
|
|
387
|
-
bool visible{false};
|
|
388
|
-
bool animated{false};
|
|
389
|
-
ModalHostViewSupportedOrientationsMask supportedOrientations{static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)};
|
|
390
|
-
int identifier{0};
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
} // namespace react
|
|
394
|
-
} // namespace facebook
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
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 RCTAndroidDrawerLayoutViewProtocol <NSObject>
|
|
21
|
-
- (void)openDrawer;
|
|
22
|
-
- (void)closeDrawer;
|
|
23
|
-
@end
|
|
24
|
-
|
|
25
|
-
RCT_EXTERN inline void RCTAndroidDrawerLayoutHandleCommand(
|
|
26
|
-
id<RCTAndroidDrawerLayoutViewProtocol> componentView,
|
|
27
|
-
NSString const *commandName,
|
|
28
|
-
NSArray const *args)
|
|
29
|
-
{
|
|
30
|
-
if ([commandName isEqualToString:@"openDrawer"]) {
|
|
31
|
-
#if RCT_DEBUG
|
|
32
|
-
if ([args count] != 0) {
|
|
33
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
#endif
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
[componentView openDrawer];
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if ([commandName isEqualToString:@"closeDrawer"]) {
|
|
45
|
-
#if RCT_DEBUG
|
|
46
|
-
if ([args count] != 0) {
|
|
47
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
#endif
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
[componentView closeDrawer];
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
#if RCT_DEBUG
|
|
59
|
-
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidDrawerLayout", commandName);
|
|
60
|
-
#endif
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@protocol RCTAndroidProgressBarViewProtocol <NSObject>
|
|
64
|
-
|
|
65
|
-
@end
|
|
66
|
-
|
|
67
|
-
@protocol RCTAndroidSwipeRefreshLayoutViewProtocol <NSObject>
|
|
68
|
-
- (void)setNativeRefreshing:(BOOL)value;
|
|
69
|
-
@end
|
|
70
|
-
|
|
71
|
-
RCT_EXTERN inline void RCTAndroidSwipeRefreshLayoutHandleCommand(
|
|
72
|
-
id<RCTAndroidSwipeRefreshLayoutViewProtocol> componentView,
|
|
73
|
-
NSString const *commandName,
|
|
74
|
-
NSArray const *args)
|
|
75
|
-
{
|
|
76
|
-
if ([commandName isEqualToString:@"setNativeRefreshing"]) {
|
|
77
|
-
#if RCT_DEBUG
|
|
78
|
-
if ([args count] != 1) {
|
|
79
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwipeRefreshLayout", commandName, (int)[args count], 1);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
#endif
|
|
83
|
-
|
|
84
|
-
NSObject *arg0 = args[0];
|
|
85
|
-
#if RCT_DEBUG
|
|
86
|
-
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwipeRefreshLayout", commandName, @"1st")) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
#endif
|
|
90
|
-
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
91
|
-
|
|
92
|
-
[componentView setNativeRefreshing:value];
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
#if RCT_DEBUG
|
|
97
|
-
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwipeRefreshLayout", commandName);
|
|
98
|
-
#endif
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@protocol RCTPullToRefreshViewViewProtocol <NSObject>
|
|
102
|
-
- (void)setNativeRefreshing:(BOOL)refreshing;
|
|
103
|
-
@end
|
|
104
|
-
|
|
105
|
-
RCT_EXTERN inline void RCTPullToRefreshViewHandleCommand(
|
|
106
|
-
id<RCTPullToRefreshViewViewProtocol> componentView,
|
|
107
|
-
NSString const *commandName,
|
|
108
|
-
NSArray const *args)
|
|
109
|
-
{
|
|
110
|
-
if ([commandName isEqualToString:@"setNativeRefreshing"]) {
|
|
111
|
-
#if RCT_DEBUG
|
|
112
|
-
if ([args count] != 1) {
|
|
113
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"PullToRefreshView", commandName, (int)[args count], 1);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
#endif
|
|
117
|
-
|
|
118
|
-
NSObject *arg0 = args[0];
|
|
119
|
-
#if RCT_DEBUG
|
|
120
|
-
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"PullToRefreshView", commandName, @"1st")) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
#endif
|
|
124
|
-
BOOL refreshing = [(NSNumber *)arg0 boolValue];
|
|
125
|
-
|
|
126
|
-
[componentView setNativeRefreshing:refreshing];
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
#if RCT_DEBUG
|
|
131
|
-
RCTLogError(@"%@ received command %@, which is not a supported command.", @"PullToRefreshView", commandName);
|
|
132
|
-
#endif
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@protocol RCTSafeAreaViewViewProtocol <NSObject>
|
|
136
|
-
|
|
137
|
-
@end
|
|
138
|
-
|
|
139
|
-
@protocol RCTAndroidHorizontalScrollContentViewViewProtocol <NSObject>
|
|
140
|
-
|
|
141
|
-
@end
|
|
142
|
-
|
|
143
|
-
@protocol RCTAndroidSwitchViewProtocol <NSObject>
|
|
144
|
-
- (void)setNativeValue:(BOOL)value;
|
|
145
|
-
@end
|
|
146
|
-
|
|
147
|
-
RCT_EXTERN inline void RCTAndroidSwitchHandleCommand(
|
|
148
|
-
id<RCTAndroidSwitchViewProtocol> componentView,
|
|
149
|
-
NSString const *commandName,
|
|
150
|
-
NSArray const *args)
|
|
151
|
-
{
|
|
152
|
-
if ([commandName isEqualToString:@"setNativeValue"]) {
|
|
153
|
-
#if RCT_DEBUG
|
|
154
|
-
if ([args count] != 1) {
|
|
155
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwitch", 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", @"AndroidSwitch", commandName, @"1st")) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
#endif
|
|
166
|
-
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
167
|
-
|
|
168
|
-
[componentView setNativeValue:value];
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
#if RCT_DEBUG
|
|
173
|
-
RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwitch", commandName);
|
|
174
|
-
#endif
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@protocol RCTSwitchViewProtocol <NSObject>
|
|
178
|
-
- (void)setValue:(BOOL)value;
|
|
179
|
-
@end
|
|
180
|
-
|
|
181
|
-
RCT_EXTERN inline void RCTSwitchHandleCommand(
|
|
182
|
-
id<RCTSwitchViewProtocol> componentView,
|
|
183
|
-
NSString const *commandName,
|
|
184
|
-
NSArray const *args)
|
|
185
|
-
{
|
|
186
|
-
if ([commandName isEqualToString:@"setValue"]) {
|
|
187
|
-
#if RCT_DEBUG
|
|
188
|
-
if ([args count] != 1) {
|
|
189
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"Switch", commandName, (int)[args count], 1);
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
#endif
|
|
193
|
-
|
|
194
|
-
NSObject *arg0 = args[0];
|
|
195
|
-
#if RCT_DEBUG
|
|
196
|
-
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"Switch", commandName, @"1st")) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
#endif
|
|
200
|
-
BOOL value = [(NSNumber *)arg0 boolValue];
|
|
201
|
-
|
|
202
|
-
[componentView setValue:value];
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
#if RCT_DEBUG
|
|
207
|
-
RCTLogError(@"%@ received command %@, which is not a supported command.", @"Switch", commandName);
|
|
208
|
-
#endif
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@protocol RCTInputAccessoryViewProtocol <NSObject>
|
|
212
|
-
|
|
213
|
-
@end
|
|
214
|
-
|
|
215
|
-
@protocol RCTTraceUpdateOverlayViewProtocol <NSObject>
|
|
216
|
-
- (void)draw:(NSString *)overlays;
|
|
217
|
-
@end
|
|
218
|
-
|
|
219
|
-
RCT_EXTERN inline void RCTTraceUpdateOverlayHandleCommand(
|
|
220
|
-
id<RCTTraceUpdateOverlayViewProtocol> componentView,
|
|
221
|
-
NSString const *commandName,
|
|
222
|
-
NSArray const *args)
|
|
223
|
-
{
|
|
224
|
-
if ([commandName isEqualToString:@"draw"]) {
|
|
225
|
-
#if RCT_DEBUG
|
|
226
|
-
if ([args count] != 1) {
|
|
227
|
-
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"TraceUpdateOverlay", commandName, (int)[args count], 1);
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
#endif
|
|
231
|
-
|
|
232
|
-
NSObject *arg0 = args[0];
|
|
233
|
-
#if RCT_DEBUG
|
|
234
|
-
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSString class], @"string", @"TraceUpdateOverlay", commandName, @"1st")) {
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
#endif
|
|
238
|
-
NSString * overlays = (NSString *)arg0;
|
|
239
|
-
|
|
240
|
-
[componentView draw:overlays];
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
#if RCT_DEBUG
|
|
245
|
-
RCTLogError(@"%@ received command %@, which is not a supported command.", @"TraceUpdateOverlay", commandName);
|
|
246
|
-
#endif
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
@protocol RCTUnimplementedNativeViewViewProtocol <NSObject>
|
|
250
|
-
|
|
251
|
-
@end
|
|
252
|
-
|
|
253
|
-
@protocol RCTModalHostViewViewProtocol <NSObject>
|
|
254
|
-
|
|
255
|
-
@end
|
|
256
|
-
|
|
257
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
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 AndroidDrawerLayoutComponentName[] = "AndroidDrawerLayout";
|
|
18
|
-
extern const char AndroidSwipeRefreshLayoutComponentName[] = "AndroidSwipeRefreshLayout";
|
|
19
|
-
extern const char PullToRefreshViewComponentName[] = "PullToRefreshView";
|
|
20
|
-
extern const char AndroidHorizontalScrollContentViewComponentName[] = "AndroidHorizontalScrollContentView";
|
|
21
|
-
extern const char SwitchComponentName[] = "Switch";
|
|
22
|
-
extern const char TraceUpdateOverlayComponentName[] = "TraceUpdateOverlay";
|
|
23
|
-
extern const char UnimplementedNativeViewComponentName[] = "UnimplementedNativeView";
|
|
24
|
-
|
|
25
|
-
} // namespace react
|
|
26
|
-
} // namespace facebook
|