Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/rn-tester/js/examples/Linking/LinkingExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ class OpenURLButton extends React.Component<Props> {
if (supported) {
Linking.openURL(this.props.url);
} else {
console.log("Don't know how to open URI: " + this.props.url);
console.log(
`Don't know how to open URI: ${
this.props.url
}, ensure you have an app installed that handles the "${
this.props.url.split(':')?.[0]
}" scheme`,
);
}
});
};
Expand Down Expand Up @@ -134,6 +140,8 @@ exports.description = 'Shows how to use Linking to open URLs.';
exports.examples = [
{
title: 'Open external URLs',
description:
'Custom schemes may require specific apps to be installed on the device. Note: Phone app is not supported in the simulator.',
render: function (): React.Element<typeof IntentAndroidExample> {
return <IntentAndroidExample />;
},
Expand Down