mastermoo / react-native-action-button

customizable multi-action-button component for react-native
MIT License
2.52k stars 570 forks source link

active opacity does not change #357

Open armata99 opened 4 years ago

armata99 commented 4 years ago

It's not set to 0.85 as default and it does not change when i give it the prop. and it drops a white square around the button.

Code sample? here you go:

render() {
    return (
      <SafeAreaView style={styles.container}>
        <StatusBar barStyle={'dark-content'} backgroundColor="transparent" />
        <FlatList
          style={styles.container}
          data={this.state.listData}
          refreshing={this.state.refreshing}
          onRefresh={() => {
            this.setState({listData: [], refreshing: true});
            this.getClassList();
          }}
          keyExtractor={(item, index) => index.toString()}
          renderItem={({item}) => this.renderListItem(item)}
        />
        <ActionButton
          offsetX={25}
          offsetY={35}
          activeOpacity={0.9}
          buttonColor={primaryColor}
          onPress={() => {
            console.log('hi');
          }}
        />
      </SafeAreaView>
    );
  }