question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] could you update readme for android installation react-native 0.18.0-rc

See original GitHub issue

my 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:closed
  • Created 8 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
codepandycommented, Sep 22, 2016

@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.

0reactions
heliokrogercommented, Jul 19, 2018

@codepandy Add compile project(':react-native-image-picker') on your android/build.gradle dependencies.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found