0

react-native バージョンを にアップグレードしました0.63.2。次に、Androidアプリに問題があります。

Android アプリが空の画面を表示します。

エラーは次のとおりです。

Warning: Picker has been extracted from react-native core and will be removed in a future release. 
It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. 
See https://github.com/react-native-community/react-native-picker
ERROR    TypeError: Super expression must either be null or a function
ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

どうすればこの問題を解決できますか?

4

2 に答える 2

3

ピッカーは「react-native」インストール ライブラリ@react-native-picker/pickerから削除されました

交換

import {Picker} from 'react-native';

import {Picker} from '@react-native-picker/picker';
于 2020-11-13T04:33:26.573 に答える