react-native-wheel-of-fortune
react-native-wheel-of-fortune copied to clipboard
Is there any plan to moved it with React Native hooks (onRef issue)
Hi there, after install the latest update (1.5.4). I don't think there is anyway to assign onRef with React Native hooks. useRef cannot assign onRef with function type (Since useRef is read only).
*Is there any plan to migrated to React hooks so far?
I will update docs as soon as possible thank you for your hands up 👍
Hi @eftalyurtseven can you provide an update on this if possible. will be really helpful.
Hi, Thanks for your Effort waitting for update and realy good job
Hi, The onRef issue still persists. Waiting for an update. Thank you!
Hi There! @leon2835 How did you manage to fix this error in your project?
I just use it as it is with class component
You can use it like this inside a functional component with hooks:
const wheelRef = useRef(null)
const wheelOptions = {
...,
onRef: ref => (wheelRef.current = ref)
}
return (
<WheelOfFortune options={wheelOptions} />
)