Browse Source

update readme & demo;

iou90 7 years ago
parent
commit
8eea535664
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      README.md
  2. 1
    1
      demo/explorer.js

+ 2
- 2
README.md View File

@@ -7,8 +7,8 @@ An auto height webview for React Native.
7 7
 `react-native link react-native-autoheight-webview`
8 8
 
9 9
 ## showcase
10
-![react-native-autoheight-webview](https://media.giphy.com/media/xUA7bj3KScXHeom1I4/giphy.gif) 
11
-![react-native-autoheight-webview](https://media.giphy.com/media/l0Iyaze16ATSDIZoI/giphy.gif)
10
+![react-native-autoheight-webview ios](https://media.giphy.com/media/l4FGyhnvWfUgxCfe0/200w.gif) 
11
+![react-native-autoheight-webview android](https://media.giphy.com/media/xUPGcIO0a1ggESelfq/200w.gif)
12 12
 
13 13
 # usage
14 14
 

+ 1
- 1
demo/explorer.js View File

@@ -21,7 +21,7 @@ export default class Explorer extends Component {
21 21
         this.html0 = `<p style="font-weight: 400;font-style: normal;font-size: 21px;line-height: 1.58;letter-spacing: -.003em;">Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. <span style="background-color: transparent !important;background-image: linear-gradient(to bottom, rgba(146, 249, 190, 1), rgba(146, 249, 190, 1));">If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn’t only tag the piece with “moving”. I’d also use the tags “pets”, “marriage”, “career change”, and “travel tips”.</span></p>`;
22 22
         this.html1 = `<p>Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. <span>If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn’t only tag the piece with “moving”. I’d also use the tags “pets”, “marriage”, “career change”, and “travel tips”.</span></p>`;
23 23
         this.script0 = '';
24
-        this.script1 = `document.body.style.background = 'lightyellow';`;
24
+        this.script1 = `document.body.style.background = 'cornflowerblue';`;
25 25
         this.changeSource = this.changeSource.bind(this);
26 26
         this.changeScript = this.changeScript.bind(this);
27 27
         this.state = {