a react native wrapper for what3words
npm install react-native-what3words
import What3Words from 'react-native-what3words';
// ...
const API_KEY = '';
const MAP_API_KEY = '';
export default function MapComponent() {
return (
<View style={styles.container}>
<Text>What3Words</Text>
<What3Words
apiKey={API_KEY}
mapApiKey={MAP_API_KEY}
onEvent={console.log}
/>
</View>
);
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library