DEV Community

Roderick Vergara
Roderick Vergara

Posted on

React Native & Python

How can I send data from react native to Python? ... I try to make a login where the username and password are received by native reaction but are validated in python. The validation I know how to do it, the problem is how can I pass the username and password to Python.

Top comments (3)

Collapse
 
lamba3 profile image
LaMbA3

to make login you need backend for your app. You probably want to build API and then make post request from react native

Collapse
 
roderickjoel18 profile image
Roderick Vergara

I tried to do it with flask and Axios and it didn't work, I couldn't get the data sent.

Collapse
 
hichemmerniz profile image
HichemMerniz

you can pass data from firebase you should to send data (username + password) to firebase and read data with python and validate its { react <=> firebase <=> python }