File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change
1
+ export * from './src/Button' ;
Original file line number Diff line number Diff line change 2
2
"name" : " design-system" ,
3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
+ "main" : " index.ts" ,
5
6
"scripts" : {
6
7
"storybook" : " storybook dev -p 6006" ,
7
8
"build-storybook" : " storybook build"
Original file line number Diff line number Diff line change @@ -7,13 +7,11 @@ export type ButtonProps = {
7
7
} ;
8
8
9
9
export const Button = ( { text, onPress } : ButtonProps ) => (
10
- < View className = "justify-start flex-1" >
11
- < TouchableOpacity
12
- className = "px-4 py-2 flex justify-start bg-purple-700 rounded-md"
13
- onPress = { onPress }
14
- activeOpacity = { 0.8 }
15
- >
16
- < Text className = "text-white text-base font-bold" > { text } </ Text >
17
- </ TouchableOpacity >
18
- </ View >
10
+ < TouchableOpacity
11
+ className = "px-4 py-2 flex justify-start bg-purple-700 rounded-md"
12
+ onPress = { onPress }
13
+ activeOpacity = { 0.8 }
14
+ >
15
+ < Text className = "text-white text-base font-bold" > { text } </ Text >
16
+ </ TouchableOpacity >
19
17
) ;
Original file line number Diff line number Diff line change 1
1
const { tailwindConfig } = require ( 'tailwind-config' ) ;
2
-
3
2
module . exports = {
4
3
...tailwindConfig ,
5
4
} ;
You can’t perform that action at this time.
0 commit comments