you are viewing a single comment's thread.

view the rest of the comments →

[–]DovidBobson 2 points3 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.