r/reactnative • • Sep 08 '20

Just published react-native-fast-toast, cross-platform Toast component for react-native

236 Upvotes

36 comments sorted by

View all comments

1

u/uuutttnnnkk Sep 10 '20

Can we get an example with javascript also?

1

u/alirezarzna Sep 10 '20

All examples should work on javascript too.

1

u/uuutttnnnkk Sep 10 '20

Beginner question: When I wrote,

const toastRef = useRef<Toast>(null);

like in the example on Github, it says "Type arguments can only be used in TypeScript files."

1

u/alirezarzna Sep 10 '20

Use the example in readme instead.