Browse Source

Add customStyle to readme

Rich 6 years ago
parent
commit
5fe9089930
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      README.md

+ 11
- 1
README.md View File

@@ -50,7 +50,17 @@ Cause of moving View.propTypes to ViewPropTypes in React Naitve 0.44 (https://gi
50 50
         rel: 'stylesheet'
51 51
     }]}
52 52
     // change script (have to change source to reload on android)
53
-    customScript={`document.body.style.background = 'lightyellow';`} />
53
+    customScript={`document.body.style.background = 'lightyellow';`}
54
+    // add custom CSS to the page's <head>
55
+    customStyle={`
56
+      * {
57
+        font-family: 'Times New Roman';
58
+      }
59
+      p {
60
+        font-size: 16px;
61
+      }
62
+    `}
63
+  />
54 64
 ```
55 65
 
56 66
 # demo