/** * @format * @flow strict-local */ import React from 'react'; import {SafeAreaView, StyleSheet, View} from 'react-native'; import { FormattedText, FORMATTED_LINK_MATCH_TYPE, } from 'react-native-formatted-text'; const App: () => React$Node = () => { return ( The most generic way to use FormattedText is to provide ranges prop to define start and end of the text. One can also utilize matches prop and declare a text or regex to find words to be formatted. There is a convenient enabledLinkTypes prop to automatically detect links like https://www.google.com or email addresses like hi@email.com { alert('pressed!'); }, }, ]}> All of them accept style and onPress for customization. ); }; const styles = StyleSheet.create({ body: { backgroundColor: 'white', justifyContent: 'center', height: '100%', padding: 20, }, text: {fontSize: 16, marginBottom: 30}, prop: {backgroundColor: 'lightgrey', fontWeight: '600'}, param: {color: 'blue'}, }); export default App;