We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The fix is to make use of react-native hooks
import the UseRef Hook import React, {useRef} from 'react';
UseRef
import React, {useRef} from 'react';
create a variable using it const modal3 = useRef();
const modal3 = useRef();
in the Modal prop, refer to the ref
<Modal ref={modal3}> ... </Modal>
Open your modal using the open() Method like so:
open()
<Button title="Open Modal" onPress={() => modal3.current.open()} />
voila !!. It works
The text was updated successfully, but these errors were encountered:
This doesn't work!
Sorry, something went wrong.
@Infinitism Kindly share your code
No branches or pull requests
The fix is to make use of react-native hooks
import the
UseRef
Hookimport React, {useRef} from 'react';
create a variable using it
const modal3 = useRef();
in the Modal prop, refer to the ref
Open your modal using the
open()
Method like so:voila !!. It works
The text was updated successfully, but these errors were encountered: