ThakurBallary / react-native-radio-buttons-group

Simple, best and easy to use radio buttons for react native apps.
MIT License
248 stars 70 forks source link

add handlePress function return-value in RadioButton.tsx #41

Closed ryosukemochizuki closed 9 months ago

ryosukemochizuki commented 2 years ago

hi :))

I use this lib for an app I made, and I found an issue (related to typescript compile).

issue→ When I set "noImplicitReturns": true, in tsconfig.json, type error Not all code paths return a value. occured in Radiobutton.tsx.

resolution→ add return null; to handlePress function in Radiobutton.tsx.

Hope you like it :)