[Android] could you update readme for android installation react-native 0.18.0-rc
See original GitHub issuemy MainActivity.java file is
package com.testapp;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import java.util.Arrays;
import java.util.List;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "testapp";
}
/**
* Returns whether dev mode should be enabled.
* This enables e.g. the dev menu.
*/
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
/**
* A list of packages used by the app. If the app uses additional views
* or modules besides the default ones, add more packages here.
*/
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage());
}
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
update readme file for android setup on RN 0.18.0-rc #17
Can you give this a try and let me know if it works? All reactions.
Read more >react-native-device-info/README.md - UNPKG
50, This module defaults to AndroidX you should configure your library versions similar to this in your `android/build.gradle` file's "ext" block.
Read more >react-native - npm
React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on ...
Read more >React native run-android do not updating modified code
When i ran react-native init albums , it was just an index.js file that was created, there was no index.android.js or index.ios.js file...
Read more >react-native-device-info | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alexbndk I changed my code like your,but had a error:“package com.imagepicker does not exist.” I searched the package use google,but I couldn’t find out it.how to solve the problem? I used react-native to develope android.
@codepandy Add
compile project(':react-native-image-picker')
on your android/build.gradle dependencies.