Skip to content

Commit c5bd1f5

Browse files
authored
style: TypeScript declaration fixes (#144)
1 parent fe5ad12 commit c5bd1f5

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

index.d.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as React from 'react';
55
import {
66
ViewProps,
77
NativeSyntheticEvent,
8-
NativeMethodsMixin,
8+
NativeMethods,
99
Constructor,
1010
TargetedEvent,
1111
} from 'react-native';
@@ -17,17 +17,32 @@ export interface NativeSegmentedControlIOSChangeEvent extends TargetedEvent {
1717

1818
export type FontStyle = {
1919
/**
20-
* Font Color of Segmented Control when Active
20+
* Font Color of Segmented Control
2121
*/
2222
color?: string;
2323
/**
24-
* Font Size of Segmented Control when Active
24+
* Font Size of Segmented Control
2525
*/
2626
fontSize?: number;
2727
/**
28-
* Font Family of the Segmented Control when Active
28+
* Font Family of the Segmented Control
2929
*/
3030
fontFamily?: string;
31+
/**
32+
* Font Weight of the Segmented Control
33+
*/
34+
fontWeight?:
35+
| 'normal'
36+
| 'bold'
37+
| '100'
38+
| '200'
39+
| '300'
40+
| '400'
41+
| '500'
42+
| '600'
43+
| '700'
44+
| '800'
45+
| '900';
3146
};
3247

3348
export interface SegmentedControlProps extends ViewProps {
@@ -115,6 +130,6 @@ export interface SegmentedControlProps extends ViewProps {
115130
declare class SegmentedControlComponent extends React.Component<
116131
SegmentedControlProps
117132
> {}
118-
declare const SegmentedControlBase: Constructor<NativeMethodsMixin> &
133+
declare const SegmentedControlBase: Constructor<NativeMethods> &
119134
typeof SegmentedControlComponent;
120135
export default class SegmentedControl extends SegmentedControlBase {}

0 commit comments

Comments
 (0)