larsvinter / react-native-awesome-button

A button React Native component supporting showing different states with animations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined is not an object (evaluating 'hex.replace')

wikimo opened this issue · comments

when i run the sample, result that , how to solve it, thanks

solve it myself

<AwesomeButton states={{
                        default: {
                          text: 'Press me',
                          onPress: this._login,
                          backgroundColor: '#ac0000'
                        }
                       }} />

backgroundColor is missing.