/* @flow */
import React from 'react';
import entities from 'entities';
import { Text } from 'react-native';

type FuncArguments = {
  data: string,
  style: Object,
  cascadingStyle: Object,
}

export default ({ data, style, cascadingStyle }: FuncArguments) => (
  <Text style={[style, cascadingStyle]}>
    {entities.decodeHTML(data).replace(/\n$/, '')}
  </Text>
);

/* @flow */
import React from 'react';
import entities from 'entities';
import { RawLabel } from '../common';

type FuncArguments = {
  data: string,
}

export default ({ data }: FuncArguments) => (
  <RawLabel
    text={entities.decodeHTML(data).replace(/\n$/, '')}
  />
);

Make message text color to black on Android.
Make message text color to black on Android.

and white in night theme.
