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,576 @@
|
|
|
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: 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 <react/renderer/imagemanager/primitives.h>
|
|
17
|
+
#include <vector>
|
|
18
|
+
|
|
19
|
+
namespace facebook {
|
|
20
|
+
namespace react {
|
|
21
|
+
|
|
22
|
+
enum class ActivityIndicatorViewSize { Small, Large };
|
|
23
|
+
|
|
24
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ActivityIndicatorViewSize &result) {
|
|
25
|
+
auto string = (std::string)value;
|
|
26
|
+
if (string == "small") { result = ActivityIndicatorViewSize::Small; return; }
|
|
27
|
+
if (string == "large") { result = ActivityIndicatorViewSize::Large; return; }
|
|
28
|
+
abort();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static inline std::string toString(const ActivityIndicatorViewSize &value) {
|
|
32
|
+
switch (value) {
|
|
33
|
+
case ActivityIndicatorViewSize::Small: return "small";
|
|
34
|
+
case ActivityIndicatorViewSize::Large: return "large";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
class ActivityIndicatorViewProps final : public ViewProps {
|
|
39
|
+
public:
|
|
40
|
+
ActivityIndicatorViewProps() = default;
|
|
41
|
+
ActivityIndicatorViewProps(const PropsParserContext& context, const ActivityIndicatorViewProps &sourceProps, const RawProps &rawProps);
|
|
42
|
+
|
|
43
|
+
#pragma mark - Props
|
|
44
|
+
|
|
45
|
+
bool hidesWhenStopped{false};
|
|
46
|
+
bool animating{false};
|
|
47
|
+
SharedColor color{};
|
|
48
|
+
ActivityIndicatorViewSize size{ActivityIndicatorViewSize::Small};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
enum class DatePickerMinuteInterval { MinuteInterval1 = 1, MinuteInterval2 = 2, MinuteInterval3 = 3, MinuteInterval4 = 4, MinuteInterval5 = 5, MinuteInterval6 = 6, MinuteInterval10 = 10, MinuteInterval12 = 12, MinuteInterval15 = 15, MinuteInterval20 = 20, MinuteInterval30 = 30 };
|
|
52
|
+
|
|
53
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, DatePickerMinuteInterval &result) {
|
|
54
|
+
assert(value.hasType<int>());
|
|
55
|
+
auto integerValue = (int)value;
|
|
56
|
+
switch (integerValue) {
|
|
57
|
+
case 1:
|
|
58
|
+
result = DatePickerMinuteInterval::MinuteInterval1;
|
|
59
|
+
return;
|
|
60
|
+
case 2:
|
|
61
|
+
result = DatePickerMinuteInterval::MinuteInterval2;
|
|
62
|
+
return;
|
|
63
|
+
case 3:
|
|
64
|
+
result = DatePickerMinuteInterval::MinuteInterval3;
|
|
65
|
+
return;
|
|
66
|
+
case 4:
|
|
67
|
+
result = DatePickerMinuteInterval::MinuteInterval4;
|
|
68
|
+
return;
|
|
69
|
+
case 5:
|
|
70
|
+
result = DatePickerMinuteInterval::MinuteInterval5;
|
|
71
|
+
return;
|
|
72
|
+
case 6:
|
|
73
|
+
result = DatePickerMinuteInterval::MinuteInterval6;
|
|
74
|
+
return;
|
|
75
|
+
case 10:
|
|
76
|
+
result = DatePickerMinuteInterval::MinuteInterval10;
|
|
77
|
+
return;
|
|
78
|
+
case 12:
|
|
79
|
+
result = DatePickerMinuteInterval::MinuteInterval12;
|
|
80
|
+
return;
|
|
81
|
+
case 15:
|
|
82
|
+
result = DatePickerMinuteInterval::MinuteInterval15;
|
|
83
|
+
return;
|
|
84
|
+
case 20:
|
|
85
|
+
result = DatePickerMinuteInterval::MinuteInterval20;
|
|
86
|
+
return;
|
|
87
|
+
case 30:
|
|
88
|
+
result = DatePickerMinuteInterval::MinuteInterval30;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
abort();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static inline std::string toString(const DatePickerMinuteInterval &value) {
|
|
95
|
+
switch (value) {
|
|
96
|
+
case DatePickerMinuteInterval::MinuteInterval1: return "1";
|
|
97
|
+
case DatePickerMinuteInterval::MinuteInterval2: return "2";
|
|
98
|
+
case DatePickerMinuteInterval::MinuteInterval3: return "3";
|
|
99
|
+
case DatePickerMinuteInterval::MinuteInterval4: return "4";
|
|
100
|
+
case DatePickerMinuteInterval::MinuteInterval5: return "5";
|
|
101
|
+
case DatePickerMinuteInterval::MinuteInterval6: return "6";
|
|
102
|
+
case DatePickerMinuteInterval::MinuteInterval10: return "10";
|
|
103
|
+
case DatePickerMinuteInterval::MinuteInterval12: return "12";
|
|
104
|
+
case DatePickerMinuteInterval::MinuteInterval15: return "15";
|
|
105
|
+
case DatePickerMinuteInterval::MinuteInterval20: return "20";
|
|
106
|
+
case DatePickerMinuteInterval::MinuteInterval30: return "30";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
enum class DatePickerMode { Date, Time, Datetime };
|
|
110
|
+
|
|
111
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, DatePickerMode &result) {
|
|
112
|
+
auto string = (std::string)value;
|
|
113
|
+
if (string == "date") { result = DatePickerMode::Date; return; }
|
|
114
|
+
if (string == "time") { result = DatePickerMode::Time; return; }
|
|
115
|
+
if (string == "datetime") { result = DatePickerMode::Datetime; return; }
|
|
116
|
+
abort();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static inline std::string toString(const DatePickerMode &value) {
|
|
120
|
+
switch (value) {
|
|
121
|
+
case DatePickerMode::Date: return "date";
|
|
122
|
+
case DatePickerMode::Time: return "time";
|
|
123
|
+
case DatePickerMode::Datetime: return "datetime";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
enum class DatePickerPickerStyle { Compact, Spinner, Inline };
|
|
127
|
+
|
|
128
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, DatePickerPickerStyle &result) {
|
|
129
|
+
auto string = (std::string)value;
|
|
130
|
+
if (string == "compact") { result = DatePickerPickerStyle::Compact; return; }
|
|
131
|
+
if (string == "spinner") { result = DatePickerPickerStyle::Spinner; return; }
|
|
132
|
+
if (string == "inline") { result = DatePickerPickerStyle::Inline; return; }
|
|
133
|
+
abort();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static inline std::string toString(const DatePickerPickerStyle &value) {
|
|
137
|
+
switch (value) {
|
|
138
|
+
case DatePickerPickerStyle::Compact: return "compact";
|
|
139
|
+
case DatePickerPickerStyle::Spinner: return "spinner";
|
|
140
|
+
case DatePickerPickerStyle::Inline: return "inline";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class DatePickerProps final : public ViewProps {
|
|
145
|
+
public:
|
|
146
|
+
DatePickerProps() = default;
|
|
147
|
+
DatePickerProps(const PropsParserContext& context, const DatePickerProps &sourceProps, const RawProps &rawProps);
|
|
148
|
+
|
|
149
|
+
#pragma mark - Props
|
|
150
|
+
|
|
151
|
+
Float date{0.0};
|
|
152
|
+
Float initialDate{0.0};
|
|
153
|
+
std::string locale{};
|
|
154
|
+
Float maximumDate{0.0};
|
|
155
|
+
Float minimumDate{0.0};
|
|
156
|
+
DatePickerMinuteInterval minuteInterval{DatePickerMinuteInterval::MinuteInterval1};
|
|
157
|
+
DatePickerMode mode{DatePickerMode::Date};
|
|
158
|
+
Float timeZoneOffsetInMinutes{0.0};
|
|
159
|
+
DatePickerPickerStyle pickerStyle{DatePickerPickerStyle::Spinner};
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
enum class AndroidDrawerLayoutKeyboardDismissMode { None, OnDrag };
|
|
163
|
+
|
|
164
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutKeyboardDismissMode &result) {
|
|
165
|
+
auto string = (std::string)value;
|
|
166
|
+
if (string == "none") { result = AndroidDrawerLayoutKeyboardDismissMode::None; return; }
|
|
167
|
+
if (string == "on-drag") { result = AndroidDrawerLayoutKeyboardDismissMode::OnDrag; return; }
|
|
168
|
+
abort();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
static inline std::string toString(const AndroidDrawerLayoutKeyboardDismissMode &value) {
|
|
172
|
+
switch (value) {
|
|
173
|
+
case AndroidDrawerLayoutKeyboardDismissMode::None: return "none";
|
|
174
|
+
case AndroidDrawerLayoutKeyboardDismissMode::OnDrag: return "on-drag";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
enum class AndroidDrawerLayoutDrawerPosition { Left, Right };
|
|
178
|
+
|
|
179
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerPosition &result) {
|
|
180
|
+
auto string = (std::string)value;
|
|
181
|
+
if (string == "left") { result = AndroidDrawerLayoutDrawerPosition::Left; return; }
|
|
182
|
+
if (string == "right") { result = AndroidDrawerLayoutDrawerPosition::Right; return; }
|
|
183
|
+
abort();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static inline std::string toString(const AndroidDrawerLayoutDrawerPosition &value) {
|
|
187
|
+
switch (value) {
|
|
188
|
+
case AndroidDrawerLayoutDrawerPosition::Left: return "left";
|
|
189
|
+
case AndroidDrawerLayoutDrawerPosition::Right: return "right";
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
enum class AndroidDrawerLayoutDrawerLockMode { Unlocked, LockedClosed, LockedOpen };
|
|
193
|
+
|
|
194
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerLockMode &result) {
|
|
195
|
+
auto string = (std::string)value;
|
|
196
|
+
if (string == "unlocked") { result = AndroidDrawerLayoutDrawerLockMode::Unlocked; return; }
|
|
197
|
+
if (string == "locked-closed") { result = AndroidDrawerLayoutDrawerLockMode::LockedClosed; return; }
|
|
198
|
+
if (string == "locked-open") { result = AndroidDrawerLayoutDrawerLockMode::LockedOpen; return; }
|
|
199
|
+
abort();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
static inline std::string toString(const AndroidDrawerLayoutDrawerLockMode &value) {
|
|
203
|
+
switch (value) {
|
|
204
|
+
case AndroidDrawerLayoutDrawerLockMode::Unlocked: return "unlocked";
|
|
205
|
+
case AndroidDrawerLayoutDrawerLockMode::LockedClosed: return "locked-closed";
|
|
206
|
+
case AndroidDrawerLayoutDrawerLockMode::LockedOpen: return "locked-open";
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
class AndroidDrawerLayoutProps final : public ViewProps {
|
|
211
|
+
public:
|
|
212
|
+
AndroidDrawerLayoutProps() = default;
|
|
213
|
+
AndroidDrawerLayoutProps(const PropsParserContext& context, const AndroidDrawerLayoutProps &sourceProps, const RawProps &rawProps);
|
|
214
|
+
|
|
215
|
+
#pragma mark - Props
|
|
216
|
+
|
|
217
|
+
AndroidDrawerLayoutKeyboardDismissMode keyboardDismissMode{AndroidDrawerLayoutKeyboardDismissMode::None};
|
|
218
|
+
SharedColor drawerBackgroundColor{};
|
|
219
|
+
AndroidDrawerLayoutDrawerPosition drawerPosition{AndroidDrawerLayoutDrawerPosition::Left};
|
|
220
|
+
Float drawerWidth{};
|
|
221
|
+
AndroidDrawerLayoutDrawerLockMode drawerLockMode{AndroidDrawerLayoutDrawerLockMode::Unlocked};
|
|
222
|
+
SharedColor statusBarBackgroundColor{};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
class RCTMaskedViewProps final : public ViewProps {
|
|
226
|
+
public:
|
|
227
|
+
RCTMaskedViewProps() = default;
|
|
228
|
+
RCTMaskedViewProps(const PropsParserContext& context, const RCTMaskedViewProps &sourceProps, const RawProps &rawProps);
|
|
229
|
+
|
|
230
|
+
#pragma mark - Props
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
class AndroidProgressBarProps final : public ViewProps {
|
|
236
|
+
public:
|
|
237
|
+
AndroidProgressBarProps() = default;
|
|
238
|
+
AndroidProgressBarProps(const PropsParserContext& context, const AndroidProgressBarProps &sourceProps, const RawProps &rawProps);
|
|
239
|
+
|
|
240
|
+
#pragma mark - Props
|
|
241
|
+
|
|
242
|
+
std::string styleAttr{};
|
|
243
|
+
std::string typeAttr{};
|
|
244
|
+
bool indeterminate{false};
|
|
245
|
+
double progress{0.0};
|
|
246
|
+
bool animating{true};
|
|
247
|
+
SharedColor color{};
|
|
248
|
+
std::string testID{""};
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
enum class RCTProgressViewProgressViewStyle { Default, Bar };
|
|
252
|
+
|
|
253
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RCTProgressViewProgressViewStyle &result) {
|
|
254
|
+
auto string = (std::string)value;
|
|
255
|
+
if (string == "default") { result = RCTProgressViewProgressViewStyle::Default; return; }
|
|
256
|
+
if (string == "bar") { result = RCTProgressViewProgressViewStyle::Bar; return; }
|
|
257
|
+
abort();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
static inline std::string toString(const RCTProgressViewProgressViewStyle &value) {
|
|
261
|
+
switch (value) {
|
|
262
|
+
case RCTProgressViewProgressViewStyle::Default: return "default";
|
|
263
|
+
case RCTProgressViewProgressViewStyle::Bar: return "bar";
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
class RCTProgressViewProps final : public ViewProps {
|
|
268
|
+
public:
|
|
269
|
+
RCTProgressViewProps() = default;
|
|
270
|
+
RCTProgressViewProps(const PropsParserContext& context, const RCTProgressViewProps &sourceProps, const RawProps &rawProps);
|
|
271
|
+
|
|
272
|
+
#pragma mark - Props
|
|
273
|
+
|
|
274
|
+
RCTProgressViewProgressViewStyle progressViewStyle{RCTProgressViewProgressViewStyle::Default};
|
|
275
|
+
Float progress{0.0};
|
|
276
|
+
SharedColor progressTintColor{};
|
|
277
|
+
SharedColor trackTintColor{};
|
|
278
|
+
ImageSource progressImage{};
|
|
279
|
+
ImageSource trackImage{};
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
enum class AndroidSwipeRefreshLayoutSize { Default, Large };
|
|
283
|
+
|
|
284
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidSwipeRefreshLayoutSize &result) {
|
|
285
|
+
auto string = (std::string)value;
|
|
286
|
+
if (string == "default") { result = AndroidSwipeRefreshLayoutSize::Default; return; }
|
|
287
|
+
if (string == "large") { result = AndroidSwipeRefreshLayoutSize::Large; return; }
|
|
288
|
+
abort();
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
static inline std::string toString(const AndroidSwipeRefreshLayoutSize &value) {
|
|
292
|
+
switch (value) {
|
|
293
|
+
case AndroidSwipeRefreshLayoutSize::Default: return "default";
|
|
294
|
+
case AndroidSwipeRefreshLayoutSize::Large: return "large";
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
class AndroidSwipeRefreshLayoutProps final : public ViewProps {
|
|
299
|
+
public:
|
|
300
|
+
AndroidSwipeRefreshLayoutProps() = default;
|
|
301
|
+
AndroidSwipeRefreshLayoutProps(const PropsParserContext& context, const AndroidSwipeRefreshLayoutProps &sourceProps, const RawProps &rawProps);
|
|
302
|
+
|
|
303
|
+
#pragma mark - Props
|
|
304
|
+
|
|
305
|
+
bool enabled{true};
|
|
306
|
+
std::vector<SharedColor> colors{};
|
|
307
|
+
SharedColor progressBackgroundColor{};
|
|
308
|
+
AndroidSwipeRefreshLayoutSize size{AndroidSwipeRefreshLayoutSize::Default};
|
|
309
|
+
Float progressViewOffset{0.0};
|
|
310
|
+
bool refreshing{false};
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
class PullToRefreshViewProps final : public ViewProps {
|
|
314
|
+
public:
|
|
315
|
+
PullToRefreshViewProps() = default;
|
|
316
|
+
PullToRefreshViewProps(const PropsParserContext& context, const PullToRefreshViewProps &sourceProps, const RawProps &rawProps);
|
|
317
|
+
|
|
318
|
+
#pragma mark - Props
|
|
319
|
+
|
|
320
|
+
SharedColor tintColor{};
|
|
321
|
+
SharedColor titleColor{};
|
|
322
|
+
std::string title{};
|
|
323
|
+
Float progressViewOffset{0.0};
|
|
324
|
+
bool refreshing{false};
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
class SafeAreaViewProps final : public ViewProps {
|
|
328
|
+
public:
|
|
329
|
+
SafeAreaViewProps() = default;
|
|
330
|
+
SafeAreaViewProps(const PropsParserContext& context, const SafeAreaViewProps &sourceProps, const RawProps &rawProps);
|
|
331
|
+
|
|
332
|
+
#pragma mark - Props
|
|
333
|
+
|
|
334
|
+
bool emulateUnlessSupported{false};
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
class AndroidHorizontalScrollContentViewProps final : public ViewProps {
|
|
338
|
+
public:
|
|
339
|
+
AndroidHorizontalScrollContentViewProps() = default;
|
|
340
|
+
AndroidHorizontalScrollContentViewProps(const PropsParserContext& context, const AndroidHorizontalScrollContentViewProps &sourceProps, const RawProps &rawProps);
|
|
341
|
+
|
|
342
|
+
#pragma mark - Props
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
class RCTSegmentedControlProps final : public ViewProps {
|
|
348
|
+
public:
|
|
349
|
+
RCTSegmentedControlProps() = default;
|
|
350
|
+
RCTSegmentedControlProps(const PropsParserContext& context, const RCTSegmentedControlProps &sourceProps, const RawProps &rawProps);
|
|
351
|
+
|
|
352
|
+
#pragma mark - Props
|
|
353
|
+
|
|
354
|
+
std::vector<std::string> values{};
|
|
355
|
+
int selectedIndex{0};
|
|
356
|
+
bool enabled{true};
|
|
357
|
+
SharedColor tintColor{};
|
|
358
|
+
SharedColor textColor{};
|
|
359
|
+
SharedColor backgroundColor{};
|
|
360
|
+
bool momentary{false};
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
class SliderProps final : public ViewProps {
|
|
364
|
+
public:
|
|
365
|
+
SliderProps() = default;
|
|
366
|
+
SliderProps(const PropsParserContext& context, const SliderProps &sourceProps, const RawProps &rawProps);
|
|
367
|
+
|
|
368
|
+
#pragma mark - Props
|
|
369
|
+
|
|
370
|
+
bool disabled{false};
|
|
371
|
+
bool enabled{true};
|
|
372
|
+
ImageSource maximumTrackImage{};
|
|
373
|
+
SharedColor maximumTrackTintColor{};
|
|
374
|
+
double maximumValue{1.0};
|
|
375
|
+
ImageSource minimumTrackImage{};
|
|
376
|
+
SharedColor minimumTrackTintColor{};
|
|
377
|
+
double minimumValue{0.0};
|
|
378
|
+
double step{0.0};
|
|
379
|
+
std::string testID{""};
|
|
380
|
+
ImageSource thumbImage{};
|
|
381
|
+
SharedColor thumbTintColor{};
|
|
382
|
+
ImageSource trackImage{};
|
|
383
|
+
double value{0.0};
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
class AndroidSwitchProps final : public ViewProps {
|
|
387
|
+
public:
|
|
388
|
+
AndroidSwitchProps() = default;
|
|
389
|
+
AndroidSwitchProps(const PropsParserContext& context, const AndroidSwitchProps &sourceProps, const RawProps &rawProps);
|
|
390
|
+
|
|
391
|
+
#pragma mark - Props
|
|
392
|
+
|
|
393
|
+
bool disabled{false};
|
|
394
|
+
bool enabled{true};
|
|
395
|
+
SharedColor thumbColor{};
|
|
396
|
+
SharedColor trackColorForFalse{};
|
|
397
|
+
SharedColor trackColorForTrue{};
|
|
398
|
+
bool value{false};
|
|
399
|
+
bool on{false};
|
|
400
|
+
SharedColor thumbTintColor{};
|
|
401
|
+
SharedColor trackTintColor{};
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
class SwitchProps final : public ViewProps {
|
|
405
|
+
public:
|
|
406
|
+
SwitchProps() = default;
|
|
407
|
+
SwitchProps(const PropsParserContext& context, const SwitchProps &sourceProps, const RawProps &rawProps);
|
|
408
|
+
|
|
409
|
+
#pragma mark - Props
|
|
410
|
+
|
|
411
|
+
bool disabled{false};
|
|
412
|
+
bool value{false};
|
|
413
|
+
SharedColor tintColor{};
|
|
414
|
+
SharedColor onTintColor{};
|
|
415
|
+
SharedColor thumbTintColor{};
|
|
416
|
+
SharedColor thumbColor{};
|
|
417
|
+
SharedColor trackColorForFalse{};
|
|
418
|
+
SharedColor trackColorForTrue{};
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
class InputAccessoryProps final : public ViewProps {
|
|
422
|
+
public:
|
|
423
|
+
InputAccessoryProps() = default;
|
|
424
|
+
InputAccessoryProps(const PropsParserContext& context, const InputAccessoryProps &sourceProps, const RawProps &rawProps);
|
|
425
|
+
|
|
426
|
+
#pragma mark - Props
|
|
427
|
+
|
|
428
|
+
SharedColor backgroundColor{};
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
class UnimplementedNativeViewProps final : public ViewProps {
|
|
432
|
+
public:
|
|
433
|
+
UnimplementedNativeViewProps() = default;
|
|
434
|
+
UnimplementedNativeViewProps(const PropsParserContext& context, const UnimplementedNativeViewProps &sourceProps, const RawProps &rawProps);
|
|
435
|
+
|
|
436
|
+
#pragma mark - Props
|
|
437
|
+
|
|
438
|
+
std::string name{""};
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
enum class ModalHostViewAnimationType { None, Slide, Fade };
|
|
442
|
+
|
|
443
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewAnimationType &result) {
|
|
444
|
+
auto string = (std::string)value;
|
|
445
|
+
if (string == "none") { result = ModalHostViewAnimationType::None; return; }
|
|
446
|
+
if (string == "slide") { result = ModalHostViewAnimationType::Slide; return; }
|
|
447
|
+
if (string == "fade") { result = ModalHostViewAnimationType::Fade; return; }
|
|
448
|
+
abort();
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
static inline std::string toString(const ModalHostViewAnimationType &value) {
|
|
452
|
+
switch (value) {
|
|
453
|
+
case ModalHostViewAnimationType::None: return "none";
|
|
454
|
+
case ModalHostViewAnimationType::Slide: return "slide";
|
|
455
|
+
case ModalHostViewAnimationType::Fade: return "fade";
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
enum class ModalHostViewPresentationStyle { FullScreen, PageSheet, FormSheet, OverFullScreen };
|
|
459
|
+
|
|
460
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewPresentationStyle &result) {
|
|
461
|
+
auto string = (std::string)value;
|
|
462
|
+
if (string == "fullScreen") { result = ModalHostViewPresentationStyle::FullScreen; return; }
|
|
463
|
+
if (string == "pageSheet") { result = ModalHostViewPresentationStyle::PageSheet; return; }
|
|
464
|
+
if (string == "formSheet") { result = ModalHostViewPresentationStyle::FormSheet; return; }
|
|
465
|
+
if (string == "overFullScreen") { result = ModalHostViewPresentationStyle::OverFullScreen; return; }
|
|
466
|
+
abort();
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
static inline std::string toString(const ModalHostViewPresentationStyle &value) {
|
|
470
|
+
switch (value) {
|
|
471
|
+
case ModalHostViewPresentationStyle::FullScreen: return "fullScreen";
|
|
472
|
+
case ModalHostViewPresentationStyle::PageSheet: return "pageSheet";
|
|
473
|
+
case ModalHostViewPresentationStyle::FormSheet: return "formSheet";
|
|
474
|
+
case ModalHostViewPresentationStyle::OverFullScreen: return "overFullScreen";
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
using ModalHostViewSupportedOrientationsMask = uint32_t;
|
|
478
|
+
|
|
479
|
+
enum class ModalHostViewSupportedOrientations: ModalHostViewSupportedOrientationsMask {
|
|
480
|
+
Portrait = 1 << 0,
|
|
481
|
+
PortraitUpsideDown = 1 << 1,
|
|
482
|
+
Landscape = 1 << 2,
|
|
483
|
+
LandscapeLeft = 1 << 3,
|
|
484
|
+
LandscapeRight = 1 << 4
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
constexpr bool operator&(
|
|
488
|
+
ModalHostViewSupportedOrientationsMask const lhs,
|
|
489
|
+
enum ModalHostViewSupportedOrientations const rhs) {
|
|
490
|
+
return lhs & static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
constexpr ModalHostViewSupportedOrientationsMask operator|(
|
|
494
|
+
ModalHostViewSupportedOrientationsMask const lhs,
|
|
495
|
+
enum ModalHostViewSupportedOrientations const rhs) {
|
|
496
|
+
return lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
constexpr void operator|=(
|
|
500
|
+
ModalHostViewSupportedOrientationsMask &lhs,
|
|
501
|
+
enum ModalHostViewSupportedOrientations const rhs) {
|
|
502
|
+
lhs = lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewSupportedOrientationsMask &result) {
|
|
506
|
+
auto items = std::vector<std::string>{value};
|
|
507
|
+
for (const auto &item : items) {
|
|
508
|
+
if (item == "portrait") {
|
|
509
|
+
result |= ModalHostViewSupportedOrientations::Portrait;
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
if (item == "portrait-upside-down") {
|
|
513
|
+
result |= ModalHostViewSupportedOrientations::PortraitUpsideDown;
|
|
514
|
+
continue;
|
|
515
|
+
}
|
|
516
|
+
if (item == "landscape") {
|
|
517
|
+
result |= ModalHostViewSupportedOrientations::Landscape;
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
if (item == "landscape-left") {
|
|
521
|
+
result |= ModalHostViewSupportedOrientations::LandscapeLeft;
|
|
522
|
+
continue;
|
|
523
|
+
}
|
|
524
|
+
if (item == "landscape-right") {
|
|
525
|
+
result |= ModalHostViewSupportedOrientations::LandscapeRight;
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
abort();
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
static inline std::string toString(const ModalHostViewSupportedOrientationsMask &value) {
|
|
533
|
+
auto result = std::string{};
|
|
534
|
+
auto separator = std::string{", "};
|
|
535
|
+
|
|
536
|
+
if (value & ModalHostViewSupportedOrientations::Portrait) {
|
|
537
|
+
result += "portrait" + separator;
|
|
538
|
+
}
|
|
539
|
+
if (value & ModalHostViewSupportedOrientations::PortraitUpsideDown) {
|
|
540
|
+
result += "portrait-upside-down" + separator;
|
|
541
|
+
}
|
|
542
|
+
if (value & ModalHostViewSupportedOrientations::Landscape) {
|
|
543
|
+
result += "landscape" + separator;
|
|
544
|
+
}
|
|
545
|
+
if (value & ModalHostViewSupportedOrientations::LandscapeLeft) {
|
|
546
|
+
result += "landscape-left" + separator;
|
|
547
|
+
}
|
|
548
|
+
if (value & ModalHostViewSupportedOrientations::LandscapeRight) {
|
|
549
|
+
result += "landscape-right" + separator;
|
|
550
|
+
}
|
|
551
|
+
if (!result.empty()) {
|
|
552
|
+
result.erase(result.length() - separator.length());
|
|
553
|
+
}
|
|
554
|
+
return result;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
class ModalHostViewProps final : public ViewProps {
|
|
558
|
+
public:
|
|
559
|
+
ModalHostViewProps() = default;
|
|
560
|
+
ModalHostViewProps(const PropsParserContext& context, const ModalHostViewProps &sourceProps, const RawProps &rawProps);
|
|
561
|
+
|
|
562
|
+
#pragma mark - Props
|
|
563
|
+
|
|
564
|
+
ModalHostViewAnimationType animationType{ModalHostViewAnimationType::None};
|
|
565
|
+
ModalHostViewPresentationStyle presentationStyle{ModalHostViewPresentationStyle::FullScreen};
|
|
566
|
+
bool transparent{false};
|
|
567
|
+
bool statusBarTranslucent{false};
|
|
568
|
+
bool hardwareAccelerated{false};
|
|
569
|
+
bool visible{false};
|
|
570
|
+
bool animated{false};
|
|
571
|
+
ModalHostViewSupportedOrientationsMask supportedOrientations{static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)};
|
|
572
|
+
int identifier{0};
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
} // namespace react
|
|
576
|
+
} // namespace facebook
|