-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5458 from GeekyAnts/release/3.4.18
Release/3.4.18
- Loading branch information
Showing
35 changed files
with
430 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { useSx } from 'native-base'; | ||
import type { StyledProps } from 'native-base'; | ||
import { View, Text } from 'react-native'; | ||
|
||
const textStyle: StyledProps = { | ||
color: ['orange.900', 'white', 'black'], | ||
textAlign: 'center', | ||
size: '12', | ||
}; | ||
|
||
export const Example = () => { | ||
const sx = useSx(); | ||
console.log('Size', sx(textStyle)); | ||
return ( | ||
<View | ||
style={[ | ||
sx({ | ||
p: 2, | ||
bg: ['blue.300', 'violet.400', 'red.400'], | ||
width: 48, | ||
height: 48, | ||
}), | ||
{ justifyContent: 'center', alignItems: 'center' }, | ||
]} | ||
> | ||
<Text style={sx(textStyle)}>New Feat useSx in NativeBase</Text> | ||
</View> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react-native'; | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import Wrapper from '../../components/Wrapper'; | ||
import { Example as Basic } from './Basic'; | ||
|
||
storiesOf('useSx', module) | ||
.addDecorator(withKnobs) | ||
.addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) | ||
.add('Basic', () => <Basic />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
691806c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
native-base – ./
native-base-geekyants-team.vercel.app
native-base-git-master-geekyants-team.vercel.app
native-base.vercel.app
storybook.nativebase.io