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,237 @@
|
|
|
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: GenerateEventEmitterH.js
|
|
9
|
+
*/
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
13
|
+
|
|
14
|
+
namespace facebook {
|
|
15
|
+
namespace react {
|
|
16
|
+
|
|
17
|
+
class ActivityIndicatorViewEventEmitter : public ViewEventEmitter {
|
|
18
|
+
public:
|
|
19
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
};
|
|
25
|
+
class DatePickerEventEmitter : public ViewEventEmitter {
|
|
26
|
+
public:
|
|
27
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
28
|
+
|
|
29
|
+
struct OnChange {
|
|
30
|
+
Float timestamp;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
void onChange(OnChange value) const;
|
|
34
|
+
};
|
|
35
|
+
class AndroidDrawerLayoutEventEmitter : public ViewEventEmitter {
|
|
36
|
+
public:
|
|
37
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
38
|
+
|
|
39
|
+
struct OnDrawerSlide {
|
|
40
|
+
Float offset;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
struct OnDrawerStateChanged {
|
|
44
|
+
int drawerState;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
struct OnDrawerOpen {
|
|
48
|
+
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
struct OnDrawerClose {
|
|
52
|
+
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
void onDrawerSlide(OnDrawerSlide value) const;
|
|
56
|
+
|
|
57
|
+
void onDrawerStateChanged(OnDrawerStateChanged value) const;
|
|
58
|
+
|
|
59
|
+
void onDrawerOpen(OnDrawerOpen value) const;
|
|
60
|
+
|
|
61
|
+
void onDrawerClose(OnDrawerClose value) const;
|
|
62
|
+
};
|
|
63
|
+
class RCTMaskedViewEventEmitter : public ViewEventEmitter {
|
|
64
|
+
public:
|
|
65
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
};
|
|
71
|
+
class AndroidProgressBarEventEmitter : public ViewEventEmitter {
|
|
72
|
+
public:
|
|
73
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
};
|
|
79
|
+
class RCTProgressViewEventEmitter : public ViewEventEmitter {
|
|
80
|
+
public:
|
|
81
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
};
|
|
87
|
+
class AndroidSwipeRefreshLayoutEventEmitter : public ViewEventEmitter {
|
|
88
|
+
public:
|
|
89
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
90
|
+
|
|
91
|
+
struct OnRefresh {
|
|
92
|
+
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
void onRefresh(OnRefresh value) const;
|
|
96
|
+
};
|
|
97
|
+
class PullToRefreshViewEventEmitter : public ViewEventEmitter {
|
|
98
|
+
public:
|
|
99
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
100
|
+
|
|
101
|
+
struct OnRefresh {
|
|
102
|
+
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
void onRefresh(OnRefresh value) const;
|
|
106
|
+
};
|
|
107
|
+
class SafeAreaViewEventEmitter : public ViewEventEmitter {
|
|
108
|
+
public:
|
|
109
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
};
|
|
115
|
+
class AndroidHorizontalScrollContentViewEventEmitter : public ViewEventEmitter {
|
|
116
|
+
public:
|
|
117
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
};
|
|
123
|
+
class RCTSegmentedControlEventEmitter : public ViewEventEmitter {
|
|
124
|
+
public:
|
|
125
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
126
|
+
|
|
127
|
+
struct OnChange {
|
|
128
|
+
int value;
|
|
129
|
+
int selectedSegmentIndex;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
void onChange(OnChange value) const;
|
|
133
|
+
};
|
|
134
|
+
class SliderEventEmitter : public ViewEventEmitter {
|
|
135
|
+
public:
|
|
136
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
137
|
+
|
|
138
|
+
struct OnChange {
|
|
139
|
+
double value;
|
|
140
|
+
bool fromUser;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
struct OnValueChange {
|
|
144
|
+
double value;
|
|
145
|
+
bool fromUser;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
struct OnSlidingComplete {
|
|
149
|
+
double value;
|
|
150
|
+
bool fromUser;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
void onChange(OnChange value) const;
|
|
154
|
+
|
|
155
|
+
void onValueChange(OnValueChange value) const;
|
|
156
|
+
|
|
157
|
+
void onSlidingComplete(OnSlidingComplete value) const;
|
|
158
|
+
};
|
|
159
|
+
class AndroidSwitchEventEmitter : public ViewEventEmitter {
|
|
160
|
+
public:
|
|
161
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
162
|
+
|
|
163
|
+
struct OnChange {
|
|
164
|
+
bool value;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
void onChange(OnChange value) const;
|
|
168
|
+
};
|
|
169
|
+
class SwitchEventEmitter : public ViewEventEmitter {
|
|
170
|
+
public:
|
|
171
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
172
|
+
|
|
173
|
+
struct OnChange {
|
|
174
|
+
bool value;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
void onChange(OnChange value) const;
|
|
178
|
+
};
|
|
179
|
+
class InputAccessoryEventEmitter : public ViewEventEmitter {
|
|
180
|
+
public:
|
|
181
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
};
|
|
187
|
+
class UnimplementedNativeViewEventEmitter : public ViewEventEmitter {
|
|
188
|
+
public:
|
|
189
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
};
|
|
195
|
+
class ModalHostViewEventEmitter : public ViewEventEmitter {
|
|
196
|
+
public:
|
|
197
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
198
|
+
|
|
199
|
+
struct OnRequestClose {
|
|
200
|
+
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
struct OnShow {
|
|
204
|
+
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
struct OnDismiss {
|
|
208
|
+
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
enum class OnOrientationChangeOrientation {
|
|
212
|
+
Portrait,
|
|
213
|
+
Landscape
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
static char const *toString(const OnOrientationChangeOrientation value) {
|
|
217
|
+
switch (value) {
|
|
218
|
+
case OnOrientationChangeOrientation::Portrait: return "portrait";
|
|
219
|
+
case OnOrientationChangeOrientation::Landscape: return "landscape";
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
struct OnOrientationChange {
|
|
224
|
+
OnOrientationChangeOrientation orientation;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
void onRequestClose(OnRequestClose value) const;
|
|
228
|
+
|
|
229
|
+
void onShow(OnShow value) const;
|
|
230
|
+
|
|
231
|
+
void onDismiss(OnDismiss value) const;
|
|
232
|
+
|
|
233
|
+
void onOrientationChange(OnOrientationChange value) const;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
} // namespace react
|
|
237
|
+
} // namespace facebook
|
|
@@ -0,0 +1,218 @@
|
|
|
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: GeneratePropsCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include <react/renderer/components/rncore/Props.h>
|
|
12
|
+
#include <react/renderer/components/image/conversions.h>
|
|
13
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
14
|
+
#include <react/renderer/core/propsConversions.h>
|
|
15
|
+
|
|
16
|
+
namespace facebook {
|
|
17
|
+
namespace react {
|
|
18
|
+
|
|
19
|
+
ActivityIndicatorViewProps::ActivityIndicatorViewProps(
|
|
20
|
+
const PropsParserContext &context,
|
|
21
|
+
const ActivityIndicatorViewProps &sourceProps,
|
|
22
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
23
|
+
|
|
24
|
+
hidesWhenStopped(convertRawProp(context, rawProps, "hidesWhenStopped", sourceProps.hidesWhenStopped, {false})),
|
|
25
|
+
animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {false})),
|
|
26
|
+
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
|
|
27
|
+
size(convertRawProp(context, rawProps, "size", sourceProps.size, {ActivityIndicatorViewSize::Small}))
|
|
28
|
+
{}
|
|
29
|
+
DatePickerProps::DatePickerProps(
|
|
30
|
+
const PropsParserContext &context,
|
|
31
|
+
const DatePickerProps &sourceProps,
|
|
32
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
33
|
+
|
|
34
|
+
date(convertRawProp(context, rawProps, "date", sourceProps.date, {0.0})),
|
|
35
|
+
initialDate(convertRawProp(context, rawProps, "initialDate", sourceProps.initialDate, {0.0})),
|
|
36
|
+
locale(convertRawProp(context, rawProps, "locale", sourceProps.locale, {})),
|
|
37
|
+
maximumDate(convertRawProp(context, rawProps, "maximumDate", sourceProps.maximumDate, {0.0})),
|
|
38
|
+
minimumDate(convertRawProp(context, rawProps, "minimumDate", sourceProps.minimumDate, {0.0})),
|
|
39
|
+
minuteInterval(convertRawProp(context, rawProps, "minuteInterval", sourceProps.minuteInterval, {DatePickerMinuteInterval::MinuteInterval1})),
|
|
40
|
+
mode(convertRawProp(context, rawProps, "mode", sourceProps.mode, {DatePickerMode::Date})),
|
|
41
|
+
timeZoneOffsetInMinutes(convertRawProp(context, rawProps, "timeZoneOffsetInMinutes", sourceProps.timeZoneOffsetInMinutes, {0.0})),
|
|
42
|
+
pickerStyle(convertRawProp(context, rawProps, "pickerStyle", sourceProps.pickerStyle, {DatePickerPickerStyle::Spinner}))
|
|
43
|
+
{}
|
|
44
|
+
AndroidDrawerLayoutProps::AndroidDrawerLayoutProps(
|
|
45
|
+
const PropsParserContext &context,
|
|
46
|
+
const AndroidDrawerLayoutProps &sourceProps,
|
|
47
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
48
|
+
|
|
49
|
+
keyboardDismissMode(convertRawProp(context, rawProps, "keyboardDismissMode", sourceProps.keyboardDismissMode, {AndroidDrawerLayoutKeyboardDismissMode::None})),
|
|
50
|
+
drawerBackgroundColor(convertRawProp(context, rawProps, "drawerBackgroundColor", sourceProps.drawerBackgroundColor, {})),
|
|
51
|
+
drawerPosition(convertRawProp(context, rawProps, "drawerPosition", sourceProps.drawerPosition, {AndroidDrawerLayoutDrawerPosition::Left})),
|
|
52
|
+
drawerWidth(convertRawProp(context, rawProps, "drawerWidth", sourceProps.drawerWidth, {})),
|
|
53
|
+
drawerLockMode(convertRawProp(context, rawProps, "drawerLockMode", sourceProps.drawerLockMode, {AndroidDrawerLayoutDrawerLockMode::Unlocked})),
|
|
54
|
+
statusBarBackgroundColor(convertRawProp(context, rawProps, "statusBarBackgroundColor", sourceProps.statusBarBackgroundColor, {}))
|
|
55
|
+
{}
|
|
56
|
+
RCTMaskedViewProps::RCTMaskedViewProps(
|
|
57
|
+
const PropsParserContext &context,
|
|
58
|
+
const RCTMaskedViewProps &sourceProps,
|
|
59
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
{}
|
|
63
|
+
AndroidProgressBarProps::AndroidProgressBarProps(
|
|
64
|
+
const PropsParserContext &context,
|
|
65
|
+
const AndroidProgressBarProps &sourceProps,
|
|
66
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
67
|
+
|
|
68
|
+
styleAttr(convertRawProp(context, rawProps, "styleAttr", sourceProps.styleAttr, {})),
|
|
69
|
+
typeAttr(convertRawProp(context, rawProps, "typeAttr", sourceProps.typeAttr, {})),
|
|
70
|
+
indeterminate(convertRawProp(context, rawProps, "indeterminate", sourceProps.indeterminate, {false})),
|
|
71
|
+
progress(convertRawProp(context, rawProps, "progress", sourceProps.progress, {0.0})),
|
|
72
|
+
animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {true})),
|
|
73
|
+
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
|
|
74
|
+
testID(convertRawProp(context, rawProps, "testID", sourceProps.testID, {""}))
|
|
75
|
+
{}
|
|
76
|
+
RCTProgressViewProps::RCTProgressViewProps(
|
|
77
|
+
const PropsParserContext &context,
|
|
78
|
+
const RCTProgressViewProps &sourceProps,
|
|
79
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
80
|
+
|
|
81
|
+
progressViewStyle(convertRawProp(context, rawProps, "progressViewStyle", sourceProps.progressViewStyle, {RCTProgressViewProgressViewStyle::Default})),
|
|
82
|
+
progress(convertRawProp(context, rawProps, "progress", sourceProps.progress, {0.0})),
|
|
83
|
+
progressTintColor(convertRawProp(context, rawProps, "progressTintColor", sourceProps.progressTintColor, {})),
|
|
84
|
+
trackTintColor(convertRawProp(context, rawProps, "trackTintColor", sourceProps.trackTintColor, {})),
|
|
85
|
+
progressImage(convertRawProp(context, rawProps, "progressImage", sourceProps.progressImage, {})),
|
|
86
|
+
trackImage(convertRawProp(context, rawProps, "trackImage", sourceProps.trackImage, {}))
|
|
87
|
+
{}
|
|
88
|
+
AndroidSwipeRefreshLayoutProps::AndroidSwipeRefreshLayoutProps(
|
|
89
|
+
const PropsParserContext &context,
|
|
90
|
+
const AndroidSwipeRefreshLayoutProps &sourceProps,
|
|
91
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
92
|
+
|
|
93
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
94
|
+
colors(convertRawProp(context, rawProps, "colors", sourceProps.colors, {})),
|
|
95
|
+
progressBackgroundColor(convertRawProp(context, rawProps, "progressBackgroundColor", sourceProps.progressBackgroundColor, {})),
|
|
96
|
+
size(convertRawProp(context, rawProps, "size", sourceProps.size, {AndroidSwipeRefreshLayoutSize::Default})),
|
|
97
|
+
progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})),
|
|
98
|
+
refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false}))
|
|
99
|
+
{}
|
|
100
|
+
PullToRefreshViewProps::PullToRefreshViewProps(
|
|
101
|
+
const PropsParserContext &context,
|
|
102
|
+
const PullToRefreshViewProps &sourceProps,
|
|
103
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
104
|
+
|
|
105
|
+
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
106
|
+
titleColor(convertRawProp(context, rawProps, "titleColor", sourceProps.titleColor, {})),
|
|
107
|
+
title(convertRawProp(context, rawProps, "title", sourceProps.title, {})),
|
|
108
|
+
progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})),
|
|
109
|
+
refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false}))
|
|
110
|
+
{}
|
|
111
|
+
SafeAreaViewProps::SafeAreaViewProps(
|
|
112
|
+
const PropsParserContext &context,
|
|
113
|
+
const SafeAreaViewProps &sourceProps,
|
|
114
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
115
|
+
|
|
116
|
+
emulateUnlessSupported(convertRawProp(context, rawProps, "emulateUnlessSupported", sourceProps.emulateUnlessSupported, {false}))
|
|
117
|
+
{}
|
|
118
|
+
AndroidHorizontalScrollContentViewProps::AndroidHorizontalScrollContentViewProps(
|
|
119
|
+
const PropsParserContext &context,
|
|
120
|
+
const AndroidHorizontalScrollContentViewProps &sourceProps,
|
|
121
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
{}
|
|
125
|
+
RCTSegmentedControlProps::RCTSegmentedControlProps(
|
|
126
|
+
const PropsParserContext &context,
|
|
127
|
+
const RCTSegmentedControlProps &sourceProps,
|
|
128
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
129
|
+
|
|
130
|
+
values(convertRawProp(context, rawProps, "values", sourceProps.values, {})),
|
|
131
|
+
selectedIndex(convertRawProp(context, rawProps, "selectedIndex", sourceProps.selectedIndex, {0})),
|
|
132
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
133
|
+
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
134
|
+
textColor(convertRawProp(context, rawProps, "textColor", sourceProps.textColor, {})),
|
|
135
|
+
backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {})),
|
|
136
|
+
momentary(convertRawProp(context, rawProps, "momentary", sourceProps.momentary, {false}))
|
|
137
|
+
{}
|
|
138
|
+
SliderProps::SliderProps(
|
|
139
|
+
const PropsParserContext &context,
|
|
140
|
+
const SliderProps &sourceProps,
|
|
141
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
142
|
+
|
|
143
|
+
disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})),
|
|
144
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
145
|
+
maximumTrackImage(convertRawProp(context, rawProps, "maximumTrackImage", sourceProps.maximumTrackImage, {})),
|
|
146
|
+
maximumTrackTintColor(convertRawProp(context, rawProps, "maximumTrackTintColor", sourceProps.maximumTrackTintColor, {})),
|
|
147
|
+
maximumValue(convertRawProp(context, rawProps, "maximumValue", sourceProps.maximumValue, {1.0})),
|
|
148
|
+
minimumTrackImage(convertRawProp(context, rawProps, "minimumTrackImage", sourceProps.minimumTrackImage, {})),
|
|
149
|
+
minimumTrackTintColor(convertRawProp(context, rawProps, "minimumTrackTintColor", sourceProps.minimumTrackTintColor, {})),
|
|
150
|
+
minimumValue(convertRawProp(context, rawProps, "minimumValue", sourceProps.minimumValue, {0.0})),
|
|
151
|
+
step(convertRawProp(context, rawProps, "step", sourceProps.step, {0.0})),
|
|
152
|
+
testID(convertRawProp(context, rawProps, "testID", sourceProps.testID, {""})),
|
|
153
|
+
thumbImage(convertRawProp(context, rawProps, "thumbImage", sourceProps.thumbImage, {})),
|
|
154
|
+
thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})),
|
|
155
|
+
trackImage(convertRawProp(context, rawProps, "trackImage", sourceProps.trackImage, {})),
|
|
156
|
+
value(convertRawProp(context, rawProps, "value", sourceProps.value, {0.0}))
|
|
157
|
+
{}
|
|
158
|
+
AndroidSwitchProps::AndroidSwitchProps(
|
|
159
|
+
const PropsParserContext &context,
|
|
160
|
+
const AndroidSwitchProps &sourceProps,
|
|
161
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
162
|
+
|
|
163
|
+
disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})),
|
|
164
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
165
|
+
thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})),
|
|
166
|
+
trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})),
|
|
167
|
+
trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {})),
|
|
168
|
+
value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})),
|
|
169
|
+
on(convertRawProp(context, rawProps, "on", sourceProps.on, {false})),
|
|
170
|
+
thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})),
|
|
171
|
+
trackTintColor(convertRawProp(context, rawProps, "trackTintColor", sourceProps.trackTintColor, {}))
|
|
172
|
+
{}
|
|
173
|
+
SwitchProps::SwitchProps(
|
|
174
|
+
const PropsParserContext &context,
|
|
175
|
+
const SwitchProps &sourceProps,
|
|
176
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
177
|
+
|
|
178
|
+
disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})),
|
|
179
|
+
value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})),
|
|
180
|
+
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
181
|
+
onTintColor(convertRawProp(context, rawProps, "onTintColor", sourceProps.onTintColor, {})),
|
|
182
|
+
thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})),
|
|
183
|
+
thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})),
|
|
184
|
+
trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})),
|
|
185
|
+
trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {}))
|
|
186
|
+
{}
|
|
187
|
+
InputAccessoryProps::InputAccessoryProps(
|
|
188
|
+
const PropsParserContext &context,
|
|
189
|
+
const InputAccessoryProps &sourceProps,
|
|
190
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
191
|
+
|
|
192
|
+
backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {}))
|
|
193
|
+
{}
|
|
194
|
+
UnimplementedNativeViewProps::UnimplementedNativeViewProps(
|
|
195
|
+
const PropsParserContext &context,
|
|
196
|
+
const UnimplementedNativeViewProps &sourceProps,
|
|
197
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
198
|
+
|
|
199
|
+
name(convertRawProp(context, rawProps, "name", sourceProps.name, {""}))
|
|
200
|
+
{}
|
|
201
|
+
ModalHostViewProps::ModalHostViewProps(
|
|
202
|
+
const PropsParserContext &context,
|
|
203
|
+
const ModalHostViewProps &sourceProps,
|
|
204
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
205
|
+
|
|
206
|
+
animationType(convertRawProp(context, rawProps, "animationType", sourceProps.animationType, {ModalHostViewAnimationType::None})),
|
|
207
|
+
presentationStyle(convertRawProp(context, rawProps, "presentationStyle", sourceProps.presentationStyle, {ModalHostViewPresentationStyle::FullScreen})),
|
|
208
|
+
transparent(convertRawProp(context, rawProps, "transparent", sourceProps.transparent, {false})),
|
|
209
|
+
statusBarTranslucent(convertRawProp(context, rawProps, "statusBarTranslucent", sourceProps.statusBarTranslucent, {false})),
|
|
210
|
+
hardwareAccelerated(convertRawProp(context, rawProps, "hardwareAccelerated", sourceProps.hardwareAccelerated, {false})),
|
|
211
|
+
visible(convertRawProp(context, rawProps, "visible", sourceProps.visible, {false})),
|
|
212
|
+
animated(convertRawProp(context, rawProps, "animated", sourceProps.animated, {false})),
|
|
213
|
+
supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", sourceProps.supportedOrientations, {static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)})),
|
|
214
|
+
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0}))
|
|
215
|
+
{}
|
|
216
|
+
|
|
217
|
+
} // namespace react
|
|
218
|
+
} // namespace facebook
|
|
@@ -0,0 +1,218 @@
|
|
|
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: GeneratePropsCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include <react/renderer/components/FBReactNativeSpec/Props.h>
|
|
12
|
+
#include <react/renderer/components/image/conversions.h>
|
|
13
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
14
|
+
#include <react/renderer/core/propsConversions.h>
|
|
15
|
+
|
|
16
|
+
namespace facebook {
|
|
17
|
+
namespace react {
|
|
18
|
+
|
|
19
|
+
ActivityIndicatorViewProps::ActivityIndicatorViewProps(
|
|
20
|
+
const PropsParserContext &context,
|
|
21
|
+
const ActivityIndicatorViewProps &sourceProps,
|
|
22
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
23
|
+
|
|
24
|
+
hidesWhenStopped(convertRawProp(context, rawProps, "hidesWhenStopped", sourceProps.hidesWhenStopped, {false})),
|
|
25
|
+
animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {false})),
|
|
26
|
+
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
|
|
27
|
+
size(convertRawProp(context, rawProps, "size", sourceProps.size, {ActivityIndicatorViewSize::Small}))
|
|
28
|
+
{}
|
|
29
|
+
DatePickerProps::DatePickerProps(
|
|
30
|
+
const PropsParserContext &context,
|
|
31
|
+
const DatePickerProps &sourceProps,
|
|
32
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
33
|
+
|
|
34
|
+
date(convertRawProp(context, rawProps, "date", sourceProps.date, {0.0})),
|
|
35
|
+
initialDate(convertRawProp(context, rawProps, "initialDate", sourceProps.initialDate, {0.0})),
|
|
36
|
+
locale(convertRawProp(context, rawProps, "locale", sourceProps.locale, {})),
|
|
37
|
+
maximumDate(convertRawProp(context, rawProps, "maximumDate", sourceProps.maximumDate, {0.0})),
|
|
38
|
+
minimumDate(convertRawProp(context, rawProps, "minimumDate", sourceProps.minimumDate, {0.0})),
|
|
39
|
+
minuteInterval(convertRawProp(context, rawProps, "minuteInterval", sourceProps.minuteInterval, {DatePickerMinuteInterval::MinuteInterval1})),
|
|
40
|
+
mode(convertRawProp(context, rawProps, "mode", sourceProps.mode, {DatePickerMode::Date})),
|
|
41
|
+
timeZoneOffsetInMinutes(convertRawProp(context, rawProps, "timeZoneOffsetInMinutes", sourceProps.timeZoneOffsetInMinutes, {0.0})),
|
|
42
|
+
pickerStyle(convertRawProp(context, rawProps, "pickerStyle", sourceProps.pickerStyle, {DatePickerPickerStyle::Spinner}))
|
|
43
|
+
{}
|
|
44
|
+
AndroidDrawerLayoutProps::AndroidDrawerLayoutProps(
|
|
45
|
+
const PropsParserContext &context,
|
|
46
|
+
const AndroidDrawerLayoutProps &sourceProps,
|
|
47
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
48
|
+
|
|
49
|
+
keyboardDismissMode(convertRawProp(context, rawProps, "keyboardDismissMode", sourceProps.keyboardDismissMode, {AndroidDrawerLayoutKeyboardDismissMode::None})),
|
|
50
|
+
drawerBackgroundColor(convertRawProp(context, rawProps, "drawerBackgroundColor", sourceProps.drawerBackgroundColor, {})),
|
|
51
|
+
drawerPosition(convertRawProp(context, rawProps, "drawerPosition", sourceProps.drawerPosition, {AndroidDrawerLayoutDrawerPosition::Left})),
|
|
52
|
+
drawerWidth(convertRawProp(context, rawProps, "drawerWidth", sourceProps.drawerWidth, {})),
|
|
53
|
+
drawerLockMode(convertRawProp(context, rawProps, "drawerLockMode", sourceProps.drawerLockMode, {AndroidDrawerLayoutDrawerLockMode::Unlocked})),
|
|
54
|
+
statusBarBackgroundColor(convertRawProp(context, rawProps, "statusBarBackgroundColor", sourceProps.statusBarBackgroundColor, {}))
|
|
55
|
+
{}
|
|
56
|
+
RCTMaskedViewProps::RCTMaskedViewProps(
|
|
57
|
+
const PropsParserContext &context,
|
|
58
|
+
const RCTMaskedViewProps &sourceProps,
|
|
59
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
{}
|
|
63
|
+
AndroidProgressBarProps::AndroidProgressBarProps(
|
|
64
|
+
const PropsParserContext &context,
|
|
65
|
+
const AndroidProgressBarProps &sourceProps,
|
|
66
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
67
|
+
|
|
68
|
+
styleAttr(convertRawProp(context, rawProps, "styleAttr", sourceProps.styleAttr, {})),
|
|
69
|
+
typeAttr(convertRawProp(context, rawProps, "typeAttr", sourceProps.typeAttr, {})),
|
|
70
|
+
indeterminate(convertRawProp(context, rawProps, "indeterminate", sourceProps.indeterminate, {false})),
|
|
71
|
+
progress(convertRawProp(context, rawProps, "progress", sourceProps.progress, {0.0})),
|
|
72
|
+
animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {true})),
|
|
73
|
+
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
|
|
74
|
+
testID(convertRawProp(context, rawProps, "testID", sourceProps.testID, {""}))
|
|
75
|
+
{}
|
|
76
|
+
RCTProgressViewProps::RCTProgressViewProps(
|
|
77
|
+
const PropsParserContext &context,
|
|
78
|
+
const RCTProgressViewProps &sourceProps,
|
|
79
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
80
|
+
|
|
81
|
+
progressViewStyle(convertRawProp(context, rawProps, "progressViewStyle", sourceProps.progressViewStyle, {RCTProgressViewProgressViewStyle::Default})),
|
|
82
|
+
progress(convertRawProp(context, rawProps, "progress", sourceProps.progress, {0.0})),
|
|
83
|
+
progressTintColor(convertRawProp(context, rawProps, "progressTintColor", sourceProps.progressTintColor, {})),
|
|
84
|
+
trackTintColor(convertRawProp(context, rawProps, "trackTintColor", sourceProps.trackTintColor, {})),
|
|
85
|
+
progressImage(convertRawProp(context, rawProps, "progressImage", sourceProps.progressImage, {})),
|
|
86
|
+
trackImage(convertRawProp(context, rawProps, "trackImage", sourceProps.trackImage, {}))
|
|
87
|
+
{}
|
|
88
|
+
AndroidSwipeRefreshLayoutProps::AndroidSwipeRefreshLayoutProps(
|
|
89
|
+
const PropsParserContext &context,
|
|
90
|
+
const AndroidSwipeRefreshLayoutProps &sourceProps,
|
|
91
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
92
|
+
|
|
93
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
94
|
+
colors(convertRawProp(context, rawProps, "colors", sourceProps.colors, {})),
|
|
95
|
+
progressBackgroundColor(convertRawProp(context, rawProps, "progressBackgroundColor", sourceProps.progressBackgroundColor, {})),
|
|
96
|
+
size(convertRawProp(context, rawProps, "size", sourceProps.size, {AndroidSwipeRefreshLayoutSize::Default})),
|
|
97
|
+
progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})),
|
|
98
|
+
refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false}))
|
|
99
|
+
{}
|
|
100
|
+
PullToRefreshViewProps::PullToRefreshViewProps(
|
|
101
|
+
const PropsParserContext &context,
|
|
102
|
+
const PullToRefreshViewProps &sourceProps,
|
|
103
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
104
|
+
|
|
105
|
+
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
106
|
+
titleColor(convertRawProp(context, rawProps, "titleColor", sourceProps.titleColor, {})),
|
|
107
|
+
title(convertRawProp(context, rawProps, "title", sourceProps.title, {})),
|
|
108
|
+
progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})),
|
|
109
|
+
refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false}))
|
|
110
|
+
{}
|
|
111
|
+
SafeAreaViewProps::SafeAreaViewProps(
|
|
112
|
+
const PropsParserContext &context,
|
|
113
|
+
const SafeAreaViewProps &sourceProps,
|
|
114
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
115
|
+
|
|
116
|
+
emulateUnlessSupported(convertRawProp(context, rawProps, "emulateUnlessSupported", sourceProps.emulateUnlessSupported, {false}))
|
|
117
|
+
{}
|
|
118
|
+
AndroidHorizontalScrollContentViewProps::AndroidHorizontalScrollContentViewProps(
|
|
119
|
+
const PropsParserContext &context,
|
|
120
|
+
const AndroidHorizontalScrollContentViewProps &sourceProps,
|
|
121
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
{}
|
|
125
|
+
RCTSegmentedControlProps::RCTSegmentedControlProps(
|
|
126
|
+
const PropsParserContext &context,
|
|
127
|
+
const RCTSegmentedControlProps &sourceProps,
|
|
128
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
129
|
+
|
|
130
|
+
values(convertRawProp(context, rawProps, "values", sourceProps.values, {})),
|
|
131
|
+
selectedIndex(convertRawProp(context, rawProps, "selectedIndex", sourceProps.selectedIndex, {0})),
|
|
132
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
133
|
+
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
134
|
+
textColor(convertRawProp(context, rawProps, "textColor", sourceProps.textColor, {})),
|
|
135
|
+
backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {})),
|
|
136
|
+
momentary(convertRawProp(context, rawProps, "momentary", sourceProps.momentary, {false}))
|
|
137
|
+
{}
|
|
138
|
+
SliderProps::SliderProps(
|
|
139
|
+
const PropsParserContext &context,
|
|
140
|
+
const SliderProps &sourceProps,
|
|
141
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
142
|
+
|
|
143
|
+
disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})),
|
|
144
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
145
|
+
maximumTrackImage(convertRawProp(context, rawProps, "maximumTrackImage", sourceProps.maximumTrackImage, {})),
|
|
146
|
+
maximumTrackTintColor(convertRawProp(context, rawProps, "maximumTrackTintColor", sourceProps.maximumTrackTintColor, {})),
|
|
147
|
+
maximumValue(convertRawProp(context, rawProps, "maximumValue", sourceProps.maximumValue, {1.0})),
|
|
148
|
+
minimumTrackImage(convertRawProp(context, rawProps, "minimumTrackImage", sourceProps.minimumTrackImage, {})),
|
|
149
|
+
minimumTrackTintColor(convertRawProp(context, rawProps, "minimumTrackTintColor", sourceProps.minimumTrackTintColor, {})),
|
|
150
|
+
minimumValue(convertRawProp(context, rawProps, "minimumValue", sourceProps.minimumValue, {0.0})),
|
|
151
|
+
step(convertRawProp(context, rawProps, "step", sourceProps.step, {0.0})),
|
|
152
|
+
testID(convertRawProp(context, rawProps, "testID", sourceProps.testID, {""})),
|
|
153
|
+
thumbImage(convertRawProp(context, rawProps, "thumbImage", sourceProps.thumbImage, {})),
|
|
154
|
+
thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})),
|
|
155
|
+
trackImage(convertRawProp(context, rawProps, "trackImage", sourceProps.trackImage, {})),
|
|
156
|
+
value(convertRawProp(context, rawProps, "value", sourceProps.value, {0.0}))
|
|
157
|
+
{}
|
|
158
|
+
AndroidSwitchProps::AndroidSwitchProps(
|
|
159
|
+
const PropsParserContext &context,
|
|
160
|
+
const AndroidSwitchProps &sourceProps,
|
|
161
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
162
|
+
|
|
163
|
+
disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})),
|
|
164
|
+
enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})),
|
|
165
|
+
thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})),
|
|
166
|
+
trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})),
|
|
167
|
+
trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {})),
|
|
168
|
+
value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})),
|
|
169
|
+
on(convertRawProp(context, rawProps, "on", sourceProps.on, {false})),
|
|
170
|
+
thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})),
|
|
171
|
+
trackTintColor(convertRawProp(context, rawProps, "trackTintColor", sourceProps.trackTintColor, {}))
|
|
172
|
+
{}
|
|
173
|
+
SwitchProps::SwitchProps(
|
|
174
|
+
const PropsParserContext &context,
|
|
175
|
+
const SwitchProps &sourceProps,
|
|
176
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
177
|
+
|
|
178
|
+
disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})),
|
|
179
|
+
value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})),
|
|
180
|
+
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
181
|
+
onTintColor(convertRawProp(context, rawProps, "onTintColor", sourceProps.onTintColor, {})),
|
|
182
|
+
thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})),
|
|
183
|
+
thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})),
|
|
184
|
+
trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})),
|
|
185
|
+
trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {}))
|
|
186
|
+
{}
|
|
187
|
+
InputAccessoryProps::InputAccessoryProps(
|
|
188
|
+
const PropsParserContext &context,
|
|
189
|
+
const InputAccessoryProps &sourceProps,
|
|
190
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
191
|
+
|
|
192
|
+
backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {}))
|
|
193
|
+
{}
|
|
194
|
+
UnimplementedNativeViewProps::UnimplementedNativeViewProps(
|
|
195
|
+
const PropsParserContext &context,
|
|
196
|
+
const UnimplementedNativeViewProps &sourceProps,
|
|
197
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
198
|
+
|
|
199
|
+
name(convertRawProp(context, rawProps, "name", sourceProps.name, {""}))
|
|
200
|
+
{}
|
|
201
|
+
ModalHostViewProps::ModalHostViewProps(
|
|
202
|
+
const PropsParserContext &context,
|
|
203
|
+
const ModalHostViewProps &sourceProps,
|
|
204
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
205
|
+
|
|
206
|
+
animationType(convertRawProp(context, rawProps, "animationType", sourceProps.animationType, {ModalHostViewAnimationType::None})),
|
|
207
|
+
presentationStyle(convertRawProp(context, rawProps, "presentationStyle", sourceProps.presentationStyle, {ModalHostViewPresentationStyle::FullScreen})),
|
|
208
|
+
transparent(convertRawProp(context, rawProps, "transparent", sourceProps.transparent, {false})),
|
|
209
|
+
statusBarTranslucent(convertRawProp(context, rawProps, "statusBarTranslucent", sourceProps.statusBarTranslucent, {false})),
|
|
210
|
+
hardwareAccelerated(convertRawProp(context, rawProps, "hardwareAccelerated", sourceProps.hardwareAccelerated, {false})),
|
|
211
|
+
visible(convertRawProp(context, rawProps, "visible", sourceProps.visible, {false})),
|
|
212
|
+
animated(convertRawProp(context, rawProps, "animated", sourceProps.animated, {false})),
|
|
213
|
+
supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", sourceProps.supportedOrientations, {static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)})),
|
|
214
|
+
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0}))
|
|
215
|
+
{}
|
|
216
|
+
|
|
217
|
+
} // namespace react
|
|
218
|
+
} // namespace facebook
|