在从0.17升级到0.19之后,每当我试图使用build application ( react-native run-android )时,我都会得到这个错误。我试着把评级降到0.17,但没有帮助,问题也是一样的。我也在网上搜索过,但是找不到与我的问题类似的东西。我想问题在于gradle,而不是react-native本身,但我不知道如何解决它?!
以下是错误:
Starting JS server...
Starting the packager in a new window is not supported on Windows yet.
Please start it manuall
我正在使用react-native-google-places,但我需要限制2个或更多国家的搜索,如丹麦和美国。但在react-native-google-places中,我唯一的选择是country,它只接受一个国家。如何不使用纬度、经度和半径来解决这个问题?
RNGooglePlaces.openAutocompleteModal({
country: 'us', // need to use 'us', 'dk' or somethink like ['us', 'dk']
我不知道到底发生了什么,但我无法运行未发生错误的本机链接。
CLI输出:
react-native link --verbose
debug Available platforms: iOS, Android
debug Targeted platforms: iOS, Android
debug Getting project config for iOS...
debug Getting project config for Android...
error No package found. Are you sure this is a React Native project?
err
许多Android手机,如Google Pixel 3和小米Mix2等,没有任何屏幕上或物理导航按钮,它们通过手势工作。在React-Native中,这是一个巨大的问题,因为在现代设备上,如果我检测到屏幕的高度,就会从底部留下一些空白屏幕。 我尝试过这个解决方案,它在有硬件或屏幕按钮的设备上工作得很好,但对于没有按钮的现代设备,它会返回null。Determine whether hardware buttons are drawn on screen in React Native 我当前的RN版本: 0.59.5 图片来源:This is the UI Screenshot From M
我得到了这个错误
RCTFatalException: Unhandled JS Exception: No dimension set for key windowmh_execute_header Unhandled JS Exception: No dimension set for key window, stack: value@75:505
在生产中。我认为这是RN的一个问题:
该线程中的所有解决方案看起来都是针对开发环境的。有没有办法在生产环境中修复这个问题(当然是在上传新版本之后)?
"dependencies": {
"@yfuks/rea
我见过这个问题被问了好几次,但似乎没有任何答案能解决我的问题(有些答案现在可能已经过时了)
我有一个进程正在使用8081端口,这是我无法杀死的。所以我不得不:
react-native start --port 8082
到目前一切尚好。
关于iOS的问题
当我执行react-native run-ios时,我在终端Port 8081 already in use, packager is either not running or not running correctly.中得到以下错误。我已经看到多个答案在AppDelegate.m中说要更改某些内容,但是在该文件中没有任何声明端口的内容