I am trying to achieve a similar thing in React Native any idea how can i do this
<form action="http://example.com/some-url-end-point" method="POST">
<input type="hidden" name="q" value="a">
</form>
Is there a possibility to do something similar in React Native. I can do this in a web application. But in react native window.document
doesn't exist. So I can't submit a form dynamically or in any way.
Basically what happens is I send some data to a 3rd party payment gateway with POST method data. Any idea how I can achieve this in React Native?
Edit:
I need a solution that changes when submitted a web view opens up which changes the location of the browser, and sends data to that location in post
method format
A similar question I found regarding this for Javascript implementation was this JavaScript post request like a form submit I need to achieve something similar in react native.