Skip to content

Commit 76314ce

Browse files
authored
Merge pull request #98 from intercom/uv/fix_rn_readme
2 parents bd93b9a + 87db1d0 commit 76314ce

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

README.md

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ ___
431431

432432
## Import
433433

434-
### `import Intercom from '@intercom/intercom-react-native';`
434+
### `import Intercom, { IntercomContent, Space } from '@intercom/intercom-react-native';`
435435

436436
___
437437

@@ -452,19 +452,20 @@ Sets the user hash necessary for validation when Identity Verification is enable
452452

453453
___
454454

455-
### `Intercom.registerUnidentifiedUser()`
455+
### `Intercom.loginUnidentifiedUser()`
456456

457-
Registers an unidentified user with Intercom
457+
Login a unidentified user.
458+
This is a user that doesn't have any identifiable information such as a userId or email.
458459

459460
### Returns
460461

461462
`Promise<boolean>`
462463

463464
___
464465

465-
### `Intercom.registerIdentifiedUser({email,userId})`
466+
### `Intercom.loginUserWithUserAttributes({email,userId})`
466467

467-
Registers an identified user with Intercom
468+
Login a user with identifiable information.
468469

469470
### Options
470471

@@ -637,7 +638,7 @@ Open the conversation screen with the composer pre-populated text.
637638

638639
___
639640

640-
### `Intercom.displayHelpCenter()`
641+
### `Intercom.presentSpace(Space.helpCenter);`
641642

642643
Open up your apps help center
643644

@@ -646,7 +647,7 @@ Open up your apps help center
646647
`Promise<boolean>`
647648

648649
___
649-
### `Intercom.displayHelpCenterCollections()`
650+
### `Intercom.presentContent(IntercomContent.helpCenterCollectionsWithIds(collections))`
650651

651652
Present the help center with specific collections only .
652653

@@ -702,7 +703,7 @@ Get a list of articles in the Help Center, filtered by a search term
702703
`Promise<HelpCenterArticleSearchResult[]>`
703704

704705
___
705-
### `Intercom.displayArticle(articleId)`
706+
### `Intercom.presentContent(IntercomContent.articleWithArticleId(articleId))`
706707

707708
Displays article with given id.
708709

@@ -716,7 +717,7 @@ Displays article with given id.
716717

717718
___
718719

719-
### `Intercom.displayCarousel(carouselId)`
720+
### `Intercom.presentContent(IntercomContent.carouselWithCarouselId(carouselId))`
720721

721722
Displays carousel
722723

@@ -730,16 +731,6 @@ Displays carousel
730731

731732
`Promise<boolean>`
732733

733-
### `Intercom.displayArticle(articleId)`
734-
735-
Opens an article
736-
737-
### Options
738-
739-
| Type | Type | Required |
740-
| ------- | -------- | -------- |
741-
| articleId| string |yes |
742-
743734
### Returns
744735

745736
`Promise<boolean>`

0 commit comments

Comments
 (0)