File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
docs/src/content/docs/guides Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ export function MyComponent() {
2222Here's a more complete example showing a card component with interactive elements:
2323
2424``` tsx
25- import { View , Text } from " react-native" ;
26- import { Pressable } from " @mgcrea/react-native-tailwind" ;
25+ import { View , Text , Pressable } from " react-native" ;
2726
2827export function Card({ title , description , onPress }) {
2928 return (
@@ -53,10 +52,7 @@ export function SafeView({ children }) {
5352 const insets = useSafeAreaInsets ();
5453
5554 return (
56- <View
57- className = " flex-1 p-4 bg-blue-500"
58- style = { { paddingTop: insets .top }}
59- >
55+ <View className = " flex-1 p-4 bg-blue-500" style = { { paddingTop: insets .top }} >
6056 <Text >Content with safe area</Text >
6157 </View >
6258 );
You can’t perform that action at this time.
0 commit comments