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,
TouchableWithoutFeedback,
Dimensions,
PixelRatio,
} from "react-native";
import { FlatList } from "react-native-gesture-handler";
@ -33,10 +34,10 @@ function FloatButton(props) {
toValue: value,
friction: 6,
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);
setOpen(!open);
};
@ -114,18 +115,18 @@ function FloatButton(props) {
<View style={{
flex: 1,
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={{
flex: 0.05,
marginTop: screenHeight * 0.09,
paddingBottom: 10,
zIndex:3,
marginTop: screenHeight * 0.09,
paddingBottom: 10,
zIndex: 3,
justifyContent: "center"
}}>
<Text style={styles.menuLabel}>
Escolha o que deseja ver no mapa:
Selecione os dados:
</Text>
</View>
<View

Loading…
Cancel
Save