Browse SDKs · React Native
Platform
SDKsReact Native

Set group extension

Store custom application metadata in the group ex field using the OpenIM React Native SDK.

Copy

Attach custom application metadata to a group's ex property:

await OpenIMSDK.setGroupInfo({
  groupID,
  ex: JSON.stringify({
    projectID: 'project-42',
  }),
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID to update.
exstringYesCustom business extension string. Serialize JSON strings if saving structured objects.

Return value

A resolved Promise confirms that the group extension was persisted on the server.

The update triggers the OnGroupInfoChanged event. Use groupID as the key to locate the group in your state store and update its ex field. For event listener setup, see Group overview.