Skip to content

Commit 5af5b47

Browse files
author
Igor Canedo
committed
changing customStyle and textAlignStyle order (customstyle can always overwrite any style)
1 parent 17012b1 commit 5af5b47

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/DraftJsText.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
// @flow
88

99
import React from 'react';
10-
import {
11-
Text,
12-
} from 'react-native';
10+
import { Text } from 'react-native';
1311

1412
import loadAttributes from '../loadAttributes';
1513

@@ -34,7 +32,7 @@ const DraftJsText = (props: DraftJsTextPropsType): any => {
3432

3533
return (
3634
<Text
37-
style={[defaultStyles[props.type], customStyle, textAlignStyle]}
35+
style={[defaultStyles[props.type], textAlignStyle, customStyle]}
3836
>{textElements}
3937
</Text>);
4038
}

0 commit comments

Comments
 (0)