Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelpor authored Oct 30, 2018
1 parent d2660da commit c314a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RNDraftJSRender comes with default styles, but you can use your own:
import React from 'react';
import {
AppRegistry,
ScrollView,
StyleSheet,
} from 'react-native';

Expand All @@ -79,7 +80,7 @@ const styles = StyleSheet.flatten({
const MyApp = () => {
const blocks = getRNDraftJSBlocks({ contentState, customStyles: styles });
return (
<View style={{ flex: 1 }}>{blocks}</View>
<ScrollView style={{ flex: 1 }}>{blocks}</ScrollView>
);
};

Expand Down

0 comments on commit c314a7b

Please sign in to comment.