johniak / react-native-root-view-background Goto Github PK
View Code? Open in Web Editor NEWSet Root View background color from Javascript (Android/IOS)
License: MIT License
Set Root View background color from Javascript (Android/IOS)
License: MIT License
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.
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?
Still get a white background
export default class Main extends Component {
componentWillMount = () => {
setRootViewBackgroundColor('#000');
BackHandler.addEventListener('hardwareBackPress', () => Actions.pop());
};
I have created a background image in my Android using native technique, this is for splash screen. Like this:
This image stays in the background forever. When keyboard or switching views I sometimes see it. Do you have any ideas on how to remove it?
Thanks for this awesome module. Please share with the world. native.directory and js.coach are awesome and its a cinch to share. I did it with modules like this:
@johniak
please update for react native > 0.60
version 1.0.2 have problem with auto Link in new react native
any update???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.