Change package name for Android in React Native

后端 未结 20 1848
鱼传尺愫
鱼传尺愫 2020-11-30 16:13

I used react-native init MyApp to initialise a new React Native app. This created among others an Android project with the package com.myapp.

20条回答
  •  半阙折子戏
    2020-11-30 16:55

    In VS Code, press Ctrl + Shift + F and enter your old package name in 'Find' and enter your new package in 'Replace'. Then press 'Replace all occurrences'.

    Definitely not the pragmatic way. But, it's done the trick for me.

提交回复
热议问题