简体   繁体   中英

Unhandled JS Exception: ReferenceError: Can't find variable: i 【what is “ i ” !?!?】react navigation

I am using react native 0.61.5 version.

What is "i"?

你好“我” I looked for "i" in my project. But, as far as I can tell, I couldn't find any mistakes.

I commented out App.tsx. Then commented out the following part and the error disappeared. The same error occurs even if you remove the comment out of the same description.

// const HomeScreen = ({navigation}) => {
//   return (
//     <HomeStack.Navigator>
//       <HomeStack.Screen
//         name="Home"
//         component={Home}
//         options={{
//           headerLeft: () => HeaderDrawer(navigation),
//         }}
//       />
//     </HomeStack.Navigator>
//   );
// };

From this, I realized that react navigation v5 was bad.

Someone please give me information If you are in the same situation, we will ask for information.

I have won. I am crying. At last I found "i". It's my victory of seeing the code for four days. The error was right. I grew up again as a person

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM