From the course: React Native Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Opening URLs

Opening URLs - React Native Tutorial

From the course: React Native Essential Training

Start my 1-month free trial

Opening URLs

- [Instructor] The last feature we should add to this app is probably the most important feature: a call to action. A button to purchase a deal. We can do that either through the App Store itself, or with a simple web check-out. Payments made through the App Stores have some significant fees. And since this is a pay for good system, we'll just simply take the user to the web check-out screen. The API for every deal actually has a URL that we can use. This is the same deal page, but on the main website, and that page has a check-out button. So all we need to do is just include a button that takes the user to this URL. We can use the linking library that comes with React Native to do so. This library can actually be used for both incoming and outgoing app links. But we need it for just an outgoing link. The syntax is simple. We just need to call the open URL API method. Let's do that. I'll include the button to buy a…

Contents