How to update version number of react native app

前端 未结 6 1386
时光说笑
时光说笑 2020-12-12 10:49

I am using React native with Android. How can I update version number in the app? As I am getting this error.

I am generating file as per this url https://facebook.g

6条回答
  •  伪装坚强ぢ
    2020-12-12 11:30

    For those wanting to automate this, and have iOS at the same time, you can use react-native-version to set the version numbers.

    All you need to do is update your version number inside the package.json file and run the following:

    $ npx react-native-version --never-amend
    
    [RNV] Versioning Android...
    [RNV] Android updated
    [RNV] Versioning iOS...
    [RNV] iOS updated
    [RNV] Done
    ✨  Done in 0.39s.
    

    I hope this can help others.

提交回复
热议问题