react-native-action-button icon indicating copy to clipboard operation
react-native-action-button copied to clipboard

active opacity does not change

Open armata99 opened this issue 5 years ago • 0 comments

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>
    );
  }

armata99 avatar Sep 23 '20 11:09 armata99