Skip to content

Commit f1cc655

Browse files
committed
update package version
1 parent ffeb951 commit f1cc655

File tree

8 files changed

+11
-27
lines changed

8 files changed

+11
-27
lines changed

examples/expo-example/app/+not-found.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react';
12
import { Link, Stack } from 'expo-router';
23
import { StyleSheet, Text, View } from 'react-native';
34

examples/expo-example/app/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../global.css';
33
import { useFonts } from 'expo-font';
44
import { Stack } from 'expo-router';
55
import { StatusBar } from 'expo-status-bar';
6-
import { useEffect } from 'react';
6+
import React, { useEffect } from 'react';
77
import { Alert, AppState, Linking } from 'react-native';
88
import 'react-native-reanimated';
99

examples/expo-example/hooks/useIntercom.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export function useIntercom() {
2929
const [isLoading, setIsLoading] = useState<boolean>(false);
3030
const [error, setError] = useState<string | null>(null);
3131

32-
const validateEmail = useCallback((email: string | undefined) => {
33-
return String(email)
32+
const validateEmail = useCallback((em: string | undefined) => {
33+
return String(em)
3434
.toLowerCase()
3535
.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/);
3636
}, []);
@@ -55,16 +55,16 @@ export function useIntercom() {
5555
}, [setLoggedUser, handleError]);
5656

5757
const loginWithEmail = useCallback(
58-
async (email: string) => {
59-
if (!validateEmail(email)) {
58+
async (em: string) => {
59+
if (!validateEmail(em)) {
6060
Alert.alert('Error', 'Please enter a valid email');
6161
return;
6262
}
6363

6464
try {
6565
setIsLoading(true);
6666
setError(null);
67-
await Intercom.loginUserWithUserAttributes({ email });
67+
await Intercom.loginUserWithUserAttributes({ email: em });
6868
setLoggedUser(true);
6969
Alert.alert('Success', 'Logged in with email');
7070
} catch (e) {

examples/with-notifications/.eslintrc.js

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

examples/with-notifications/__tests__/App.test.tsx

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

examples/with-notifications/src/hooks/useIntercom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ export function useIntercom() {
66
const [userIdentifier, setUserIdentifier] = useMMKVStorage<string>(
77
'id',
88
storage,
9-
'',
9+
''
1010
);
1111
const [isLoggedIn, setIsLoggedIn] = useMMKVStorage<boolean>(
1212
'login',
1313
storage,
14-
false,
14+
false
1515
);
1616

1717
const handleLoginIdentifiedUser = async () => {

examples/with-notifications/src/screens/HomeScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function HomeScreen(): React.JSX.Element {
1515
useEffect(() => {
1616
const subscription = AppState.addEventListener(
1717
'change',
18-
nextStatus => nextStatus === 'active' && Intercom?.handlePushMessage(),
18+
nextStatus => nextStatus === 'active' && Intercom?.handlePushMessage()
1919
);
2020
return subscription.remove;
2121
}, []);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@intercom/intercom-react-native",
3-
"version": "9.0.0-beta.4",
3+
"version": "9.0.0",
44
"description": "React Native wrapper to bridge our iOS and Android SDK",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

0 commit comments

Comments
 (0)