Browse Source

update readme

iou90 5 years ago
parent
commit
77982bfdc7
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      README.md

+ 3
- 2
README.md View File

@@ -43,8 +43,6 @@ Cause of moving View.propTypes to ViewPropTypes in React Naitve 0.44 (https://gi
43 43
     if set to true may cause some layout issues (smaller font size) on iOS
44 44
     */
45 45
     scalesPageToFit={Platform.OS === 'Android' ? true : false}
46
-    // baseUrl not work in Android 4.3 or below version
47
-    enableBaseUrl={true}
48 46
     // offset of rn webview margin 
49 47
     heightOffset={5}
50 48
     // default width is the width of screen
@@ -58,6 +56,9 @@ Cause of moving View.propTypes to ViewPropTypes in React Naitve 0.44 (https://gi
58 56
     animationEasing={Easing.ease()},
59 57
     // or uri
60 58
     source={{ html: `<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>` }}
59
+    // 'web/' by default on iOS, and 'file:///android_asset/web/' on Android, and baseUrl not work in android 4.3 or below version
60
+    baseUrl: 'webAssets/',
61
+    // add baseUrl/files... to project root
61 62
     /* 
62 63
     use local or remote files
63 64
     local files only works on enable baseUrl on Android,