Leon 2 سال پیش
والد
کامیت
330daf11f5
3فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 1 1
      ios/AppDelegate.mm
  2. 0 1
      src/features/trackTimeDuration/components/RecordFastSleep.tsx
  3. 1 1
      src/pages/rn/RNMain.tsx

+ 1 - 1
ios/AppDelegate.mm

@@ -101,7 +101,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
 - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
 {
 //  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
-#if DEBUGaa
+#if DEBUG
   return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
 #else
   return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

+ 0 - 1
src/features/trackTimeDuration/components/RecordFastSleep.tsx

@@ -292,7 +292,6 @@ export default function RecordFastSleep(props: { data: any, type: string, delSuc
             sleepDuration = getDuration(record.sleep)
             showSleep = true
         }
-        console.log(sleepDuration)
         return <View className="fast_sleep_item">
             {
                 rings()

+ 1 - 1
src/pages/rn/RNMain.tsx

@@ -93,7 +93,7 @@ export default function RNMain() {
           },
         }}/>
         {/* <Tab.Screen name='DemoA' component={DemoAPage} /> */}
-        <Tab.Screen name="Food" component={DemoAPage} options={{
+        <Tab.Screen name="Food" component={FoodPage} options={{
           tabBarIcon: ({size,focused,color}) => {
             return (
               <Image