1.2.0 • Published 2 years ago
react-native-com-address v1.2.0
react-native-com-address
helllo native app
Installation
npm install react-native-com-address
Usage
import React, { useState } from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import { Verifyaddress } from 'react-native-com-address';
export default function App() {
const [openSDK, setOpenSDK] = useState(false);
const handleOpen = () => {
setOpenSDK(true);
};
const handleClose = () => {
setOpenSDK(false);
};
return (
<>
<View style={styles.container}>
<Text>hello world!</Text>
<TouchableOpacity
onPress={handleOpen}
style={{
backgroundColor: '#007BFF',
paddingVertical: 10,
paddingHorizontal: 20,
marginTop: 20,
borderRadius: 5,
}}
>
<Text style={{ fontSize: 15, color: 'white' }}>open SDK</Text>
</TouchableOpacity>
</View>
<Verifyaddress
onClose={handleClose}
onOpen={openSDK}
workitemId="" //string
customerName="Test Customer" //string
customerEmail="boluwatobi@gmail.com" //string
branchCode="007" //string
segmentId="ADB" //string
houseNumber="25" //string
streetName="Pilot Crescent" //string
areaName="Surulere" //string
landmark="Shoprite" //string
state="LG" //string
lga="694" //string
createdBy="" //string
customerImage="" //string
Latitude="6.4886218" //string
Longitude="3.3567333" //string
/>
</>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
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