0.1.4 • Published 3 years ago

react-native-light-signature-pad v0.1.4

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

react-native-light-signature-pad

alt react-native-light-signature-pad

Supported

  • Android
  • iOS
  • Web (react-native-web)
  • Expo friendly

Installation

yarn add react-native-light-signature-pad
// Webview
yarn add react-native-webview

Basic Usage

import * as React from 'react';

import {SafeAreaView, StyleSheet, Text} from 'react-native';
import {SignaturePad} from 'react-native-light-signature-pad';


export default function App() {

  return (
    <SafeAreaView style={styles.container}>
      <Text>Sign me</Text>
      <SignaturePad backgroundColor={"#000000"} color={"#FFF"} onChange={base64DataUrl => console.log(base64DataUrl)}/>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  }
});
PropDefaultDescription
color#000000Pen color
backgroundColor#FFFCanvas background color
onChangeonChange(base64DataUrl) => void

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

1.0.0

3 years ago