mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
closed #275
This commit is contained in:
parent
dcbcc6d04e
commit
8c64659552
@ -1,7 +1,5 @@
|
|||||||
import React, { PureComponent, Fragment } from 'react';
|
import React, { PureComponent, Fragment } from 'react';
|
||||||
import {
|
import { Dimensions, Linking, Alert } from 'react-native';
|
||||||
Dimensions, Linking, Alert,
|
|
||||||
} from 'react-native';
|
|
||||||
import { withNavigation } from 'react-navigation';
|
import { withNavigation } from 'react-navigation';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
@ -101,6 +99,26 @@ class PostBody extends PureComponent {
|
|||||||
if (node.name === 'img') {
|
if (node.name === 'img') {
|
||||||
node.attribs.style = 'text-align: center;';
|
node.attribs.style = 'text-align: center;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.name === 'div' && node.attribs && node.attribs.class) {
|
||||||
|
const _className = node.attribs.class;
|
||||||
|
|
||||||
|
if (_className === 'pull-right') {
|
||||||
|
node.attribs.style = 'text-align: right;';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_className === 'pull-left') {
|
||||||
|
node.attribs.style = 'text-align: left;';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_className === 'text-justify') {
|
||||||
|
node.attribs.style = 'text-align: justify; text-justify: inter-word; letter-spacing: 1.2px;';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_className === 'phishy') {
|
||||||
|
node.attribs.style = 'color: red';
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user