admin管理员组文章数量:1291135
Problem Description
I am creating two React Native CLI (not Expo) apps using the following commands:
npx @react-native-community/cli@latest init AwesomeProject # created on Jan 21
npx @react-native-community/cli@latest init PasswordGen # created on Jan 22
Steps Taken
Created two React Native apps:
npx @react-native-community/cli@latest init AwesomeProject # created on Jan 21 npx @react-native-community/cli@latest init PasswordGen # created on Jan 22
Ran the Metro server and emulator commands for both projects:
cd AwesomeProject
npx react-native run-android
npx react-native start
Tried the same approach on a different computer, but the problem persists.
Expected Behavior
For both AwesomeProject
and PasswordGen
, I expected the Metro server to detect the apps and display the following options:
i- open on iOS
a - open on Android
r - reload app(s)
d - open Dev Menu
j - open DevTools
Actual Behavior
For
AwesomeProject
(created on Jan 21), the Metro server shows all options correctly:i- open on iOS a - open on Android r - reload app(s) d - open Dev Menu j - open DevTools
For
PasswordGen
(created on Jan 22), the Metro server only shows limited options:r - reload app(s) d - open Dev Menu j - open DevTools
The
PasswordGen
app is not detected as a complete app by the Metro server.
本文标签: androidIssue with Metro Server Detecting Only One React Native AppStack Overflow
版权声明:本文标题:android - Issue with Metro Server Detecting Only One React Native App - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741526768a2383515.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论