Skip to content

Commit

Permalink
build(ts-check): resolve MutableRefObject not assignable
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT committed Jul 8, 2024
1 parent ffa4588 commit 9872e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SmartTopAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function SmartTopAlert({ alert }: Props) {
const [visibleAlertState, setVisibleAlertState] = useState(alert)
const insets = useSafeAreaInsets()
const yOffset = useRef(new Animated.Value(-500))
const containerRef = useRef<View>()
const containerRef = useRef<View>(null)

function hide() {
if (!containerRef.current) {
Expand Down

0 comments on commit 9872e3d

Please sign in to comment.