Skip to content

Commit

Permalink
[RUM-5418] Update docs for new React Native SDK API
Browse files Browse the repository at this point in the history
  • Loading branch information
mateo-villa committed Oct 7, 2024
1 parent ebc9f85 commit 98c0ea7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ DdSdkReactNative.setUser({
});
```

If you want to add or update user information, you can use the following code to modify the existing user's details.

```js
DdSdkReactNative.addExtraUserInfo({
hasPaid: 'true'
});
```

If you want to clear the user information (for example, when the user signs out), you can do so by passing an empty object, as follows:

```js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ DdSdkReactNative.setUser({
});
```

Si deseas añadir o modificar la información del usuario, puedes modificar las detalles del usuario existante, como se indica a continuación:

```js
DdSdkReactNative.addExtraUserInfo({
hasPaid: 'true'
});
```

Si deseas borrar la información del usuario (por ejemplo, cuando el usuario cierra la sesión), puedes hacerlo pasando un objeto vacío, como se indica a continuación:

```js
Expand Down

0 comments on commit 98c0ea7

Please sign in to comment.