After upgrading from RN0.39->0.44, heading was coming back as undefined on Android.
This appeared to be because instead of using data.heading (as it says in the README.md) it was just data.
So in case anybody else has the same problem the fix was using this
heading = Platform.OS === 'ios' ? data.heading : data instead of heading = data.heading
After upgrading from RN0.39->0.44, heading was coming back as undefined on Android.
This appeared to be because instead of using
data.heading(as it says in the README.md) it was justdata.So in case anybody else has the same problem the fix was using this
heading = Platform.OS === 'ios' ? data.heading : datainstead ofheading = data.heading