Open shadforth opened 4 years ago
This is awesome. The the other thing to think about is whether we disable some functionality from the webview so that they can only sign up, and not visit other links. I think you can inject some javascript before the page loads so we could look into that.
And maybe we could update some styles as well?
Regardless I think this is a good option. Are you happy to card it up?
Good call, I'll card it up and look at it this week!
High-level overview
We currently navigate users from the About screen to the business sign up form on carrythroughcovid.com via
Linking
. This method is a little bit janky because it means users will be redirected on their phones to their default web browser in order to view this page.A more seamless way to view the business sign up form is via
WebView
. ✨With
WebView
, users can view the webpage "natively" within the application without the need to navigate away from the app. The page is effectively embedded within the app.Technical implementation
The current implementation of linking to the business form is below.
With WebView, instead we can register the screen as its own component.
With this implementation, the
TouchableOpacity
changes to the snippet below.Callouts
POC branch
A proof of concept can be found on the spike-business-webview branch.
Screenshot