You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/GetStarted.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,32 @@ type contentState: {
43
43
44
44
See our [`sample`](https://github.com/globocom/react-native-draftjs-render/tree/master/sample) folder for more details.
45
45
46
+
## Props
47
+
48
+
-**contentState**: the Draft.js model with `blocks` and `entityMap`.
49
+
```js
50
+
// Flow type for contentState
51
+
type contentState: {
52
+
blocks:Array<Object>,
53
+
entityMap:Object,
54
+
};
55
+
```
56
+
57
+
-**customStyles**: Object with your custom styles. ([Documentation](https://github.com/globocom/react-native-draftjs-render/blob/master/docs/CustomStyles.md)).
58
+
59
+
-**atomicHandler**: Function to handle atomic types ([Documentation](https://github.com/globocom/react-native-draftjs-render/blob/master/docs/AtomicTypes.md)).
60
+
61
+
-**navigate** (optional): Function to be called when `onPress` is fired.
62
+
63
+
-**orderedListSeparator** (optional): String to be rendered after each number of the ordered lists.
64
+
65
+
-**customBlockHandler** (optional): Default element to be rendered when some type is not knew.
66
+
67
+
-**depthMargin** (optional): Margin left for each level of depth lists.
68
+
69
+
-**textProps** (optional): Object containing all the Text props supported by React Native. (See [Text Props](https://facebook.github.io/react-native/docs/text.html#props)).
0 commit comments