Skip to content

Commit

Permalink
refactor: nah, revert memo
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Apr 8, 2024
1 parent 4ada114 commit 491b142
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/TrueSheetGrabber.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { memo } from 'react'
import React from 'react'
import { View, type ColorValue, type ViewProps, type ViewStyle } from 'react-native'

const GRABBER_WRAPPER_HEIGHT = 24
Expand Down Expand Up @@ -36,7 +36,7 @@ export interface TrueSheetGrabberProps extends ViewProps {
* Little Grabber component.
* Used by defualt for Android but feel free to re-use.
*/
export const TrueSheetGrabber = memo((props: TrueSheetGrabberProps) => {
export const TrueSheetGrabber = (props: TrueSheetGrabberProps) => {
const {
visible = true,
color = GRABBER_DEFAULT_COLOR,
Expand All @@ -53,9 +53,7 @@ export const TrueSheetGrabber = memo((props: TrueSheetGrabberProps) => {
<View style={[$grabber, { height, width, backgroundColor: color }, style]} {...rest} />
</View>
)
})

TrueSheetGrabber.displayName = 'TrueSheetGrabber'
}

const $wrapper: ViewStyle = {
position: 'absolute',
Expand Down

0 comments on commit 491b142

Please sign in to comment.