Skip to content

Commit a722aaf

Browse files
authored
Fix rn63 typings (#1100)
* WIP - fix typings * Fix more TS issues and aligned with RN63 typings
1 parent 3b684aa commit a722aaf

File tree

19 files changed

+1251
-140
lines changed

19 files changed

+1251
-140
lines changed

generatedTypes/components/badge/index.d.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ declare function createStyles(props: BadgeProps): {
125125
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
126126
textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
127127
textDecorationStyle?: "solid" | "double" | "dotted" | "dashed" | undefined;
128-
textDecorationColor?: string | undefined;
129-
textShadowColor?: string | undefined;
128+
textDecorationColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
129+
textShadowColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
130130
textShadowOffset?: {
131131
width: number;
132132
height: number;
@@ -137,22 +137,22 @@ declare function createStyles(props: BadgeProps): {
137137
fontVariant?: import("react-native").FontVariant[] | undefined;
138138
writingDirection?: "auto" | "ltr" | "rtl" | undefined;
139139
backfaceVisibility?: "visible" | "hidden" | undefined;
140-
borderBottomColor?: string | undefined;
140+
borderBottomColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
141141
borderBottomEndRadius?: number | undefined;
142142
borderBottomLeftRadius?: number | undefined;
143143
borderBottomRightRadius?: number | undefined;
144144
borderBottomStartRadius?: number | undefined;
145145
borderBottomWidth?: number | undefined;
146-
borderColor?: string | undefined;
147-
borderEndColor?: string | undefined;
148-
borderLeftColor?: string | undefined;
146+
borderColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
147+
borderEndColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
148+
borderLeftColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
149149
borderLeftWidth?: number | undefined;
150150
borderRadius?: number | undefined;
151-
borderRightColor?: string | undefined;
151+
borderRightColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
152152
borderRightWidth?: number | undefined;
153-
borderStartColor?: string | undefined;
153+
borderStartColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
154154
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
155-
borderTopColor?: string | undefined;
155+
borderTopColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
156156
borderTopEndRadius?: number | undefined;
157157
borderTopLeftRadius?: number | undefined;
158158
borderTopRightRadius?: number | undefined;
@@ -209,7 +209,7 @@ declare function createStyles(props: BadgeProps): {
209209
width?: string | number | undefined;
210210
zIndex?: number | undefined;
211211
direction?: "ltr" | "rtl" | "inherit" | undefined;
212-
shadowColor?: string | undefined;
212+
shadowColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
213213
shadowOffset?: {
214214
width: number;
215215
height: number;
@@ -228,7 +228,7 @@ declare function createStyles(props: BadgeProps): {
228228
};
229229
labelSmall: {
230230
lineHeight: undefined;
231-
color?: string | undefined;
231+
color?: string | typeof import("react-native").OpaqueColorValue | undefined;
232232
fontFamily?: string | undefined;
233233
fontSize?: number | undefined;
234234
fontStyle?: "normal" | "italic" | undefined;
@@ -237,8 +237,8 @@ declare function createStyles(props: BadgeProps): {
237237
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
238238
textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
239239
textDecorationStyle?: "solid" | "double" | "dotted" | "dashed" | undefined;
240-
textDecorationColor?: string | undefined;
241-
textShadowColor?: string | undefined;
240+
textDecorationColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
241+
textShadowColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
242242
textShadowOffset?: {
243243
width: number;
244244
height: number;
@@ -249,23 +249,23 @@ declare function createStyles(props: BadgeProps): {
249249
fontVariant?: import("react-native").FontVariant[] | undefined;
250250
writingDirection?: "auto" | "ltr" | "rtl" | undefined;
251251
backfaceVisibility?: "visible" | "hidden" | undefined;
252-
backgroundColor?: string | undefined;
253-
borderBottomColor?: string | undefined;
252+
backgroundColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
253+
borderBottomColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
254254
borderBottomEndRadius?: number | undefined;
255255
borderBottomLeftRadius?: number | undefined;
256256
borderBottomRightRadius?: number | undefined;
257257
borderBottomStartRadius?: number | undefined;
258258
borderBottomWidth?: number | undefined;
259-
borderColor?: string | undefined;
260-
borderEndColor?: string | undefined;
261-
borderLeftColor?: string | undefined;
259+
borderColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
260+
borderEndColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
261+
borderLeftColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
262262
borderLeftWidth?: number | undefined;
263263
borderRadius?: number | undefined;
264-
borderRightColor?: string | undefined;
264+
borderRightColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
265265
borderRightWidth?: number | undefined;
266-
borderStartColor?: string | undefined;
266+
borderStartColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
267267
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
268-
borderTopColor?: string | undefined;
268+
borderTopColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
269269
borderTopEndRadius?: number | undefined;
270270
borderTopLeftRadius?: number | undefined;
271271
borderTopRightRadius?: number | undefined;
@@ -322,7 +322,7 @@ declare function createStyles(props: BadgeProps): {
322322
width?: string | number | undefined;
323323
zIndex?: number | undefined;
324324
direction?: "ltr" | "rtl" | "inherit" | undefined;
325-
shadowColor?: string | undefined;
325+
shadowColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
326326
shadowOffset?: {
327327
width: number;
328328
height: number;
@@ -374,7 +374,7 @@ declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps &
374374
/**
375375
* color of border around the badge
376376
*/
377-
borderColor?: string | undefined;
377+
borderColor?: string | typeof import("react-native").OpaqueColorValue | undefined;
378378
/**
379379
* Additional styles for the top container
380380
*/

0 commit comments

Comments
 (0)