Comments (6)
I got some progress.. if u do NOT rename the project by yarn, you can actually see RN's red background error screen with "Unable to connect with remote debugger"
from react-native-boilerplate.
I found that the gradle API level is 26 so make sure your environment complies.
Next step is to press Ctrl-M in android emulator -> Dev settings, put localhost:8081, then close all cmd boxes and restart.
Viola! It's working!
from react-native-boilerplate.
I'm facing the same issues renaming the project using yarn rename
:
$ react-native-rename xxxxx
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
\android\app\src\main\res\values\strings.xml MODIFIED
\index.js MODIFIED
\package.json MODIFIED
\app.json MODIFIED
\android\settings.gradle MODIFIED
\app.json MODIFIED
The system cannot find the path specified.
\android\app\BUCK MODIFIED
\android\app\build.gradle MODIFIED
\android\app\src\main\AndroidManifest.xml MODIFIED
Done removing previous bundle directory.
Done removing builds.
APP SUCCESSFULLY RENAMED TO "xxxxx"! 🎉 🎉 🎉
With this, the app crashes immediately at startup.
from react-native-boilerplate.
Hi @Zefau ! Please check if all occurences are successfully renamed in :
Commun
App/index.js
:
...
AppRegistry.registerComponent('XXXXXX', () => App)
App/app.json
:
{
"name": "XXXXXX",
"displayName": "XXXXXX"
}
Android
/android/settings.gradle
:
rootProject.name = 'XXXXXX'
...
/android/app/src/main/java/com/[yourprojectname]/MainActivity.java
:
...
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "XXXXXX";
}
...
iOS
app/ios/[YourProjectName]/Info.plist
:
...
<key>CFBundleDisplayName</key>
<string>XXXXXX</string>
...
app/ios/[YourProjectName]/AppDelegate.m
:
...
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"XXXXXX"
initialProperties:nil
launchOptions:launchOptions];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
...
Make sure that you restart your Metro Bundler and rebuild the App.
from react-native-boilerplate.
The project name is updated in the following files
App/index.js
App/app.json
/android/settings.gradle
But the file MainActivity.java
gets deleted once renaming the project. Thus /android/app/src/main/java/com/[yourprojectname]/MainActivity.java
does not exist.
When I copy and edit the files manually, it works.
Edit: Shall I create an issue for this?
from react-native-boilerplate.
Thanks for the PR ! ❤️
Yes can you please create a dedicated issue to this problem ?
from react-native-boilerplate.
Related Issues (20)
- In Window "cp" command will not work while install [BUG]: HOT 2
- [Help Wanted] Redux store best practices HOT 1
- V4 HOT 4
- [NEW FEATURE REQUEST/IDEA]: Support for npm or specify yarn as prerequisite HOT 3
- SSL pinning HOT 2
- [Help]: Material Top Tabs Navigator Doesn't Work HOT 3
- [NEW FEATURE REQUEST/IDEA]: How To handle deep link in this structure HOT 1
- [BUG]: Crash when debug android app HOT 5
- [BUG]: cannot run android HOT 4
- [BUG]: Got Type Errror at NativeWebSocketModule.connect when: Show Element Inspector => Choose Network tab HOT 2
- [BUG]: Windows init projet HOT 3
- [NEW FEATURE REQUEST/IDEA]: Update version react native 0.73
- Add the Beta build page again HOT 1
- [BUG]: Failed run project HOT 5
- [NEW FEATURE REQUEST/IDEA][v4.0.0]: How about if there is an option for enable redux when create new project HOT 1
- [BUG]: Error when create new project HOT 4
- version selection HOT 1
- Application is not running in android(adb). HOT 7
- [BUG]: not able to open this url "https://thecodingmachine.github.io/react-native-boilerplate/docs/BetaBuild/" HOT 3
- Adding a Q&A section to the documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-boilerplate.