Browse Source

adjuting data menu

master
analuizaff 4 years ago
parent
commit
082817664a
  1. BIN
      src/app/assets/pluviometer/pluviometroOficial.png
  2. 21
      src/app/components/FloatButton.js

BIN
src/app/assets/pluviometer/pluviometroOficial.png

Before

Width: 2501  |  Height: 2500  |  Size: 81 KiB

After

Width: 1667  |  Height: 2501  |  Size: 76 KiB

21
src/app/components/FloatButton.js

@ -7,6 +7,7 @@ import {
Animated, Animated,
TouchableWithoutFeedback, TouchableWithoutFeedback,
Dimensions, Dimensions,
PixelRatio,
} from "react-native"; } from "react-native";
import { FlatList } from "react-native-gesture-handler"; import { FlatList } from "react-native-gesture-handler";
@ -33,10 +34,10 @@ function FloatButton(props) {
toValue: value, toValue: value,
friction: 6, friction: 6,
useNativeDriver: true, useNativeDriver: true,
}).start();
const json = JSON.stringify(context.layers);
const obj = JSON.parse(json);
}).start();
const json = JSON.stringify(context.layers);
const obj = JSON.parse(json);
setLayers(obj); setLayers(obj);
setOpen(!open); setOpen(!open);
}; };
@ -114,18 +115,18 @@ function FloatButton(props) {
<View style={{ <View style={{
flex: 1, flex: 1,
flexDirection: "column", flexDirection: "column",
height: screenHeight * 0.75,//solução temporária, procurar soluções pro menu se ajustar melhor ao layout
paddingTop: (screenHeight > 600 ? 0 : screenHeight * 0.10)
height: (PixelRatio.get() >= 3 ? screenHeight * 0.75 : screenHeight * 0.80), //solução temporária, procurar soluções pro menu se ajustar melhor ao layout
paddingTop: (PixelRatio.get() > 3 ? screenHeight * 0.10 : 5)
}}> }}>
<View style={{ <View style={{
flex: 0.05, flex: 0.05,
marginTop: screenHeight * 0.09,
paddingBottom: 10,
zIndex:3,
marginTop: screenHeight * 0.09,
paddingBottom: 10,
zIndex: 3,
justifyContent: "center" justifyContent: "center"
}}> }}>
<Text style={styles.menuLabel}> <Text style={styles.menuLabel}>
Escolha o que deseja ver no mapa:
Selecione os dados:
</Text> </Text>
</View> </View>
<View <View

Loading…
Cancel
Save