Skip to content

Commit

Permalink
Don't render InputAccessoryView on non-iOS platforms (#7568)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Feb 13, 2024
1 parent 420e56e commit 7029d77
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from '@emotion/native'
import { BlurView } from '@react-native-community/blur'
import type { InputAccessoryViewProps } from 'react-native'
import { InputAccessoryView, Keyboard } from 'react-native'
import { InputAccessoryView, Keyboard, Platform } from 'react-native'

import { useTheme } from '@audius/harmony-native'
import { TextButton } from 'app/components/core'
Expand All @@ -13,6 +13,11 @@ const messages = {
export const TextInputAccessoryView = (props: InputAccessoryViewProps) => {
const { type, spacing } = useTheme()

if (Platform.OS !== 'ios') {
// InputAccessoryView is only available on iOS
return null
}

return (
<InputAccessoryView {...props}>
<BlurView
Expand Down

0 comments on commit 7029d77

Please sign in to comment.