rm bad ref in render usage (#8024)
This commit is contained in:
@@ -1,11 +1,5 @@
|
|||||||
import React, {useCallback, useMemo, useRef} from 'react'
|
import React, {useCallback, useMemo} from 'react'
|
||||||
import {
|
import {GestureResponderEvent, StyleProp, TextStyle, View} from 'react-native'
|
||||||
GestureResponderEvent,
|
|
||||||
LayoutAnimation,
|
|
||||||
StyleProp,
|
|
||||||
TextStyle,
|
|
||||||
View,
|
|
||||||
} from 'react-native'
|
|
||||||
import {
|
import {
|
||||||
AppBskyEmbedRecord,
|
AppBskyEmbedRecord,
|
||||||
ChatBskyConvoDefs,
|
ChatBskyConvoDefs,
|
||||||
@@ -88,12 +82,6 @@ let MessageItem = ({
|
|||||||
return true
|
return true
|
||||||
}, [message, nextMessage, isPending])
|
}, [message, nextMessage, isPending])
|
||||||
|
|
||||||
const lastInGroupRef = useRef(isLastInGroup)
|
|
||||||
if (lastInGroupRef.current !== isLastInGroup) {
|
|
||||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
|
|
||||||
lastInGroupRef.current = isLastInGroup
|
|
||||||
}
|
|
||||||
|
|
||||||
const pendingColor = t.palette.primary_200
|
const pendingColor = t.palette.primary_200
|
||||||
|
|
||||||
const rt = useMemo(() => {
|
const rt = useMemo(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user