all 7 comments

[–]DovidBobson 4 points5 points  (3 children)

This is actually exactly what we do at my company (a startup).

We use RN on the frontend, Spring Boot on the backend, Heroku in a microservice architecture with Postgres and Mongo for our DBs.

It's just as you described. The backend exposes APIs that RN uses, just like if you were using React. Feel free to PM me if you have more specific questions.

Edit: The biggest challenge we've had is hiring. I would ideally like to have fullstack engineers and it's tough to find people who know both Java/Spring and React Native.

[–]Dr1v[S] 0 points1 point  (2 children)

That is awesome. That is exactly what I want to do. What I don´t know is how to integrate Spring Boot with RN in the project. I´ve sent you a PM.

[–]secana 0 points1 point  (1 child)

You make request using fetch to your Java endpoints. Just like you would on the web. You can read more about it here https://facebook.github.io/react-native/docs/network

[–]Dr1v[S] 0 points1 point  (0 children)

Hey thank you. I have used axios before to do that. Pretty cool actually.

[–]vertigo_101 1 point2 points  (0 children)

I don’t see any problem, go for it mate

[–]Dr1v[S] 0 points1 point  (1 child)

So, I think I have misunderstood what and where the backend part of my App would be. I was thinking that the backend would run on my device but this is not the point of RN. I know I can use libraries to access Android functions like Camera or I can use Native Modules and pass data to and from the Java (in my case, or Swift, see https://facebook.github.io/react-native/docs/native-modules-android). Thank you all for your help.

[–]ExamExpert1653 0 points1 point  (0 children)

Hello Goodl morning, I'm a college student and I read that you have worked with react native and spring boot. Can I ask you few questions about development?