-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to create the most simple native Android component, failing silently #13553
Labels
Resolution: Locked
This issue was locked by the bot.
Comments
where is your stackoverflow question? |
Answered on the SO thread, I think you forgot to add layouting attributes. Just managed to fall into the same pit :) |
That did the trick, thank you so much! Facebook should definitely provide an example like this in the docs! |
@Carpetfizz you can improve the docs by yourself now that you've gained the knowledge! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I'm trying to create a native UI component in Android. I believe I've followed the docs exactly, however the docs do not have an example of the
ReactImageView
which is the class that the view manager serves. I'm simply trying to display an AndroidTextView
in RN. Once I get that to work I will move on to implementing my own class (so I don't strictly needTextView
to work. The result of running this project is that literally nothing happens. It fails silently, and I don't see my"hello from android !"
text appear on the screen and I don't know how to check if RN is even calling my Java code.RCTScannerViewManager.java
RCTScannerViewPackage.java
MainApplication.java
ScannerView.js
index.android.js
I would love to use RN in my project, but there seems to be a lack of documentation online about how to create native modules in Android. I have posted this issue on Stack Overflow, but no one has responded.
The text was updated successfully, but these errors were encountered: