I am trying to achieve a similar thing in React Native of any idea how I can do this
<form action="http://example.com/some-url-end-point" method="POST">
<input type="hidden" name="q" value="a">
</form>
Is there any way to do something like this in React Native. I can do this in a web application. But in the reaction, native window.documentdoes not exist. Therefore, I cannot present the form dynamically or in any way.
Basically, I send some data to a third-party payment gateway with data from the POST method. Any idea how I can achieve this in React Native?
Edit:
I need a solution that changes when sending a web view that changes the location of the browser and sends data to this place in the formatpost
A similar question I found for implementing Javascript is a request to send JavaScript how to submit a form. I need to achieve something similar in my native reaction.
source
share