import { Linking, StyleSheet, Text, View } from 'react-native' import React, { Component } from 'react'; import { storiesOf, action } from '@kadira/storybook'; class LinkingExample extends Component { render() { return ( { Linking.openURL('https://mathiasbynens.github.io/rel-noopener/malicious.html'); }} style={styles.text}> Linking.openURL (Expect: "The previous tab is safe and intact") target="_blank" (Expect: "The previous tab is safe and intact") ); } } const styles = StyleSheet.create({ text: { marginVertical: 10 } }); storiesOf('api: Linking', module) .add('Safe linking', () => ( ));