lv há 1 mês atrás
pai
commit
ed50933cd4
2 ficheiros alterados com 13 adições e 6 exclusões
  1. 5 4
      src/app/_layout.tsx
  2. 8 2
      src/app/customer/add.tsx

+ 5 - 4
src/app/_layout.tsx

@@ -5,14 +5,13 @@ import '@/global.css';
 import api from '@/utils/api';
 import { AuthProvider } from '@/utils/auth';
 import { getGlobalStorage } from '@/utils/storage';
-import { Icon, Modal, Provider, Toast } from '@ant-design/react-native';
+import { Modal, Provider, Toast } from '@ant-design/react-native';
 import {
   DefaultTheme as ReactNavigationDefaultTheme,
   Theme,
   ThemeProvider,
 } from '@react-navigation/native';
 import * as application from 'expo-application';
-import { BlurView } from 'expo-blur';
 import { useFonts } from 'expo-font';
 import { Image } from 'expo-image';
 import { Stack, useRouter } from 'expo-router';
@@ -182,8 +181,10 @@ export default function RootLayout() {
             <Stack screenOptions={{
               headerShown: true,
               headerTransparent: true,
-              headerBackground: ()=><BlurView style={{flex: 1}} />,
-              headerLeft: ({ canGoBack }) => canGoBack && <Icon name="arrow-left" size={24} onPress={router.back} />,
+              headerBlurEffect: 'light',
+              headerBackButtonDisplayMode: 'minimal',
+              // headerBackground: ()=><BlurView tint='light' style={{ flex: 1}} />,
+              // headerLeft: ({ canGoBack }) => canGoBack && <Icon name="arrow-left" size={24} />,
               animation: 'ios_from_right'
             }}>
               <Stack.Screen name="(tabs)" options={{headerShown: false}} />

+ 8 - 2
src/app/customer/add.tsx

@@ -1,7 +1,8 @@
+import { Button } from "@ant-design/react-native";
 import { KeyboardAvoidingView, Platform, ScrollView, View } from "react-native";
 
 export default function AddCustomerScreen() {
-    return <View className="flex-1 bg-red-500">
+    return <View className="flex-1">
       <KeyboardAvoidingView
         className="flex-1"
         behavior={Platform.OS === 'ios' ? 'padding' : undefined}
@@ -16,7 +17,12 @@ export default function AddCustomerScreen() {
           <View className="absolute -top-24 -right-24 h-96 w-96 rounded-full bg-primary-container/10" />
           <View className="absolute top-32 -left-20 h-64 w-64 rounded-full bg-secondary-container/20" />
           <View className="absolute -bottom-16 right-0 h-48 w-48 rounded-full bg-primary-fixed/50" />
-
+          <Button type="primary">ddd</Button>
+          <Button type="primary">ddd</Button>
+          <Button type="primary">ddd</Button>
+          <Button type="primary">ddd</Button>
+          <Button type="primary">ddd</Button>
+          <Button type="primary">ddd</Button>
           </ScrollView>
           </KeyboardAvoidingView>
     </View>