react-native-marked 1.0.0-alpha.1 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # react-native-marked
2
+
2
3
  Markdown support for React Native
4
+
3
5
  ## Installation
4
6
 
5
7
  ```sh
@@ -8,12 +10,25 @@ npm install react-native-marked
8
10
 
9
11
  ## Usage
10
12
 
11
- ```js
12
- import { multiply } from "react-native-marked";
13
-
14
- // ...
15
-
16
- const result = await multiply(3, 7);
13
+ ```jsx
14
+ import * as React from 'react';
15
+ import { Dimensions } from 'react-native';
16
+ import Markdown from 'react-native-marked';
17
+
18
+ const ExampleComponent = () => {
19
+ const { width: windowWidth } = Dimensions.get('window');
20
+ return (
21
+ <Markdown
22
+ value={`#Hello world`}
23
+ contentWidth={windowWidth}
24
+ listProps={{
25
+ initialNumToRender: 8,
26
+ }}
27
+ />
28
+ );
29
+ };
30
+
31
+ export default ExampleComponent;
17
32
  ```
18
33
 
19
34
  ## Contributing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-marked",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "test",
5
5
  "main": "dist/commonjs/index",
6
6
  "module": "dist/module/index",