spokestack / react-native-spokestack

Spokestack: give your React Native app a voice interface!
https://spokestack.io
Apache License 2.0
56 stars 13 forks source link

feat(enums): make enums available as separate exports #86

Closed timmywil closed 3 years ago

timmywil commented 3 years ago

This PR exports the enums so they can be imported separately. It also removes the unnecessary getter accessors.

This makes it so they can be imported both ways:

import Spokestack from 'react-native-spokestack'

console.log(Spokestack.TraceLevel) // works
import { TraceLevel } from 'react-native-spokestack'

console.log(TraceLevel) // also works