Browse SDKs · React Native
Platform
SDKsReact NativeIncludes Enterprise features

User overview

Understand user profiles, account settings, and presence subscriptions in the OpenIM React Native SDK.

Copy

The OpenIM React Native SDK uses userID as the unique user identifier. User APIs allow applications to read and modify current user settings, query public profile cards for arbitrary users, and subscribe to real-time online presence states.

Friendship relationships, friend requests, and blacklists are managed as part of relationship capabilities; see Relationships overview.

User data structures

The SDK exposes distinct models tailored to specific user contexts:

StructureContextApplicable guides
SelfUserInfoCurrent authenticated user's profile, avatar, nickname, and account-level notification settingsGet current user profile, Update current user profile
PublicUserItemPublic user profile cards for arbitrary usersGet user profiles
UserOnlineStatePresence states and active platform client listsSubscribe to user online status, Get subscribed user status, Unsubscribe from user online status

SelfUserInfo belongs strictly to the local signed-in user, whereas PublicUserItem represents searchable public profile cards. Friendship metadata, blacklist statuses, and group membership roles are tracked via dedicated relationship and group models.

Browse by task

TaskRecommended guide
Query public profile cards by userIDGet user profiles
Read or update current user nickname, avatar, or extensionsGet current user profile, Update current user profile
Configure account-wide message reception policySet global message reception
Control friend request acceptance policySet friend add permission
Subscribe, query, and cancel online presenceSubscribe to user online status, Get subscribed user status, Unsubscribe from user online status
Manage friends, applications, and blacklistsRelationships overview

Event listeners

User profile and presence updates trigger realtime push events: