zoomTo does not work after upgrading from version 8.3.0 to 8.4.0
See original GitHub issueDescribe the bug
zoomTo does not work after upgrading from version 8.3.0 to 8.4.0
To Reproduce
import React, { memo, useCallback } from 'react';
import { TouchableOpacity, Text } from 'react-native';
import MapboxGL from '@react-native-mapbox-gl/maps';
const Test = () => {
const camera = React.createRef(null);
const map = React.createRef(null);
const zoom = useCallback(
async (zoomIn) => {
const currentZoom = await map.current.getZoom();
camera.current.zoomTo(currentZoom + (zoomIn ? 1 : -1));
},
[map, camera]
);
const zoomPlus = useCallback(() => zoom(true), [zoom]);
const zoomMinus = useCallback(() => zoom(), [zoom]);
return (
<>
<MapboxGL.MapView style={styles.map} ref={map}>
<MapboxGL.Camera ref={camera} />
</MapboxGL.MapView>
<TouchableOpacity onPress={zoomPlus}>
<Text>zoom plus</Text>
</TouchableOpacity>
<TouchableOpacity onPress={zoomMinus}>
<Text>zoom minus</Text>
</TouchableOpacity>
</>
);
};
Versions
- Platform OS: [IOS, Android]
- “react-native”: “0.64.2”,
- “@react-native-mapbox-gl/maps”: “8.4.0”
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:21 (11 by maintainers)
Top Results From Across the Web
Upgrading Zoom to the latest version
Upgrading the Zoom desktop client for Windows, macOS, or Linux. Zoom provides a pop-up notification when there is a new mandatory or optional ......
Read more >Spectrum Virtualize Family of Products Upgrade Planning - IBM
Question. How can I determine which software release to use when planning to upgrade my Spectrum Virtualize systems? Answer. From version 8.4, ...
Read more >FortiWLC 8.4.0 Release Notes - Fortinet GURU
Run the upgrade controller command to upgrade controllers. Once the controller is online, upgrade the APs in batches. Before initiating upgrade, ...
Read more >VMware vSphere Replication 8.4.0.4 Release Notes
Note: An upgrade from vSphere Replication 8.3.1.4 to version 8.4.0.4 is not supported. You can upgrade Sphere Replication 8.3.1.4 to vSphere ...
Read more >FortiWLC 8.4.5 Release Notes - Amazon AWS
FortiWLC 8.4.5 release resolves outstanding issues on FortiWLC; see section Fixed ... controller and APs are upgraded to the latest (upgraded) version.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dorthwein , @whiteHatCip, @galkinsden, @ShepelE
@dorthwein Please see #1621 .