React Native wrapper for Daum Postcode service
Easily integrate Daum Postcode (Kakao Address API) in your React Native app for seamless address searching and selection.
- 📍 Real-time address search: Effortlessly find addresses using the Daum Postcode API.
- 📦 Simple integration: Minimal setup required for React Native projects.
- 📱 Mobile-friendly: Optimized for both iOS and Android platforms.
- 📡 TypeScript support: Built with TypeScript for better developer experience.
npm install @thewoowon/react-native-daum-postcode
or using yarn:
yarn add @thewoowon/react-native-daum-postcode
and iOS requires pod install because of react-native-webview.
cd ios && pod install
import React from 'react';
import { View, Alert } from 'react-native';
import Postcode from '@thewoowon/react-native-daum-postcode';
const App = () => {
const handleAddressSelect = (data: any) => {
console.log('Selected Address:', data);
};
return (
<View style={{ flex: 1 }}>
<Postcode
style={{width: '100%', height: '100%'}}
jsOptions={{animation: true}}
onSelected={(data: any) => Alert.alert(JSON.stringify(data))}
onError={(error: any) => Alert.alert(JSON.stringify(error))}
/>
</View>
);
};
export default App;
Prop Name | Type | Required | Description |
---|---|---|---|
onSelected |
function |
✅ | Callback when an address is selected |
onError |
function |
✅ | Callback when an error is occured |
style |
StyleProp<ViewStyle> |
❌ | Custom styles for the component |
The component renders the official Daum Postcode search interface inside a WebView, allowing users to search and select addresses easily.
- 🎉 First release with basic Daum Postcode integration
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
feat/new-feature
). - Commit your changes.
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or need support, feel free to open an issue on GitHub.
If you find this package useful, please consider giving it a star on GitHub!
This project is inspired by @actbase/react-daum-postcode.
Happy coding! 🚀