Skip to content

Commit

Permalink
update Readme example for success type (#221)
Browse files Browse the repository at this point in the history
the show-function-object used in the example appears to require a "type" property. At least the Typescript types don't show it as optional. So my intellisense immediately complained when using the example. Adding a type, like 'success' immediately fixed the error. So I figured we could update the example
  • Loading branch information
Seanmclem committed Jul 18, 2021
1 parent 1df2b64 commit d8afcb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -47,6 +47,7 @@ import Toast from 'react-native-toast-message';
function SomeComponent() {
React.useEffect(() => {
Toast.show({
type: 'success',
text1: 'Hello',
text2: 'This is some something 👋'
});
Expand Down

0 comments on commit d8afcb2

Please sign in to comment.