Skip to content

Commit

Permalink
Merge pull request #4547 from GeekyAnts/release/3.3.3-alpha.2
Browse files Browse the repository at this point in the history
release 3.3.3-alpha.2
  • Loading branch information
surajahmed authored Jan 18, 2022
2 parents 8e4df7a + 34b5113 commit 0da7ae5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prettier --write"
]
},
"version": "3.3.2",
"version": "3.3.3-alpha.2",
"license": "MIT",
"private": false,
"main": "lib/commonjs/index",
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/SimpleGrid/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IBoxProps } from 'native-base';
import type { IBoxProps } from '../../primitives/Box/types';

export type ISimpleGridProps = IBoxProps<ISimpleGridProps> & {
space?: number;
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/Typeahead/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IBoxProps } from 'native-base';
import type { IBoxProps } from '../../primitives/Box/types';

export type ITypeaheadProps = IBoxProps<ITypeaheadProps> & {
options: any[];
Expand Down
12 changes: 7 additions & 5 deletions src/components/primitives/Box/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ViewProps } from 'react-native';
import type { StyledProps } from '../../../theme/types';
import type { IColors } from '../../../theme/base/colors';
import type {
SafeAreaProps,
PlatformProps,
ResponsiveValue,
ColorType,
} from '../../types';
import type { ITextProps } from './../Text/types';

Expand Down Expand Up @@ -34,10 +34,12 @@ export interface IBoxProps<T = null>
* For providing props to Text inside Box
*/
_text?: ITextProps;
bg?: ResponsiveValue<IColors | (string & {}) | ILinearGradientProps>;
background?: ResponsiveValue<IColors | (string & {}) | ILinearGradientProps>;
bgColor?: ResponsiveValue<IColors | (string & {}) | ILinearGradientProps>;
bg?: ResponsiveValue<ColorType | (string & {}) | ILinearGradientProps>;
background?: ResponsiveValue<
ColorType | (string & {}) | ILinearGradientProps
>;
bgColor?: ResponsiveValue<ColorType | (string & {}) | ILinearGradientProps>;
backgroundColor?: ResponsiveValue<
IColors | (string & {}) | ILinearGradientProps
ColorType | (string & {}) | ILinearGradientProps
>;
}
26 changes: 10 additions & 16 deletions src/core/NativeBaseProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,17 @@ const NativeBaseProvider = (props: NativeBaseProviderProps) => {
}
>
<ResponsiveQueryProvider disableCSSMediaQueries={!isSSR}>
<SafeAreaProvider
initialMetrics={
initialWindowMetrics ?? defaultInitialWindowMetricsBasedOnPlatform
}
<HybridProvider
colorModeManager={colorModeManager}
options={theme.config}
>
<HybridProvider
colorModeManager={colorModeManager}
options={theme.config}
>
<OverlayProvider>
<ToastProvider>
<InitializeToastRef />
<SSRProvider>{children}</SSRProvider>
</ToastProvider>
</OverlayProvider>
</HybridProvider>
</SafeAreaProvider>
<OverlayProvider>
<ToastProvider>
<InitializeToastRef />
<SSRProvider>{children}</SSRProvider>
</ToastProvider>
</OverlayProvider>
</HybridProvider>
</ResponsiveQueryProvider>
</SafeAreaProvider>
</NativeBaseConfigProvider>
Expand Down
3 changes: 1 addition & 2 deletions src/utils/getSpacedChildren.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Box } from 'native-base';
import React from 'react';
// import { default as Box } from '../components/primitives/Box';
import { default as Box } from '../components/primitives/Box';
import type { SpaceType as ThemeSpaceType } from '../components/types';
import { ResponsiveQueryContext } from './useResponsiveQuery/ResponsiveQueryProvider';

Expand Down

1 comment on commit 0da7ae5

@vercel
Copy link

@vercel vercel bot commented on 0da7ae5 Jan 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.