Closed tcodes0 closed 5 years ago
This should be merged asap
There seems to be ongoing debate in https://github.com/cooperka/react-native-snackbar/pull/106 as to whether this is broken or not. I'm a bit baffled, because it seems there should be one clear "right way" to do it.
I'm going to assume, based on popular opinion, that this PR is the right one. Please weigh in if you have other feedback. Thanks for submitting @Thomazella.
Still don't get it, why SnackBarOptions
is not be exposed... (usage: https://github.com/cooperka/react-native-snackbar/pull/106#issuecomment-500327893)
@slavikdenis if you need further changes please feel free to submit a PR. I'd also appreciate documentation explaining why certain changes were needed, if you do submit something.
TypeScript + React integration has always seemed a bit sketchy to me, and this is clearly no exception!
@slavikdenis Opened a PR to add in #116
@iRoachie looks great to me :) https://github.com/iRoachie/react-native-snackbar/blob/fb8c6aac5697f6cd4c1e22d0dfdd261e9534beb2/src/index.d.ts#L25
Fixes ts errors