the sample code is here.
Please help me to unit test this peace of code.
import { View, Text } from 'react-native'
import React, { useRef, useEffect } from 'react'
import { Modalize } from 'react-native-modalize'
const TestComponent = () => {
const myRef = useRef()
useEffect(() => {
myRef.current.open()
})
return (
<Modalize ref={myRef} alwaysOpen={400}>
<View>
<Text>Hello</Text>
</View>
</Modalize>
)
}