talknagish / react-native-turbo-starter

React 0.68+ Turbo Module starter using codegen with typescript for Objective-C and Java/Kotlin with C++ shared library. 🚀🚀🚀
MIT License
380 stars 27 forks source link

feat(script): add a script to rename the project #34

Open rvasseur31 opened 2 years ago

rvasseur31 commented 2 years ago

Like you mention in this issue : https://github.com/talknagish/react-native-turbo-starter/issues/23, I have created a script to rename the project.

I was inspired by what I found in the branch renaming-project-script.

To use it

You can find the same doc in the readme.md

Exemple

yarn rename -m turbo-tester -c

Options

Name Short name Required Description
--module-name <name> -m <name> yes Your new module name
--clean -c no Remove script dependencies in package.json

Notes

I ran the project on android & ios on a simulator with a macbook pro 13 m1

anujraghuvanshi commented 2 years ago

Can it be something like - https://reactnative.dev/docs/native-modules-setup ? That will be much easier to user A flag with our project name would be plus