How to use the expo-location.ActivityType.Fitness function in expo-location

To help you get started, we’ve selected a few expo-location examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flow-typed / flow-typed / definitions / npm / expo-location_v5.x.x / flow_v0.104.x- / test_expo-location.js View on Github external
it('should passes when used properly', () => {
    startLocationUpdatesAsync('taskName', {
      accuracy: Accuracy.Balanced,
      activityType: ActivityType.Fitness,
      timeInterval: 1000,
    });

    startLocationUpdatesAsync('taskName', {
      foregroundService: {
        notificationTitle: 'str',
        notificationBody: 'str',
      },
    });

    startLocationUpdatesAsync('taskName', {
      foregroundService: {
        notificationTitle: 'str',
        notificationBody: 'str',
        notificationColor: 'red',
      },