peggyrayzis / react-native-create-bridge

A CLI tool that bridges React Native modules & UI components with ease 🎉
MIT License
1.02k stars 63 forks source link

Question: How to follow the README.md #61

Open deggen84 opened 5 years ago

deggen84 commented 5 years ago

This is not a bug report, just a question. Im a total beginner.

I called (all on the same folder level) : react-native init AwesomeProject react-native-create-library MyLibrary react-native new-module (using all default value)

How do I answer this : import com.yourapp.yourmodule.YourModulePackage;

Thanks!

morenoh149 commented 5 years ago

read the readme.

To complete the bridging process, look for MainApplication.java in android/app/src/main/java/com/yourapp

edit this file adding the import

deggen84 commented 5 years ago

Thanks for the reply! Yup i know i need to add it to MainApplication.java

What i dont know is what is “yourapp”, “yourmodule”, and “YourModulePackage”

morenoh149 commented 5 years ago

Those are Whatever you named your project

deggen84 commented 5 years ago

I do not know when and if I already named my project.

Based on calling these commands: react-native init AwesomeProject react-native-create-library MyLibrary react-native new-module

am I correct to assume that I have already named my project? If it would not be too much of a hassle, would you please spell out the names for "yourapp", "yourmodule", and "YourModulePackage"?

And if i have not yet named them, do I still need to do another step to provide the project name?

Thanks again in advance.

morenoh149 commented 5 years ago

react-native init AwesomeProject

names your project AwesomeProject