2.3.2 • Published 25 days ago

@datadog/mobile-react-native-code-push v2.3.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
25 days ago

React-Native Monitoring for AppCenter CodePush

Setup

This package is an integration for the react-native-code-push library. Before using it, install and setup the core mobile-react-native SDK.

To install with NPM, run:

npm install @datadog/mobile-react-native-code-push

To install with Yarn, run:

yarn add @datadog/mobile-react-native-code-push

Initialize the SDK

To initialize the Datadog React Native SDK for RUM, use DatadogCodepush.initialize instead of DdSdkReactNative.initialize:

import { DdSdkReactNativeConfiguration } from '@datadog/mobile-react-native';
import { DatadogCodepush } from '@datadog/mobile-react-native-code-push';

const config = new DdSdkReactNativeConfiguration(
    '<CLIENT_TOKEN>',
    '<ENVIRONMENT_NAME>',
    '<RUM_APPLICATION_ID>',
    true, // track user interactions (such as a tap on buttons). You can use the 'accessibilityLabel' element property to give the tap action a name, otherwise the element type is reported
    true, // track XHR resources
    true // track errors
);

await DatadogCodepush.initialize(config);

This method sets your reported version to the same value as the one the datadog-ci react-native codepush command uses when uploading your CodePush bundle and source maps.

Alternative to @datadog/mobile-react-native-code-push

If you use datadog-ci react-native upload to upload your CodePush bundle and source maps with a different format for the version, you can override the reported version in the SDK configuration object by using either:

  • versionSuffix (recommended) to add a suffix to the commercial version of your app
  • version to completely override the version
2.3.2

25 days ago

2.3.1

1 month ago

2.3.0

1 month ago

2.2.0

2 months ago

2.1.1

3 months ago

2.1.0

3 months ago

2.0.4

3 months ago

2.0.3

4 months ago

2.0.2

4 months ago

2.0.0-rc.0

6 months ago

1.8.2

10 months ago

1.9.0

6 months ago

1.8.1

10 months ago

1.8.0

10 months ago

1.8.0-rc1

10 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.8.5

8 months ago

1.8.4

8 months ago

1.8.3

9 months ago

1.8.0-rc0

11 months ago

1.7.1

11 months ago

1.7.0

11 months ago

1.5.2

1 year ago

1.6.0

12 months ago

1.5.1

1 year ago

1.5.0

1 year ago

1.2.0

1 year ago

1.2.0-beta2

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.1.5

1 year ago

1.2.0-beta1

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago