

Cross platform map for react & react-native
source link: https://reactnativeexample.com/cross-platform-map-for-react-react-native/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Cross platform map for react & react-native
@teovilla/react-native-web-maps
Cross platfrom maps for react & react-native
Installation
$ yarn add @teovilla/react-native-web-maps
Usage with Expo web / Webpack
For this to work you must alias react-native-maps
to @teovilla/react-native-web-maps
in your webpack config.
Example with Expo Web:
// 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;
};
Example with Next.js:
// next.config.js
module.exports = {
webpack: (config) => {
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native-maps$': '@teovilla/react-native-web-maps',
};
return config;
},
};
Documentation
The docs for the project can be found here.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
GitHub
Recommend
-
31
Tabs A cross-platform Collapsible Tab View component for React Native Dec 03, 2020...
-
20
@benjeau/react-native-draw Cross-platform React Native drawing component based on SVG. Example applic...
-
8
Tabs Smooth and fast cross platform Material Design Tabs for React Native Paper Dec...
-
47
Search A cross-platform selector/picker component for React Native May 07, 2021...
-
12
react-native-fast-toast Toast component for React Native, supports Android, IOS and Web Features Fully Customizable Swipe to close support Smooth animation Fully typed with TypeScr...
-
2
react-native-shadow-2 Cross-platform shadow for React Native. Improved version of the abandoned react-native-shadow package. react-native-shadow is dead for years. This one is an improved version with more functionalities, Typ...
-
8
Caching Cross-platform support for easy disk caching in React Native Jul 30, 2021...
-
7
react-native-ridge-navigation Simple and performant cross platform navigation on iOS, Android and the web with simple and type-safe api for React 18 (alpha) ⚠️ This is beta software, things can break. Things which are n...
-
8
Scroll A high performance cross-platform native bounces ScrollView for React Native ...
-
11
Whenever you create an iOS application, the question you ask first is usually “do I have to develop a native solution using Swift or go with a cross-platform app?”. You will be able to answer this question, as well as underst...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK