Skip to content

Commit 5a9a630

Browse files
committed
Fix example
1 parent 41dfbc3 commit 5a9a630

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

example/src/screens/ChatScreen/ChatScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ const ChatScreen = ({ route }: Props) => {
5858
await reference.putFile(getPath(response.uri))
5959
const uri = await reference.getDownloadURL()
6060
const message: MessageType.PartialFile = {
61-
mimeType: response.type,
61+
mimeType: response.type ?? undefined,
6262
name,
63-
size: response.size,
63+
size: response.size ?? 0,
6464
type: 'file',
6565
uri,
6666
}

example/src/screens/LoginScreen/LoginScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const LoginScreen = ({ navigation }: Props) => {
5353
>
5454
<TextInput
5555
autoCapitalize='none'
56-
autoCompleteType='email'
56+
autoComplete='email'
5757
autoCorrect={false}
5858
autoFocus
5959
clearButtonMode='while-editing'
@@ -72,7 +72,7 @@ const LoginScreen = ({ navigation }: Props) => {
7272
<TextInput
7373
ref={passwordInput}
7474
autoCapitalize='none'
75-
autoCompleteType='password'
75+
autoComplete='password'
7676
autoCorrect={false}
7777
clearButtonMode='while-editing'
7878
editable={!loggingIn}

example/src/screens/RegisterScreen/RegisterScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const RegisterScreen = ({ navigation }: Props) => {
5454
>
5555
<TextInput
5656
autoCapitalize='none'
57-
autoCompleteType='email'
57+
autoComplete='email'
5858
autoCorrect={false}
5959
autoFocus
6060
clearButtonMode='while-editing'
@@ -73,7 +73,7 @@ const RegisterScreen = ({ navigation }: Props) => {
7373
<TextInput
7474
ref={passwordInput}
7575
autoCapitalize='none'
76-
autoCompleteType='password'
76+
autoComplete='password'
7777
autoCorrect={false}
7878
clearButtonMode='while-editing'
7979
editable={!registering}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flyerhq/react-native-firebase-chat-core",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "Actively maintained, community-driven Firebase BaaS for chat applications with an optional chat UI.",
55
"homepage": "https://flyer.chat",
66
"repository": {

0 commit comments

Comments
 (0)