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 📖 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!