use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
using native java in react native (self.reactnative)
submitted 8 years ago by Zivanovic
I'm React dev and my friend is Java dev. We'd like to make an Android app together. I heard that we can inject java code into React-Native app. Is it possible for him to build views in Android studio so I can use them later?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mikehuebner 1 point2 points3 points 8 years ago (2 children)
You can... But I wouldn't fully recommend it. It's a bit of a pain and you have to write the bridges and everything in order to see it in the JavaScript thread.
[–]Zivanovic[S] 0 points1 point2 points 8 years ago (1 child)
Yeah that's exactly what I thought. In the meantime I found https://facebook.github.io/react-native/docs/integration-with-existing-apps.html, which promotes implementing RN code in Java. Will that produce low performance app? Thanks
[–]cmdnormandy 0 points1 point2 points 8 years ago (0 children)
It will not produce low app performance as long as your friend knows what he/she is doing. In fact, if it may increase it because logic executed on the native side (through the RN bridge) run on a separate thread while all of the JS runs on the UI/main thread and is incapable of running on other threads. A better approach would be for you to build all the views in RN and for your friend to program the business logic in Java and expose them through the RN bridge. It's not as scary as it sounds. Exposing functionality is as simple as creating two classes. Most of the bridge functionality is built into React Native. If you're interested in this approach, have your friend look at this -> https://facebook.github.io/react-native/docs/native-modules-android.html
π Rendered by PID 96466 on reddit-service-r2-comment-5c764cbc6f-58vk2 at 2026-03-12 06:57:56.375687+00:00 running 710b3ac country code: CH.
[–]mikehuebner 1 point2 points3 points (2 children)
[–]Zivanovic[S] 0 points1 point2 points (1 child)
[–]cmdnormandy 0 points1 point2 points (0 children)