cloneReferencedElement for React Native
This is a version of React.cloneElement
that preserves the original element's ref even if you specify a new ref for the clone.
This package has been deprecated
Author message:
Use react-clone-referenced-element instead, which imports react instead of react-native.
This is a version of React.cloneElement
that preserves the original element's ref even if you specify a new ref for the clone.
npm i react-native-clone-referenced-element
3
1.0.0
MIT