Coder Social home page Coder Social logo

react-native-root-view-background's People

Contributors

johniak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-root-view-background's Issues

Linking package broke project

Performed:
npm install react-native-root-view-background --save
react-native link react-native-root-view-background

And now I have this:

> Task :app:compileDebugJavaWithJavac FAILED
/Users/me/arbtrRNTest1/android/app/src/main/java/com/arbtrrntest1/MainApplication.java:6: error: cannot find symbol
import org.advsoft.rnrootviewbackground.RNRootViewBackgroundPackage;
                                       ^
  symbol:   class RNRootViewBackgroundPackage
  location: package org.advsoft.rnrootviewbackground
/Users/me/arbtrRNTest1/android/app/src/main/java/com/arbtrrntest1/MainApplication.java:29: error: cannot find symbol
            new RNRootViewBackgroundPackage(),
                ^
  symbol: class RNRootViewBackgroundPackage
2 errors

It seems everything is installed as you describe in the manual installation instructions. However, not in MainActivity but MainApplication.

android studio

Thanks for this awesome library!
On android studio 3.3 build tools 27.0.3
when I do react-native link react-native-root-view-background and try to build on android studio, it fails with the error message below:

//MainApplication.java
import org.advsoft.rnrootviewbackground.RNRootViewBackgroundPackage;

Cannot resolve symbol 'RNRootViewBackgroundPackage'

How can I fix this error?

Does not seem to work

Still get a white background

export default class Main extends Component {

componentWillMount = () => {
setRootViewBackgroundColor('#000');
BackHandler.addEventListener('hardwareBackPress', () => Actions.pop());
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.