diff --git a/content/en/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md b/content/en/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md index ef430758c469d..9107ef9baf6fd 100644 --- a/content/en/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md +++ b/content/en/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md @@ -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.addUserExtraInfo({ + 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 diff --git a/content/es/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md b/content/es/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md index 8c28c6a34a6f4..28d76e255953a 100644 --- a/content/es/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md +++ b/content/es/real_user_monitoring/mobile_and_tv_monitoring/advanced_configuration/reactnative.md @@ -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.addUserExtraInfo({ + 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