Skip to content

Instantly share code, notes, and snippets.

@elhardoum
Created June 4, 2018 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elhardoum/a22ee168ce16b712f6c2d13bbc085b64 to your computer and use it in GitHub Desktop.
Save elhardoum/a22ee168ce16b712f6c2d13bbc085b64 to your computer and use it in GitHub Desktop.

Importing

import Link from './Link'

Example Usage

render()
{
  return (
    <View style={{flex: 1}}>
      <Text>
        We&apos;ve updated our privacy policy. Click <Link href="https://www.google.com/privacy.html">Here</Link> to consent changes.
      </Text>
    
      <Text>
        <Link href="http://example.com" confirm={true}>This link</Link> will prompt for a confirmation before opening in the browser.
      </Text>
    
      <Text>
        <Link
          href="http://example.com"
          style={{backgroundColor: 'red', color: '#000'}}
          confirm={true}
          dialogTitle="You're leaving.."
          dialogText="Are you sure you want to proceed with this URL?">This link</Link> has custom confirmation texts.
      </Text>
    </View>
  )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment