Skip to content

Commit bdd2ba2

Browse files
authored
Merge pull request #4873 from GeekyAnts/release/3.4.0-rc.3
Release/3.4.0 rc.3
2 parents 2c0275e + 5f09d4f commit bdd2ba2

File tree

74 files changed

+490
-608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+490
-608
lines changed

example/storybook/stories/components/Wrapper.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
SunIcon,
1212
extendTheme,
1313
Button,
14+
Input,
1415
} from 'native-base';
1516
import type { StorageManager } from 'native-base';
1617
import AsyncStorage from '@react-native-async-storage/async-storage';
@@ -38,6 +39,12 @@ const myTheme = extendTheme({
3839
padding: myPaddingX,
3940
};
4041
},
42+
43+
myNewButton1: (props: any) => {
44+
return {
45+
padding: props.padding,
46+
};
47+
},
4148
},
4249
sizes: {
4350
newsize: ({ mySize }: { mySize: number }) => {
@@ -48,6 +55,27 @@ const myTheme = extendTheme({
4855
},
4956
},
5057

58+
Input: {
59+
variants: {
60+
newsize: ({ mySize }: { mySize: number }) => {
61+
return {
62+
padding: mySize,
63+
};
64+
},
65+
66+
newsize1: (props: any) => {
67+
return {
68+
padding: props.padding,
69+
};
70+
},
71+
},
72+
sizes: {
73+
'my-size': {
74+
padding: 2,
75+
},
76+
},
77+
},
78+
5179
Checkbox: {
5280
sizes: {
5381
myBtn: {
@@ -115,7 +143,9 @@ export function RenderTestButton() {
115143
const [state, setState] = React.useState(1);
116144
return (
117145
<Box style={{ position: 'absolute', top: 10, left: 20 }} m={2} bg="red.100">
146+
<Input m={2} size="my-size" />
118147
<Button
148+
size=""
119149
variant={'myNewButton'}
120150
// title={state.toString()}
121151
onPress={() => setState(state + 1)}

example/yarn.lock

Lines changed: 0 additions & 267 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prettier --write"
3737
]
3838
},
39-
"version": "3.4.0-rc.1",
39+
"version": "3.4.0-rc.3",
4040
"license": "MIT",
4141
"private": false,
4242
"main": "lib/commonjs/index",
@@ -89,7 +89,7 @@
8989
"release-it": "^13.5.8",
9090
"rollup": "^2.34.1",
9191
"rollup-plugin-flow": "^1.1.1",
92-
"typescript": "4.2",
92+
"typescript": "4.6",
9393
"visualize-bundle": "^1.4.0"
9494
},
9595
"peerDependencies": {
@@ -182,7 +182,7 @@
182182
"@react-native-aria/combobox": "^0.2.4-alpha.0",
183183
"@react-native-aria/focus": "^0.2.4",
184184
"@react-native-aria/interactions": "^0.2.2",
185-
"@react-native-aria/listbox": "0.2.4-alpha.3",
185+
"@react-native-aria/listbox": "^0.2.4-alpha.3",
186186
"@react-native-aria/overlays": "0.3.3-rc.0",
187187
"@react-native-aria/radio": "^0.2.4",
188188
"@react-native-aria/slider": "^0.2.5-alpha.1",

src/components/basic/FlatList/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ export interface InterfaceFlatListProps<ItemT>
1212
_contentContainerStyle?: Partial<IFlatListProps<ItemT>>;
1313
}
1414

15-
export type IFlatListProps<ItemT> =
16-
| InterfaceFlatListProps<ItemT>
17-
| CustomProps<'FlatList'>;
15+
export type IFlatListProps<ItemT> = InterfaceFlatListProps<ItemT> &
16+
CustomProps<'FlatList'>;

src/components/basic/KeyboardAvoidingView/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ export interface InterfaceKeyboardAvoidingViewProps
1111
children?: JSX.Element | JSX.Element[] | string | any;
1212
}
1313

14-
export type IKeyboardAvoidingViewProps =
15-
| InterfaceKeyboardAvoidingViewProps
16-
| CustomProps<'KeyboardAvoidingView'>;
14+
export type IKeyboardAvoidingViewProps = InterfaceKeyboardAvoidingViewProps &
15+
CustomProps<'KeyboardAvoidingView'>;

src/components/basic/ScrollView/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ export interface InterfaceScrollViewProps
1515
_contentContainerStyle?: Partial<IScrollViewProps>;
1616
}
1717

18-
export type IScrollViewProps =
19-
| InterfaceScrollViewProps
20-
| CustomProps<'ScrollView'>;
18+
export type IScrollViewProps = InterfaceScrollViewProps &
19+
CustomProps<'ScrollView'>;

src/components/basic/SectionList/types.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface InterfaceSectionListProps<ItemT, sectionT = DefaultSectionT>
1010
StyledProps,
1111
PlatformProps<ISectionListProps<ItemT, sectionT>> {}
1212

13-
export type ISectionListProps<ItemT, sectionT = DefaultSectionT> =
14-
| InterfaceSectionListProps<ItemT, sectionT>
15-
| CustomProps<'SectionList'>;
13+
export type ISectionListProps<
14+
ItemT,
15+
sectionT = DefaultSectionT
16+
> = InterfaceSectionListProps<ItemT, sectionT> & CustomProps<'SectionList'>;

src/components/basic/StatusBar/types.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { StatusBarProps } from 'react-native';
22
import type { CustomProps } from '../../../components/types';
33

44
export interface InterfaceStatusBarProps extends StatusBarProps {}
5-
export type IStatusBarProps =
6-
| InterfaceStatusBarProps
7-
| CustomProps<'StatusBar'>;
5+
export type IStatusBarProps = InterfaceStatusBarProps &
6+
CustomProps<'StatusBar'>;
7+
8+
export type IStatusBarComponentType = (props: IStatusBarProps) => JSX.Element;

src/components/basic/View/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export interface InterfaceViewProps
1111
children?: JSX.Element | JSX.Element[] | string | any;
1212
}
1313

14-
export type IViewProps = InterfaceViewProps | CustomProps<'View'>;
14+
export type IViewProps = InterfaceViewProps & CustomProps<'View'>;

src/components/composites/Actionsheet/types.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { InterfaceButtonProps } from '../../primitives/Button/types';
2-
import type { IBoxProps } from '../../primitives/Box';
2+
import type { InterfaceBoxProps } from '../../primitives/Box';
33
import type { MutableRefObject } from 'react';
44
import type { CustomProps } from '../../../components/types';
55

66
export interface InterfaceActionsheetProps
7-
extends IBoxProps<IActionsheetProps> {
7+
extends InterfaceBoxProps<IActionsheetProps> {
88
/**
99
* If true, the ActionSheet will open. Useful for controllable state behaviour
1010
*/
@@ -30,24 +30,24 @@ export interface InterfaceActionsheetProps
3030
}
3131

3232
export interface IActionsheetContentProps
33-
extends IBoxProps<IActionsheetContentProps> {
33+
extends InterfaceBoxProps<IActionsheetContentProps> {
3434
/**
3535
* Props applied on area above actionsheet content
3636
*/
37-
_dragIndicatorWrapperOffSet?: IBoxProps<IActionsheetContentProps>;
37+
_dragIndicatorWrapperOffSet?: InterfaceBoxProps<IActionsheetContentProps>;
3838
/**
3939
* Props applied on area around drag indicator
4040
*/
41-
_dragIndicatorWrapper?: IBoxProps<IActionsheetContentProps>;
41+
_dragIndicatorWrapper?: InterfaceBoxProps<IActionsheetContentProps>;
4242
/**
4343
* Props applied on drag indicator
4444
*/
45-
_dragIndicator?: IBoxProps<IActionsheetContentProps>;
45+
_dragIndicator?: InterfaceBoxProps<IActionsheetContentProps>;
4646
}
4747
export interface IActionsheetFooterProps
48-
extends IBoxProps<IActionsheetFooterProps> {}
48+
extends InterfaceBoxProps<IActionsheetFooterProps> {}
4949
export interface IActionsheetHeaderProps
50-
extends IBoxProps<IActionsheetHeaderProps> {}
50+
extends InterfaceBoxProps<IActionsheetHeaderProps> {}
5151
export interface IActionsheetItemProps extends InterfaceButtonProps {}
5252

5353
export type IActionsheetComponentType = ((
@@ -75,6 +75,5 @@ export type IActionsheetComponentType = ((
7575
// >;
7676
};
7777

78-
export type IActionsheetProps =
79-
| InterfaceActionsheetProps
80-
| CustomProps<'Actionsheet'>;
78+
export type IActionsheetProps = InterfaceActionsheetProps &
79+
CustomProps<'Actionsheet'>;

0 commit comments

Comments
 (0)