renamed center to text-center class

This commit is contained in:
Nouman Tahir 2021-09-03 12:13:29 +05:00
parent 99734719e7
commit 2a170f5dbd
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ export default EStyleSheet.create({
backgroundColor:'$darkIconColor',
fontFamily:'$editorFont',
} as TextStyle,
center: {
textCenter: {
textAlign: 'center',
alignItems: 'center',
justifyContent: 'center',

View File

@ -34,7 +34,7 @@ const HtmlRenderer = ({
}:HtmlRendererProps) => {
//new renderer functions
body = body.replace('<center>', '<div class="center">').replace('</center>','</div>');
body = body.replace('<center>', '<div class="text-center">').replace('</center>','</div>');
const _handleOnLinkPress = (data:LinkData) => {
@ -181,7 +181,7 @@ const HtmlRenderer = ({
classesStyles={{
phishy:styles.phishy,
'text-justify':styles.textJustify,
center:styles.center
'text-center':styles.textCenter
}}
tagsStyles={{
body:styles.body,