React Native 重命名现有Expo应用程序的问题

lmvvr0a8  于 2023-06-24  发布在  React
关注(0)|答案(1)|浏览(138)

我是新的React本地和我想重命名的项目名称和它的包名称我经历了这个
https://github.com/expo/expo/issues/1946--根据这个,我修改了app.json。

Expo {
   name: something 
}

Change package name for Android in React Native-根据这个我安装了重命名包,但得到了下面

A directory should be created using "react-native init"

我还想知道如何在使用expo时检查我的应用程序包名称,因为它不会有android/ios目录。
两者都没有显示出预期的结果。请帮帮忙。

dgiusagp

dgiusagp1#

{
  "expo": {
    "name": "Notes Guru",
    "slug": "Notes-Guru",
    "version": "2.0.0",
    "orientation": "portrait",
    "icon": "./assets/logo.jpg",
    "userInterfaceStyle": "light",
    "notification": {
      "icon": "./assets/logo_mini.png"
    },
    "splash": {
      "image": "./assets/template.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "icon": "./assets/logo.jpg",
      "supportsTablet": true,
      "infoPlist": {
        "NSRemindersUsageDescription": "This app uses the calendar"
      },
      "associatedDomains": [
        "applinks:test.page.link"
      ],
      "bundleIdentifier": "com.jk0712.notesguru"
    },
    "android": {
      "package": "[notesguru.com][1]",
      "versionCode": 2,
      "googleServicesFile": "./google-services.json",
      "adaptiveIcon": {
        "foregroundImage": "./assets/logo.png",
        "backgroundColor": "#FFFFFF"
      }
    },
    "web": {
      "favicon": "./assets/logo.png"
    },
    "extra": {
      "eas": {
        "projectId": "d7e815f1-ef5f-4834-bd4b-69ad85f633e5"
      }
    }
  }
}

相关问题