https://www.npmjs.com/package/react-native-signature-capture 적용
결과
<View style={{flexDirection:'column', paddingTop: '5%'}}>
<Text style={{fontSize:20, fontWeight:"bold", }}>서명란 </Text>
<SignatureCapture
style={{flex:3, width:300, height:700}}
ref="sign"
onSaveEvent={this._onSaveEvent}
onDragEvent={this._onDragEvent}
saveImageFileInExtStorage={false}
showNativeButtons={false}
showTitleLabel={true}
/>
<TouchableHighlight style={{width: 300, height:70, backgroundColor: "#eeeeee",
margin: 10, justifyContent: "center", alignItems:"center"}} onPress={() => { this.resetSign() } } >
<Text>다시입력</Text>
</TouchableHighlight>
</View>
</View>
'개발 > Front-end' 카테고리의 다른 글
[Springboot/Thymeleaf] thymeleaf 사용 기록 (0) | 2019.05.15 |
---|---|
[React Native] JSONP 파싱 (도로명주소 API) (0) | 2018.12.18 |
[React Native] react-native-navigation 화면넘기기 (0) | 2018.11.23 |
[React Native] React Native Navigation 환경 구축하기 (WebStrorm, Window) (0) | 2018.11.23 |
[React.js/Spring Boot] (0) | 2018.11.21 |