dancormier / react-native-swipeout

iOS-style swipeout buttons behind component
MIT License
2.62k stars 645 forks source link

Adds and exports ButtonType enum for type prop #315

Open maxschmeling opened 5 years ago

maxschmeling commented 5 years ago

This is just a slight improvement to the TypeScript support.

maxschmeling commented 5 years ago

The keyof typeof ButtonType part is necessary to make this backward compatible and not force every TypeScript based consumer of this component to switch to the enum type.

Feel free to just close this if you think it's not worth the change. But I like the enum, personally.