@@ -128,8 +128,8 @@ declare function createStyles(props: BadgeProps): {
128
128
textAlign ?: "auto" | "left" | "right" | "center" | "justify" | undefined ;
129
129
textDecorationLine ?: "none" | "underline" | "line-through" | "underline line-through" | undefined ;
130
130
textDecorationStyle ?: "solid" | "double" | "dotted" | "dashed" | undefined ;
131
- textDecorationColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
132
- textShadowColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
131
+ textDecorationColor ?: import ( "react-native" ) . ColorValue | undefined ;
132
+ textShadowColor ?: import ( "react-native" ) . ColorValue | undefined ;
133
133
textShadowOffset ?: {
134
134
width : number ;
135
135
height : number ;
@@ -140,22 +140,22 @@ declare function createStyles(props: BadgeProps): {
140
140
fontVariant ?: import ( "react-native" ) . FontVariant [ ] | undefined ;
141
141
writingDirection ?: "auto" | "ltr" | "rtl" | undefined ;
142
142
backfaceVisibility ?: "visible" | "hidden" | undefined ;
143
- borderBottomColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
143
+ borderBottomColor ?: import ( "react-native" ) . ColorValue | undefined ;
144
144
borderBottomEndRadius ?: number | undefined ;
145
145
borderBottomLeftRadius ?: number | undefined ;
146
146
borderBottomRightRadius ?: number | undefined ;
147
147
borderBottomStartRadius ?: number | undefined ;
148
148
borderBottomWidth ?: number | undefined ;
149
- borderColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
150
- borderEndColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
151
- borderLeftColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
149
+ borderColor ?: import ( "react-native" ) . ColorValue | undefined ;
150
+ borderEndColor ?: import ( "react-native" ) . ColorValue | undefined ;
151
+ borderLeftColor ?: import ( "react-native" ) . ColorValue | undefined ;
152
152
borderLeftWidth ?: number | undefined ;
153
153
borderRadius ?: number | undefined ;
154
- borderRightColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
154
+ borderRightColor ?: import ( "react-native" ) . ColorValue | undefined ;
155
155
borderRightWidth ?: number | undefined ;
156
- borderStartColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
156
+ borderStartColor ?: import ( "react-native" ) . ColorValue | undefined ;
157
157
borderStyle ?: "solid" | "dotted" | "dashed" | undefined ;
158
- borderTopColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
158
+ borderTopColor ?: import ( "react-native" ) . ColorValue | undefined ;
159
159
borderTopEndRadius ?: number | undefined ;
160
160
borderTopLeftRadius ?: number | undefined ;
161
161
borderTopRightRadius ?: number | undefined ;
@@ -165,8 +165,8 @@ declare function createStyles(props: BadgeProps): {
165
165
opacity ?: number | undefined ;
166
166
elevation ?: number | undefined ;
167
167
alignContent ?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined ;
168
- alignItems ?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined ;
169
- alignSelf ?: "auto" | "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined ;
168
+ alignItems ?: import ( "react-native" ) . FlexAlignType | undefined ;
169
+ alignSelf ?: "auto" | import ( "react-native" ) . FlexAlignType | undefined ;
170
170
aspectRatio ?: number | undefined ;
171
171
borderEndWidth ?: string | number | undefined ;
172
172
borderStartWidth ?: string | number | undefined ;
@@ -212,7 +212,7 @@ declare function createStyles(props: BadgeProps): {
212
212
width ?: string | number | undefined ;
213
213
zIndex ?: number | undefined ;
214
214
direction ?: "ltr" | "rtl" | "inherit" | undefined ;
215
- shadowColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
215
+ shadowColor ?: import ( "react-native" ) . ColorValue | undefined ;
216
216
shadowOffset ?: {
217
217
width : number ;
218
218
height : number ;
@@ -231,7 +231,7 @@ declare function createStyles(props: BadgeProps): {
231
231
} ;
232
232
labelSmall : {
233
233
lineHeight : undefined ;
234
- color ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
234
+ color ?: import ( "react-native" ) . ColorValue | undefined ;
235
235
fontFamily ?: string | undefined ;
236
236
fontSize ?: number | undefined ;
237
237
fontStyle ?: "normal" | "italic" | undefined ;
@@ -240,8 +240,8 @@ declare function createStyles(props: BadgeProps): {
240
240
textAlign ?: "auto" | "left" | "right" | "center" | "justify" | undefined ;
241
241
textDecorationLine ?: "none" | "underline" | "line-through" | "underline line-through" | undefined ;
242
242
textDecorationStyle ?: "solid" | "double" | "dotted" | "dashed" | undefined ;
243
- textDecorationColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
244
- textShadowColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
243
+ textDecorationColor ?: import ( "react-native" ) . ColorValue | undefined ;
244
+ textShadowColor ?: import ( "react-native" ) . ColorValue | undefined ;
245
245
textShadowOffset ?: {
246
246
width : number ;
247
247
height : number ;
@@ -252,23 +252,23 @@ declare function createStyles(props: BadgeProps): {
252
252
fontVariant ?: import ( "react-native" ) . FontVariant [ ] | undefined ;
253
253
writingDirection ?: "auto" | "ltr" | "rtl" | undefined ;
254
254
backfaceVisibility ?: "visible" | "hidden" | undefined ;
255
- backgroundColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
256
- borderBottomColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
255
+ backgroundColor ?: import ( "react-native" ) . ColorValue | undefined ;
256
+ borderBottomColor ?: import ( "react-native" ) . ColorValue | undefined ;
257
257
borderBottomEndRadius ?: number | undefined ;
258
258
borderBottomLeftRadius ?: number | undefined ;
259
259
borderBottomRightRadius ?: number | undefined ;
260
260
borderBottomStartRadius ?: number | undefined ;
261
261
borderBottomWidth ?: number | undefined ;
262
- borderColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
263
- borderEndColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
264
- borderLeftColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
262
+ borderColor ?: import ( "react-native" ) . ColorValue | undefined ;
263
+ borderEndColor ?: import ( "react-native" ) . ColorValue | undefined ;
264
+ borderLeftColor ?: import ( "react-native" ) . ColorValue | undefined ;
265
265
borderLeftWidth ?: number | undefined ;
266
266
borderRadius ?: number | undefined ;
267
- borderRightColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
267
+ borderRightColor ?: import ( "react-native" ) . ColorValue | undefined ;
268
268
borderRightWidth ?: number | undefined ;
269
- borderStartColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
269
+ borderStartColor ?: import ( "react-native" ) . ColorValue | undefined ;
270
270
borderStyle ?: "solid" | "dotted" | "dashed" | undefined ;
271
- borderTopColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
271
+ borderTopColor ?: import ( "react-native" ) . ColorValue | undefined ;
272
272
borderTopEndRadius ?: number | undefined ;
273
273
borderTopLeftRadius ?: number | undefined ;
274
274
borderTopRightRadius ?: number | undefined ;
@@ -278,8 +278,8 @@ declare function createStyles(props: BadgeProps): {
278
278
opacity ?: number | undefined ;
279
279
elevation ?: number | undefined ;
280
280
alignContent ?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined ;
281
- alignItems ?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined ;
282
- alignSelf ?: "auto" | "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined ;
281
+ alignItems ?: import ( "react-native" ) . FlexAlignType | undefined ;
282
+ alignSelf ?: "auto" | import ( "react-native" ) . FlexAlignType | undefined ;
283
283
aspectRatio ?: number | undefined ;
284
284
borderEndWidth ?: string | number | undefined ;
285
285
borderStartWidth ?: string | number | undefined ;
@@ -325,7 +325,7 @@ declare function createStyles(props: BadgeProps): {
325
325
width ?: string | number | undefined ;
326
326
zIndex ?: number | undefined ;
327
327
direction ?: "ltr" | "rtl" | "inherit" | undefined ;
328
- shadowColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
328
+ shadowColor ?: import ( "react-native" ) . ColorValue | undefined ;
329
329
shadowOffset ?: {
330
330
width : number ;
331
331
height : number ;
@@ -377,7 +377,7 @@ declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps &
377
377
/**
378
378
* color of border around the badge
379
379
*/
380
- borderColor ?: string | typeof import ( "react-native" ) . OpaqueColorValue | undefined ;
380
+ borderColor ?: import ( "react-native" ) . ColorValue | undefined ;
381
381
/**
382
382
* Additional styles for the top container
383
383
*/
@@ -396,7 +396,7 @@ declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps &
396
396
/**
397
397
* Renders an icon badge
398
398
*/
399
- icon ?: number | import ( "react-native" ) . ImageURISource | import ( "react-native" ) . ImageURISource [ ] | undefined ;
399
+ icon ?: ImageSourcePropType | undefined ;
400
400
/**
401
401
* Additional styling to badge icon
402
402
*/
0 commit comments