Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Oct 24, 2021
1 parent 41dfbc3 commit 5a9a630
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/src/screens/ChatScreen/ChatScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const ChatScreen = ({ route }: Props) => {
await reference.putFile(getPath(response.uri))
const uri = await reference.getDownloadURL()
const message: MessageType.PartialFile = {
mimeType: response.type,
mimeType: response.type ?? undefined,
name,
size: response.size,
size: response.size ?? 0,
type: 'file',
uri,
}
Expand Down
4 changes: 2 additions & 2 deletions example/src/screens/LoginScreen/LoginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const LoginScreen = ({ navigation }: Props) => {
>
<TextInput
autoCapitalize='none'
autoCompleteType='email'
autoComplete='email'
autoCorrect={false}
autoFocus
clearButtonMode='while-editing'
Expand All @@ -72,7 +72,7 @@ const LoginScreen = ({ navigation }: Props) => {
<TextInput
ref={passwordInput}
autoCapitalize='none'
autoCompleteType='password'
autoComplete='password'
autoCorrect={false}
clearButtonMode='while-editing'
editable={!loggingIn}
Expand Down
4 changes: 2 additions & 2 deletions example/src/screens/RegisterScreen/RegisterScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const RegisterScreen = ({ navigation }: Props) => {
>
<TextInput
autoCapitalize='none'
autoCompleteType='email'
autoComplete='email'
autoCorrect={false}
autoFocus
clearButtonMode='while-editing'
Expand All @@ -73,7 +73,7 @@ const RegisterScreen = ({ navigation }: Props) => {
<TextInput
ref={passwordInput}
autoCapitalize='none'
autoCompleteType='password'
autoComplete='password'
autoCorrect={false}
clearButtonMode='while-editing'
editable={!registering}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flyerhq/react-native-firebase-chat-core",
"version": "1.4.1",
"version": "1.4.2",
"description": "Actively maintained, community-driven Firebase BaaS for chat applications with an optional chat UI.",
"homepage": "https://flyer.chat",
"repository": {
Expand Down

0 comments on commit 5a9a630

Please sign in to comment.