Skip to content

Commit c314a7b

Browse files
authored
Update README.md
1 parent d2660da commit c314a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ RNDraftJSRender comes with default styles, but you can use your own:
5959
import React from 'react';
6060
import {
6161
AppRegistry,
62+
ScrollView,
6263
StyleSheet,
6364
} from 'react-native';
6465

@@ -79,7 +80,7 @@ const styles = StyleSheet.flatten({
7980
const MyApp = () => {
8081
const blocks = getRNDraftJSBlocks({ contentState, customStyles: styles });
8182
return (
82-
<View style={{ flex: 1 }}>{blocks}</View>
83+
<ScrollView style={{ flex: 1 }}>{blocks}</ScrollView>
8384
);
8485
};
8586

0 commit comments

Comments
 (0)