[solved] navigation.navigate Argument of type ‘string’ is not assignable to parameter of type ‘never’.ts(2769) [React Native]

Content of the error (エラーの内容)

No overload matches this call.
  Overload 1 of 2, '(...args: never): void', gave the following error.
    Argument of type 'string' is not assignable to parameter of type 'never'.
  Overload 2 of 2, '(options: never): void', gave the following error.
    Argument of type 'string' is not assignable to parameter of type 'never'.ts(2769)

Environment (環境)

VSCode
Nodejs (version 16)
Typescript (version 4.3.5)
React Native (version 0.68.2)

Code (コード)

before

  HomeScreen() {
    const navigation = useNavigation();
  
    return <>
      <View>
        <Button title="TopScreen" onPress={() => navigation.navigate('Top')} />
        <Button title="AboutScreen" onPress={() => navigation.navigate('About')} />
      </View>
    </>;
  }

Solution (解決方法)

↓ just add <any> like this. (このように<any>をつけるだけです。)
const navigation = useNavigation<any>();

  HomeScreen() {
    const navigation = useNavigation<any>();
  
    return <>
      <View>
        <Button title="TopScreen" onPress={() => navigation.navigate('Top')} />
        <Button title="AboutScreen" onPress={() => navigation.navigate('About')} />
      </View>
    </>;
  }

Happily, Happily😀 (めでたし、めでたし)