File tree 2 files changed +5
-3
lines changed
hackathon/revolut-kids-clone
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default function App() {
8
8
< View className = "flex-1 items-center justify-center bg-sky-400" >
9
9
< Text > Open up App.tsx to start working on your app!</ Text >
10
10
< StatusBar style = "auto" />
11
- < Row >
11
+ < Row containerStyle = "justify-around w-full py-4" >
12
12
< Button variant = "primary" > Log in</ Button >
13
13
< Button variant = "secondary" > Sign up</ Button >
14
14
</ Row >
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ import React from "react";
3
3
4
4
type ButtonProps = {
5
5
children : React . ReactNode ;
6
+ containerStyle ?: string ;
6
7
} ;
7
8
8
- export const Row = ( { children } : ButtonProps ) => {
9
- return < View className = "flex-row" > { children } </ View > ;
9
+ export const Row = ( { children, containerStyle } : ButtonProps ) => {
10
+ console . log ( "file: Layout.tsx ~ line 10 ~ Row ~ className" , containerStyle ) ;
11
+ return < View className = { `${ containerStyle } flex-row` } > { children } </ View > ;
10
12
} ;
You can’t perform that action at this time.
0 commit comments