Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28476

React Native Deep Linking and fallback to webpage by passing some data

$
0
0

I have a website (implemented with React) and a React-native app to use camera and process some data.

In my scenario, on the website, there is a button to open the camera by deep-linking to my React-native app which I've already done. When the user clicks the button on the website in his/her phone, the react-native app is opened. This part is already implemented.

After taking a photo and processing it in the app, I want a clean fallback to the website with the processed data to represent it on the website.

The first solution that came to my mind is that maybe I could save the processed data to a JSON file in a certain directory on the phone and exit the app using "react-native-exit-app". After exiting the app, the browser will appear again and I can read the JSON file on the website. But I am not sure if it is a good approach.

So In other words, I just want to pass the processed data to website after exiting the app. What would be the best way to do it?

Thanks


Viewing all articles
Browse latest Browse all 28476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>