Socket
Book a DemoInstallSign in
Socket

@betomorrow/expo-app-name

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betomorrow/expo-app-name

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
357
64.52%
Maintainers
0
Weekly downloads
 
Created
Source

@betomorrow/expo-app-name

Change app name across variants while keeping constant project file paths (looking at you, iOS).

Rationale: changing name in app.json/app.config.js/app.config.ts also change name of the iOS project, which can break/complicate your pipelines if you 're not using EAS. This plugin modifies CFBundleDisplayName (iOS) and app_name (Android) as a workaround.

Installation in managed Expo projects

Add this package to your dependencies and reference it in the plugins section of your app.json/app.config.js/app.config.ts:

{
    "plugins": [
        "@betomorrow/expo-app-name",
        { "name": "My new app name" }
    ]
}

Plugin expects the app name to be passed. To make it "dynamic", use app.config.js and adjust to your conditions.

Rerun npx expo prebuild --clean for the plugin to apply, including when changing app name.

From now, you can pass your versionCode value as a Gradle property during your build (using Fastlane, environment variables, whatever suits you).

Installation in bare React Native projects

Installing this package in a bare React Native project is pointless since you can put your own signing config and commit it.

Add the package to your npm dependencies

Any package manager will do, adjust to your preferences.

npm install expo-app-name

FAQs

Package last updated on 30 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.