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.
- package/README.md +21 -6
- 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
|
-
```
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
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
|