|
|
@ -24,7 +24,6 @@ function FloatButton(props) { |
|
|
|
|
|
|
|
const toggleMenu = () => { |
|
|
|
const value = open ? 0 : 1; |
|
|
|
console.log(value); |
|
|
|
|
|
|
|
Animated.spring(animation, { |
|
|
|
toValue: value, |
|
|
@ -65,7 +64,7 @@ function FloatButton(props) { |
|
|
|
</Animated.View> |
|
|
|
</TouchableWithoutFeedback> |
|
|
|
<View style={{ margin:35, alignSelf:"flex-end"}}> |
|
|
|
<TouchableWithoutFeedback> |
|
|
|
<TouchableWithoutFeedback onPress={toggleMenu}> |
|
|
|
<Animated.View style={[styles.button, styles.menu, rotation]}> |
|
|
|
<MaterialCommunityIcons name="layers-plus" size={36} color={colors.white} /> |
|
|
|
</Animated.View> |
|
|
@ -79,11 +78,10 @@ const styles = StyleSheet.create({ |
|
|
|
container: { |
|
|
|
alignItems: "center", |
|
|
|
position: "absolute", |
|
|
|
//flex: 1,
|
|
|
|
zIndex: 3, |
|
|
|
flex: 1, |
|
|
|
}, |
|
|
|
button: { |
|
|
|
position: "absolute", |
|
|
|
// position: "absolute",
|
|
|
|
width: 50, |
|
|
|
height: 50, |
|
|
|
borderRadius: 6, |
|
|
|