|
|
@ -18,7 +18,6 @@ import MenuItens from "./MenuItens"; |
|
|
|
|
|
|
|
const screenWidth = Dimensions.get("window").width; |
|
|
|
const screenHeight = Dimensions.get("window").height; |
|
|
|
console.log("-----screenHeight: " + screenHeight); |
|
|
|
|
|
|
|
|
|
|
|
function FloatButton(props) { |
|
|
@ -35,7 +34,10 @@ function FloatButton(props) { |
|
|
|
friction: 6, |
|
|
|
useNativeDriver: true, |
|
|
|
}).start(); |
|
|
|
const json = JSON.stringify(context.layers); |
|
|
|
const obj = JSON.parse(json); |
|
|
|
|
|
|
|
setLayers(obj); |
|
|
|
setOpen(!open); |
|
|
|
}; |
|
|
|
|
|
|
@ -84,7 +86,6 @@ function FloatButton(props) { |
|
|
|
|
|
|
|
const renderItem = ({ item }) => { |
|
|
|
const icon = item.isSelected ? "check-box" : "check-box-outline-blank"; |
|
|
|
|
|
|
|
return ( |
|
|
|
<MenuItens |
|
|
|
item={item} |
|
|
@ -111,7 +112,7 @@ function FloatButton(props) { |
|
|
|
}}> |
|
|
|
<View style={{ |
|
|
|
flex: 0.05, |
|
|
|
marginTop: screenHeight * 0.09, |
|
|
|
marginTop: screenHeight * 0.09, |
|
|
|
paddingBottom: 10, |
|
|
|
zIndex:3, |
|
|
|
justifyContent: "center" |
|
|
@ -126,7 +127,7 @@ function FloatButton(props) { |
|
|
|
data={layers.values} |
|
|
|
keyExtractor={(datas) => datas.id.toString()} |
|
|
|
renderItem={renderItem} |
|
|
|
extraData={changed, open} |
|
|
|
extraData={changed} |
|
|
|
/> |
|
|
|
</View> |
|
|
|
<View style={styles.submit_btn}> |
|
|
|