Closed Relax594 closed 4 years ago
Running this
<Rating size={48} totalCount={1} rated={stern1} />
and clicking on it crashes the app because of
ERROR TypeError: onIconTap is not a function. (In 'onIconTap(position + 1)', 'onIconTap' is undefined)
There is never a check if this function exists and from reading the docs there is no need to define this function.
Please either check if the function exists (which should be the way to go anyways) or update the docs :) Thanks!
Good catch.. Will fix and revert soon.
Fixed. Check v5.3.2
LGTM
Running this
<Rating size={48} totalCount={1} rated={stern1} />
and clicking on it crashes the app because of
ERROR TypeError: onIconTap is not a function. (In 'onIconTap(position + 1)', 'onIconTap' is undefined)
There is never a check if this function exists and from reading the docs there is no need to define this function.
Please either check if the function exists (which should be the way to go anyways) or update the docs :) Thanks!