react-native-action-button
react-native-action-button copied to clipboard
active opacity does not change
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>
);
}