react-native-sign-on-glass
v0.2.4
Published
Sign on glass
Downloads
37
Readme
This is a new React Native project, bootstrapped using @react-native-community/cli.
Limitation
react-native new architecture only, iOS 13+.
Implementation
iOS: native PencilKit Android: android-signaturepad
Getting Started
yarn add react-native-sign-on-glass or
npm install react-native-sign-on-glassinside ios folder run
pod installinside android folder run
./gradlew cleanHow to use
import SignOnGlassView from 'react-native-sign-on-glass';
<View style={styles.container}>
<SignOnGlassView ref={ref} color="#e3e3e3" style={styles.box} />
<Button title="Clear" onPress={() => ref.current.clear()} />
<Button
title="Expose"
onPress={async () => {
const base64 = await ref.current.expose();
console.log(base64);
}}
/>
</View>Imperative API
clear()
Clear the signature canvas
expose()
Asynchronous function which exposes signature as base64 string
