Skip to content

Commit 9ee1d33

Browse files
committed
updated readme some more
1 parent 45afeec commit 9ee1d33

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ class App extends React.Component {
5656
}
5757
}
5858

59-
var styles = StyleSheet.create({
59+
const styles = StyleSheet.create({
6060
a: {
6161
fontWeight: '300',
6262
color: '#FF3366', // make links coloured pink
6363
},
64-
})
64+
});
6565
```
6666

6767
### Custom Link Handling
@@ -70,19 +70,16 @@ When a link is clicked, by default `ReactNative.Linking.openURL` is called with
7070
link url. You can customise what happens when a link is clicked with `onLinkPress`:
7171

7272
```js
73-
var React = require('react')
74-
var ReactNative = require('react-native')
75-
76-
var ContentView = React.createClass({
73+
class App extends React.Component {
7774
render() {
7875
return (
7976
<HTMLView
8077
value={this.props.html}
8178
onLinkPress={(url) => console.log('clicked link: ', url)}
8279
/>
83-
)
80+
);
8481
}
85-
})
82+
}
8683
```
8784

8885

0 commit comments

Comments
 (0)