From 2d17a178a30b070014649e9e20d9eb9879c442e1 Mon Sep 17 00:00:00 2001 From: Filipe Natanael Date: Fri, 29 Jan 2021 19:24:12 -0300 Subject: [PATCH] feature: added overlay button style --- src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3f45312..7af840c 100644 --- a/src/index.js +++ b/src/index.js @@ -29,6 +29,7 @@ type Props = { buttonComponentExpandRatio: number, items: $ReadOnlyArray<{ +label: Label, onPress: () => void }>, componentWrapperStyle?: StyleObj, + overlayButtonStyle?: StyleObj, overlayStyle?: StyleObj, tooltipContainerStyle?: StyleObj, labelContainerStyle?: StyleObj, @@ -125,7 +126,7 @@ class PopoverTooltip extends React.PureComponent { }; } - componentWillMount() { + UNSAFE_componentWillMount() { const newOppositeOpacity = this.state.opacity.interpolate({ inputRange: [0, 1], outputRange: [1, 0], @@ -355,6 +356,9 @@ class PopoverTooltip extends React.PureComponent { ], }}>