ModalComponentProp
Last updated
Was this helpful?
Last updated
Was this helpful?
Note: ModalComponentProp
reuses the same types as and only adds 4 more on top of them.
addListener
Function that allows you to hook a listener to the animatedValue
of the modal represented by the component you're in.
Example:
getParam
Function that looks inside params
and returns you the value of the key corresponding to paramName
. Returns the provided defaultValue
if nothing was found.
Example:
removeAllListeners
Removes all the listeners connected to the modal component you're in.
Example:
params
Optional params you provided when opening the modal you're in.
Example: