Skip to content

Commit

Permalink
fix: turned off removeClippedSubview on iOS (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateki0 committed Jul 20, 2023
1 parent 0c87d46 commit 5271f43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/EmojiStaticKeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
SafeAreaView,
NativeSyntheticEvent,
NativeScrollEvent,
Platform,
} from 'react-native'
import type { EmojisByCategory } from '../types'
import { EmojiCategory } from './EmojiCategory'
Expand All @@ -20,6 +21,7 @@ import { ConditionalContainer } from './ConditionalContainer'
import { SkinTones } from './SkinTones'

const CATEGORY_ELEMENT_WIDTH = 37
const isAndroid = Platform.OS === 'android'

export const EmojiStaticKeyboard = React.memo(
() => {
Expand Down Expand Up @@ -109,7 +111,7 @@ export const EmojiStaticKeyboard = React.memo(
data={renderList}
keyExtractor={keyExtractor}
renderItem={renderItem}
removeClippedSubviews={true}
removeClippedSubviews={isAndroid}
ref={flatListRef}
onScrollToIndexFailed={onCategoryChangeFailed}
horizontal
Expand Down

0 comments on commit 5271f43

Please sign in to comment.