eftalyurtseven / react-native-wheel-of-fortune

React Native Wheel of Fortune Plugin
103 stars 89 forks source link

TypeError: _this.props.onRef is not a function #7

Closed greulist137 closed 3 years ago

greulist137 commented 4 years ago

Hi,

I keep getting an eror for: TypeError: _this.props.onRef is not a function

I did a fresh react native project and installed the latest packages of SVG and D3 and receive this error.

index.bundle?platfor…&minify=false:28837 Unhandled JS Exception: TypeError: _this.props.onRef is not a function

This error is located at: in WheelOfFortune (at App.js:69) in RCTView (at App.js:68) in RCTView (at App.js:66) in App (at renderApplication.js:40) in RCTView (at AppContainer.js:101) in RCTView (at AppContainer.js:119) in AppContainer (at renderApplication.js:39)

eftalyurtseven commented 4 years ago

Please share your code

receppolat commented 2 years ago

if you are using func comp u should change onRef like this onRef: ref => (refWheel.current = ref),