import React, {Component} from 'react'; import {ScrollView, StyleSheet, Alert} from 'react-native'; import { Text, View, Assets, Constants, Button, Colors, Typography, ButtonProps, Incubator, Image } from 'react-native-ui-lib'; const ButtonSpace = 20; const plusIcon = Assets.getAssetByPath('icons.demo.plus'); const settingsIcon = Assets.getAssetByPath('icons.demo.settings'); const labelButton = {label: 'Animated'}; const iconButton = {round: true}; export default class ButtonsScreen extends Component { state = { backgroundColor: Colors.yellow30, label: 'Button', // outline: true, buttonProps: labelButton as ButtonProps }; changeProps = () => { if (this.state.buttonProps === labelButton) { this.setState({buttonProps: iconButton}); } if (this.state.buttonProps === iconButton) { this.setState({buttonProps: labelButton}); } }; render() { const {buttonProps} = this.state; return ( Buttons