Skip to content

Commit c7861eb

Browse files
committed
WIP: debug — render recenter button unconditionally as red square
1 parent 3edf8db commit c7861eb

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/map/MapScreen.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,16 @@ export function MapScreen() {
157157
<ActivityIndicator size="large" color="#1d6fe0" />
158158
</View>
159159
) : null}
160-
{position && !isCenteredOnUser ? (
161-
<TouchableOpacity
162-
accessibilityLabel="Recenter map on your location"
163-
accessibilityRole="button"
164-
onPress={flyToUser}
165-
style={styles.recenterButton}>
166-
<Text style={styles.recenterIcon}></Text>
167-
</TouchableOpacity>
168-
) : null}
160+
<TouchableOpacity
161+
accessibilityLabel="Recenter map on your location"
162+
accessibilityRole="button"
163+
onPress={flyToUser}
164+
style={[
165+
styles.recenterButton,
166+
{backgroundColor: 'red', width: 120, height: 120},
167+
]}>
168+
<Text style={styles.recenterIcon}></Text>
169+
</TouchableOpacity>
169170
</View>
170171
);
171172
}

0 commit comments

Comments
 (0)