Skip to content
Closed
Changes from 1 commit
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 oo the device. Note: Phone app is not supported in the simulator.',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Custom schemes may require specific apps to be installed oo the device. Note: Phone app is not supported in the simulator.',
'Custom schemes may require specific apps to be installed on the device. Note: Phone app is not supported in the simulator.',

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh, my bad, I've just fixed it

render: function (): React.Element<typeof IntentAndroidExample> {
return <IntentAndroidExample />;
},
Expand Down