import React, {Component} from 'react'; import {Alert, Animated, ScrollView} from 'react-native'; import {View, Text, Colors} from 'react-native-ui-lib'; class TextScreen extends Component { private toggle = false; private animatedValue = new Animated.Value(0); animate = () => { this.toggle = !this.toggle; Animated.timing(this.animatedValue, { toValue: Number(this.toggle), duration: 300, useNativeDriver: true }).start(); }; renderDivider() { return ; } render() { return ( Text Modifiers Use your color (red30, blue20, grey40...) or typography (text40, text70M, text70BO, text100L...) presets directly as modifiers text60 red20 blue bold text BIG TITLE flex flex-2 flex-3 {this.renderDivider()} Transformations Center Text uppercase underline {this.renderDivider()} Highlight String Dancing in The Dark Dancing in The Dark Dancing in The Dark Dancing in The Dark Alert.alert('Dancing is pressed!'), style: {color: Colors.blue10, backgroundColor: Colors.green50} }} highlightStyle={{color: Colors.green30}} > Dancing in The Dark Alert.alert('Dancing is pressed!'), style: {color: Colors.blue10, backgroundColor: Colors.green50} }, { string: 'laugh', onPress: () => Alert.alert('laugh is pressed!'), style: {color: Colors.red50, textDecorationLine: 'underline', textDecorationColor: Colors.blue30} }, { string: 'more', onPress: () => Alert.alert('more is pressed!') } ]} highlightStyle={{color: Colors.green30}} > Dancing in The Dark, laughing drinking and more {this.renderDivider()} Animated Text (press) ); } } export default TextScreen;