File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ import {
5555import RNDraftJSRender from ' react-native-draftjs-render' ;
5656import contentState from ' DraftJs/contentState' ;
5757
58- const styles = StyleSheet .create ({
58+ const styles = StyleSheet .flatten ({
5959 paragraph: {
6060 color: ' pink' ,
6161 fontSize: 18 ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111import RNDraftJSRender from ' react-native-draftjs-render' ;
1212import contentState from ' DraftJs/contentState' ;
1313
14- const styles = StyleSheet .create ({
14+ const styles = StyleSheet .flatten ({ // Use .flatten over .create
1515 ' header-one' : {
1616 fontSize: 20 ,
1717 },
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const styles = StyleSheet.create({
2626 } ,
2727} ) ;
2828
29- const customStyles = {
29+ const customStyles = StyleSheet . flatten ( {
3030 unstyled : {
3131 fontSize : 18 ,
3232 fontWeight : 'normal' ,
@@ -88,7 +88,7 @@ const customStyles = {
8888 viewAfterList : {
8989 marginBottom : 32 ,
9090 } ,
91- } ;
91+ } ) ;
9292
9393const atomicHandler = ( item : Object ) : any => {
9494 switch ( item . data . type ) {
You can’t perform that action at this time.
0 commit comments