@macellan/react-native-android-signature-helper
v0.3.0
Published
React Native package for Android app signature helper.
Downloads
10
Readme
@macellan/react-native-android-signature-helper
React Native package for Android app signature helper.
Installation
yarn add @macellan/react-native-android-signature-helper
Usage
import * as React from 'react'
import { Platform, View, Text } from 'react-native'
import { getSignatureHash } from '@macellan/react-native-android-signature-helper'
const App: React.FC = () => {
const [hash, setHash] = React.useState<string>('')
React.useEffect(() => {
if (Platform.OS !== 'android') return
getSignatureHash().then(hash => {
setHash(hash)
})
}, [])
return (
<View>
<Text>App Hash: {hash}</Text>
</View>
)
}
export default App
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library