Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference getDoublereact-native-maps first person viewjava.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object referenceReact-Native-Maps don't seem to rerender once the geo location is acquiredReact Native Maps onRegionChangeComplete Fails to Fire on Second DrawingAndroid- Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object referenceError on “Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference”Cannot get current position without GPS on react-native with navigator.geolocationExpo Native-Base Font AsyncMap Zoom level base off radius React Native mapsError: Cannot find module 'number-is-nan'
Why is this python script running in background consuming 100 % CPU?
List of lists elementwise greater/smaller than
Do 'destroy' effects count as damage?
Is there a word for pant sleeves?
How does the +1 Keen Composite Longbow (+2 Str) work?
How do we properly manage transitions within a descriptive section?
How can I prevent Bash expansion from passing files starting with "-" as argument?
Schwa-less Polysyllabic German Noun Stems of Germanic Origin
why "American-born", not "America-born"?
pwaS eht tirsf dna tasl setterl fo hace dorw
Is there a way to generate a mapping graph like this?
Does science define life as "beginning at conception"?
Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario?
Bash - Execute two commands and get exit status 1 if first fails
How can sister protect herself from impulse purchases with a credit card?
How could Dwarves prevent sand from filling up their settlements
Is it wise to pay off mortgage with 401k?
Do seaplanes need to get clearance for takeoff?
Is my company merging branches wrong?
Mikrokosmos, BB 105, Vol. 1: No. 17 Contrary Motion (1) - Can't understand the structure
Germany rejected my entry to Schengen countries
Connecting circles clockwise in TikZ
How did Jean Parisot de Valette, 49th Grand Master of the Order of Malta, die?
How do you cope with rejection?
Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference getDouble
react-native-maps first person viewjava.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object referenceReact-Native-Maps don't seem to rerender once the geo location is acquiredReact Native Maps onRegionChangeComplete Fails to Fire on Second DrawingAndroid- Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object referenceError on “Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference”Cannot get current position without GPS on react-native with navigator.geolocationExpo Native-Base Font AsyncMap Zoom level base off radius React Native mapsError: Cannot find module 'number-is-nan'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:
this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);
I've checked and rotation, latitude, longitude, currentAngle
are not null or empty objects
But this method throws an error like this:
After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.
Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0
Any solutions?
P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated
android google-maps react-native expo react-native-maps
add a comment |
I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:
this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);
I've checked and rotation, latitude, longitude, currentAngle
are not null or empty objects
But this method throws an error like this:
After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.
Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0
Any solutions?
P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated
android google-maps react-native expo react-native-maps
It’s probably due to your current location being null at some point.
– Andrew
Mar 23 at 19:33
no, I checked latitude and longitude values, they are initialized
– Dato Maisuradze
Mar 23 at 19:40
I had similar issue with Unity. I addedndk abiFilters 'armeabi-v7a'
toapp/build.gradle
underdefaultConfig
properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.
– Ziyo
Mar 24 at 5:47
add a comment |
I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:
this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);
I've checked and rotation, latitude, longitude, currentAngle
are not null or empty objects
But this method throws an error like this:
After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.
Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0
Any solutions?
P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated
android google-maps react-native expo react-native-maps
I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:
this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);
I've checked and rotation, latitude, longitude, currentAngle
are not null or empty objects
But this method throws an error like this:
After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.
Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0
Any solutions?
P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated
android google-maps react-native expo react-native-maps
android google-maps react-native expo react-native-maps
edited Mar 23 at 19:28
Dato Maisuradze
asked Mar 23 at 19:14
Dato MaisuradzeDato Maisuradze
414617
414617
It’s probably due to your current location being null at some point.
– Andrew
Mar 23 at 19:33
no, I checked latitude and longitude values, they are initialized
– Dato Maisuradze
Mar 23 at 19:40
I had similar issue with Unity. I addedndk abiFilters 'armeabi-v7a'
toapp/build.gradle
underdefaultConfig
properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.
– Ziyo
Mar 24 at 5:47
add a comment |
It’s probably due to your current location being null at some point.
– Andrew
Mar 23 at 19:33
no, I checked latitude and longitude values, they are initialized
– Dato Maisuradze
Mar 23 at 19:40
I had similar issue with Unity. I addedndk abiFilters 'armeabi-v7a'
toapp/build.gradle
underdefaultConfig
properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.
– Ziyo
Mar 24 at 5:47
It’s probably due to your current location being null at some point.
– Andrew
Mar 23 at 19:33
It’s probably due to your current location being null at some point.
– Andrew
Mar 23 at 19:33
no, I checked latitude and longitude values, they are initialized
– Dato Maisuradze
Mar 23 at 19:40
no, I checked latitude and longitude values, they are initialized
– Dato Maisuradze
Mar 23 at 19:40
I had similar issue with Unity. I added
ndk abiFilters 'armeabi-v7a'
to app/build.gradle
under defaultConfig
properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.– Ziyo
Mar 24 at 5:47
I had similar issue with Unity. I added
ndk abiFilters 'armeabi-v7a'
to app/build.gradle
under defaultConfig
properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.– Ziyo
Mar 24 at 5:47
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55317448%2fattempt-to-invoke-virtual-method-double-java-lang-double-doublevalue-on-a-nu%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55317448%2fattempt-to-invoke-virtual-method-double-java-lang-double-doublevalue-on-a-nu%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It’s probably due to your current location being null at some point.
– Andrew
Mar 23 at 19:33
no, I checked latitude and longitude values, they are initialized
– Dato Maisuradze
Mar 23 at 19:40
I had similar issue with Unity. I added
ndk abiFilters 'armeabi-v7a'
toapp/build.gradle
underdefaultConfig
properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.– Ziyo
Mar 24 at 5:47