Answers for "text color and size in htlm render in react antive"

2

react native italic text

<View flex={1}>
    <Text style={style}>Example of Italic Text</Text>
</View>

const style = StyleSheet.create({
    textAlign: 'center',
    fontWeight: 'bold'
    fontStyle: 'italic'
    fontSize: 20,
});
Posted by: Guest on November-10-2020
0

html to react native

import React, { Component } from 'react';
import { WebView } from 'react-native';

class MyInlineWeb extends Component {
  render() {
    return (
      <WebView
        originWhitelist={['*']}
        source={{ html: '<h1>Hello world</h1>' }}
      />
    );
  }
}
Posted by: Guest on September-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language