Actions can be assigned to any Button or Touchable in your project. After you select a Button or Touchable in the Layer Tree, go to the Interactions tab of the Properties Panel and click the '+' next to the 'Action' header to open the menu of Actions to choose from.
Once opened, you will be able to assign one of the following options:
In the dropdown, select a screen in the current navigator or a different navigator to navigate to. (Stack Navigator only: Aside from screens and navigators, a
Open web browser
Enter the URL for a website which will be opened in-app when tapped.
Open Link with Linking
Configure a URL Scheme to open applications or the browser outside of the app.
Run a function you've created in the Custom Screen Code window.
Learn how to configure in this article: Sending Data.
You can add multiple actions to your Button or Touchable by clicking the '+' button in the Actions panel and selecting additional actions from the dropdown.
Opens a new email in the Mail app with the email address provided set as the recipient.
Prompts user to call the the phone number provided.
Opens a new message in the SMS app with the phone number provided set as the recipient.
Opens the website in the default browser, outside the app.
If Google Maps is installed on the user's device, the Google Maps application will open. If it isn't installed, Google Maps will open in the browser. Check the Google Maps Developer Guide for more information on constructing valid URLs.
Launch Google Maps with a list of locations that match the query with the closest one being pinned.
Launch Google Maps with directions to the location defined in the URL from the user's current location.
Launch a blank map with the user's location highlighted.
Launch a Street View panorama of the selected location.
Updated 5 months ago