我对 React Native 和 React Native Navigation 还很陌生。我收到一条错误消息:
"message": "No overload matches this call.\n Overload 1 of 2, '(...args: never): void', gave the following error.\n Argument of type 'string' is not assignable to parameter of type 'never'.\n Overload 2 of 2, '(options: never): void', gave the following error.\n Argument of type 'string' is not assignable to parameter of type 'never'.",
Run Code Online (Sandbox Code Playgroud)
关于'Signup'. 以前,我没有遇到这个问题,而且我似乎无法弄清楚为什么会发生这种情况。我发现的所有示例都与导航问题无关。我尝试添加<RootStackParamList>到navigation.navigate<RootStackParamList>('Conversation'),但这只会导致另一个错误,并且将其添加到useNavigation没有执行任何操作。我真的很感激任何关于我为什么会遇到这个问题的帮助或建议。谢谢你!
主屏幕.tsx
import React, { useState, useEffect } from 'react';
import …Run Code Online (Sandbox Code Playgroud)