diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/MapObjects.tsx | 1 | ||||
-rw-r--r-- | src/Components/PortalPanel.tsx | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Components/MapObjects.tsx b/src/Components/MapObjects.tsx index 6e9b053..01b23ab 100644 --- a/src/Components/MapObjects.tsx +++ b/src/Components/MapObjects.tsx @@ -59,6 +59,7 @@ class MapObjects extends PureComponent<Props> { onPress={() => onPortalClick(guid, entity.coords)} style={[selected ? { borderColor: 'red', borderWidth: 4, borderRadius: 13 } : null, { height: 26, width: 26, flex: 1, justifyContent: "center", alignItems: 'center' }]} zIndex={selected ? 10 : entity.level} + anchor={{ x: 0.5, y: 0.5 }} > <Image source={PORTALS[entity.fraction + entity.level]} diff --git a/src/Components/PortalPanel.tsx b/src/Components/PortalPanel.tsx index 30564ca..89f0fee 100644 --- a/src/Components/PortalPanel.tsx +++ b/src/Components/PortalPanel.tsx @@ -1,5 +1,5 @@ import React, { Component, PureComponent } from 'react'; -import { StyleSheet, View, Text, GestureResponderEvent, ActivityIndicator, Image, Dimensions, Button, Linking } from 'react-native'; +import { StyleSheet, View, Text, GestureResponderEvent, ActivityIndicator, Image, Dimensions, Button, Linking, ScrollView } from 'react-native'; // import { Button } from 'react-native-vector-icons/FontAwesome'; import { getStatusBarHeight } from '../helper'; import { connect } from 'react-redux'; @@ -35,7 +35,7 @@ class PortalPanel extends PureComponent<Props> { return <ActivityIndicator /> } return ( - <View style={styles.overlay}> + <ScrollView style={styles.overlay}> <View style={styles.panelRow}> <Image style={styles.photo} source={{ uri: portal.photo }} /> <View style={styles.panelRight}> @@ -69,7 +69,7 @@ class PortalPanel extends PureComponent<Props> { <Button onPress={() => Linking.openURL(NavTo(portal.coords.latitude, portal.coords.longitude, portal.name, '2gis'))} title={'2ГИС'} /> <Button onPress={() => Linking.openURL(NavTo(portal.coords.latitude, portal.coords.longitude, portal.name, 'default'))} title={'Другие карты/навигаторы'} /> </View> - </View> + </ScrollView> ); } } |