APSL / react-native-version-number

Gets the version number and build number of your app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type definition does not match JavaScript code

jens-duttke opened this issue · comments

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
	}
}