Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialcleo inacio
169 PointsHow to integrate React Native app with website
I have a react native app with users and profiles and would like the users to be able to login with their app credentials on the website, as well as integrate their profile to the website. How would you do this? or how would you go about learning how to do this? i.e. technical terms that I can google. Right now I'm google 'how to integrate React native app with website' and nothing useful is coming up :) thanks
2 Answers
Sameer Dewan
Courses Plus Student 13,145 PointsI am a react beginner, but let me see if i can attempt to answer your question?
regardless of where your app lives, natively or on the web, you are obviously from my interpretation of your question having users login with credentials that are remotely saved in a database.
I would just build the website, and re-connect to the database that the native app connects to, pulling in all vital data that the native app would receive just the same on the website instead?
thanks for reading, and please correct if wrong.
Seth Kroger
56,413 PointsReact Native supports the Fetch API: https://facebook.github.io/react-native/docs/network.html
There's also a Treehouse Workshop on Data Fetching with React that explains using fetch().