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