在我的 app.json 文件夹中,我将所有内容都很好地捆绑在一起,但在安装列表的底部有一个未定义的包:
“未定义”:“反应导航/底部选项卡”
我尝试运行"npm install react-navigation/bottom-tabs"但它引发了此错误:
warn 未定义的包已被忽略,因为它包含无效的配置。原因:找不到模块“undefined/package.json”
以前有人遇到过这样的问题吗?我正在运行React-Native版本 5 Expo。
编辑:事实证明它应该是@react-navigation/bottom-tabs,所以我安装了它并进行了调整;但现在我仍然坚持 app.json 文件夹中原始未定义的包,并且无法摆脱它。
json react-native react-navigation expo react-navigation-bottom-tab
我有一个 React Native 应用程序,我一直在 Expo 的托管工作流程中开发它。我已通过我的 Apple 开发者帐户获取了推送通知令牌。是否可以在托管工作流程中将 APN/FBN 集成到我的应用程序中?我宁愿现在还没有弹出。
apple-push-notifications react-native firebase-notifications expo
我正在开发一个应用程序,有时需要跟踪我的用户,因为他们在应用程序之外。我已经浏览了博览会文档,看来我应该使用前台和后台权限异步函数,但我的博览会应用程序无法识别这两个版本。有人遇到过这种情况么?我该如何解决?下面是我的一些代码:
import * as Permissions from 'expo-permissions';
import * as Request from 'expo-permissions';
import * as Location from 'expo-location';
import Constants from 'expo-constants'
useEffect(() => {
(async () => {
if (Platform.OS === 'android' && !Constants.isDevice) {
setErrorMsg(
'Oops, this will not work on Snack in an Android emulator. Try it on your device!'
);
return;
}
let { status } = await Location.requestForegroundPermissionsAsync();
if (status !== 'granted') {
setErrorMsg('Permission to access location was denied');
return;
}
let location = …Run Code Online (Sandbox Code Playgroud)