Type definition does not match JavaScript code
jens-duttke opened this issue · 1 comments
jens-duttke commented
In the JavaScript code there is a default export, the type definition exports the values separately.
This results into an error if you deactivate "allowSyntheticDefaultImports" in the tsconfig.json.
The type definition should looks like:
declare module 'react-native-version-number' {
export default {
appVersion: string,
buildVersion: string,
bundleIdentifier: string
}
}