Cross platfrom maps for react & react-native
$ yarn add @teovilla/react-native-web-maps
For this to work you must alias react-native-maps
to @teovilla/react-native-web-maps
in your webpack config.
// webpack.config.js
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
config.resolve.alias['react-native-maps'] = '@teovilla/react-native-web-maps';
return config;
};
// next.config.js
module.exports = {
webpack: (config) => {
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native-maps$': '@teovilla/react-native-web-maps',
};
return config;
},
};
The docs for the project can be found here.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
Thanks goes to these wonderful people (emoji key):
Teodoro Villanueva ๐ง ๐ ๐ป |
Abdul Rehman Talat ๐ป |
Toby Smith ๐ ๐ป |
Youssef Henna ๐ ๐ป |
Sascha Reuter ๐ป |
This project follows the all-contributors specification. Contributions of any kind welcome!