Skip to content

Commit b7e7682

Browse files
committed
Fixed an error in RN identifyUser
1 parent db7943c commit b7e7682

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

src/fragments/lib/push-notifications/common/identify-user.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,5 @@ import reactNativeSendToPinpoint from '/src/fragments/lib/push-notifications/rea
3232

3333
import androidSendWithProfile from '/src/fragments/lib/push-notifications/android/identify_user/30_send_to_pinpoint_profile.mdx';
3434
import iosSendWithProfile from '/src/fragments/lib/push-notifications/ios/identify_user/30_send_to_pinpoint_profile.mdx';
35-
import reactNativeSendWithProfile from '/src/fragments/lib/push-notifications/react-native/identify_user/30_send_to_pinpoint_profile.mdx';
3635

37-
<Fragments
38-
fragments={{
39-
android: androidSendWithProfile,
40-
ios: iosSendWithProfile,
41-
'react-native': reactNativeSendWithProfile
42-
}}
43-
/>;
36+
<Fragments fragments={{ android: androidSendWithProfile, ios: iosSendWithProfile }} />;
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
```js
2-
await Notifications.Push.identifyUser(userId);
2+
const userInfo = {
3+
attributes: {
4+
hobbies: ['cooking', 'knitting']
5+
}
6+
};
7+
8+
await Notifications.Push.identifyUser(userId, userInfo);
39
```

src/fragments/lib/push-notifications/react-native/identify_user/30_send_to_pinpoint_profile.mdx

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)