Skip to main content

Type Alias: RNLocationConfig

type RNLocationConfig = {
android?: RNAndroidLocationConfig;
enabled?: boolean;
heading?: RNHeadingConfig;
ios?: RNIOSLocationConfig;
};

Location configuration.

Properties​

PropertyTypeDefault valueDescription
android?RNAndroidLocationConfigAndroid-specific location configuration. See RNAndroidLocationConfig.
enabled?booleanfalseEnables location updates. Location updates also run while myLocationEnabled is set.
heading?RNHeadingConfigCompass heading configuration. See RNHeadingConfig.
ios?RNIOSLocationConfigiOS-specific location configuration. See RNIOSLocationConfig.