Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
allow hiding keyboard when creating playlist (#2062)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
  • Loading branch information
nicoback2 and nicoback authored Oct 4, 2022
1 parent b7e02ed commit 8e2dedd
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useCallback } from 'react'
import { CreatePlaylistSource, cacheCollectionsActions } from '@audius/common'
import type { FormikProps } from 'formik'
import { Formik } from 'formik'
import { Keyboard, TouchableWithoutFeedback, View } from 'react-native'
import { useDispatch } from 'react-redux'
import { getTempPlaylistId } from 'utils/tempPlaylistId'

Expand Down Expand Up @@ -44,9 +45,14 @@ const CreatePlaylistForm = (props: FormikProps<PlaylistValues>) => {
onReset={handleReset}
errors={errors}
>
<PlaylistImageInput />
<PlaylistNameInput />
<PlaylistDescriptionInput />
{/* Allow user to click outside of input to hide keyboard */}
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<View>
<PlaylistImageInput />
<PlaylistNameInput />
<PlaylistDescriptionInput />
</View>
</TouchableWithoutFeedback>
</FormScreen>
)
}
Expand Down

0 comments on commit 8e2dedd

Please sign in to comment.