Skip to content

Commit bb0b6be

Browse files
committed
Convert additional Props/Style types to interface
1 parent 94566e2 commit bb0b6be

6 files changed

Lines changed: 103 additions & 97 deletions

File tree

‎packages/react-native/Libraries/Components/Pressable/Pressable.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type PressableInstance = HostInstance;
3232

3333
export type {PressableAndroidRippleConfig};
3434

35+
/** @build-types emit-as-interface react-native-web compatibility */
3536
export type PressableStateCallbackType = Readonly<{
3637
pressed: boolean,
3738
}>;

‎packages/react-native/Libraries/Components/View/ViewAccessibility.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ export type AccessibilityPropsIOS = Readonly<{
349349
accessibilityRespondsToUserInteraction?: ?boolean,
350350
}>;
351351

352+
/** @build-types emit-as-interface react-native-web compatibility */
352353
export type AccessibilityProps = Readonly<{
353354
...AccessibilityPropsAndroid,
354355
...AccessibilityPropsIOS,

‎packages/react-native/Libraries/Image/ImageProps.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ export type ImagePropsBase = Readonly<{
327327
children?: empty,
328328
}>;
329329

330+
/** @build-types emit-as-interface react-native-web compatibility */
330331
export type ImageProps = Readonly<{
331332
...ImagePropsIOS,
332333
...ImagePropsAndroid,

‎packages/react-native/Libraries/StyleSheet/StyleSheet.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export type TypeForStyleKey<
136136
* object of styles to pass to a View that can't be precomputed with
137137
* StyleSheet.create.
138138
*/
139+
/** @build-types emit-as-interface react-native-web compatibility */
139140
export type ViewStyle = ____ViewStyle_Internal;
140141

141142
/**
@@ -153,6 +154,7 @@ export type ViewStyle = ____ViewStyle_Internal;
153154
* object of styles to pass to a Text that can't be precomputed with
154155
* StyleSheet.create.
155156
*/
157+
/** @build-types emit-as-interface react-native-web compatibility */
156158
export type TextStyle = ____TextStyle_Internal;
157159

158160
/**
@@ -170,6 +172,7 @@ export type TextStyle = ____TextStyle_Internal;
170172
* object of styles to pass to an Image that can't be precomputed with
171173
* StyleSheet.create.
172174
*/
175+
/** @build-types emit-as-interface react-native-web compatibility */
173176
export type ImageStyle = ____ImageStyle_Internal;
174177

175178
/**

‎packages/react-native/Libraries/StyleSheet/StyleSheet.js.flow‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export type TypeForStyleKey<
137137
* object of styles to pass to a View that can't be precomputed with
138138
* StyleSheet.create.
139139
*/
140+
/** @build-types emit-as-interface react-native-web compatibility */
140141
export type ViewStyle = ____ViewStyle_Internal;
141142

142143
/**
@@ -154,6 +155,7 @@ export type ViewStyle = ____ViewStyle_Internal;
154155
* object of styles to pass to a Text that can't be precomputed with
155156
* StyleSheet.create.
156157
*/
158+
/** @build-types emit-as-interface react-native-web compatibility */
157159
export type TextStyle = ____TextStyle_Internal;
158160

159161
/**
@@ -171,6 +173,7 @@ export type TextStyle = ____TextStyle_Internal;
171173
* object of styles to pass to an Image that can't be precomputed with
172174
* StyleSheet.create.
173175
*/
176+
/** @build-types emit-as-interface react-native-web compatibility */
174177
export type ImageStyle = ____ImageStyle_Internal;
175178

176179
/**

0 commit comments

Comments
 (0)