Comments (3)
Hi,
path:
is for images that are in your android storage. Your app runs on your android device not on the PC so it doesn't recognize your development environement's resources.
Example usages of path
:
icon={{ path: "/sdcard/Download/icon.png", }}
icon={{ path: "/storage/emulated/0/Download/icon.png", }}
The best way to use custom images is that you add them in your android/app/src/main/assets folder.
You can call them via icon={{ asset: "ic_launcher.png", }} // under assets folder
.
Also, downloading images from the internet is not supported in native SDK right now.
from hms-react-native-plugin.
Thanks for your response.
How about rendering Component
as icon?
from hms-react-native-plugin.
If you are asking doing this:
<Marker>
<CustomIconView />
</Marker>
Unfortunately, it's not possible for now. Marker gets only InfoWindow as a child.
from hms-react-native-plugin.
Related Issues (20)
- Hitting error TS1110 when importing @hmscore/react-native-hms-analytics
- gradle-wrapper.jar! where is gradle-wrapper.jar ?? HOT 1
- Ads kit: VAST player needs permission on Android 31 HOT 2
- HMS map can not work inside ScrollView HOT 1
- Can the latest tag be created for the current open source repository? HOT 1
- fails to build Android with React Native 0.72.0 HOT 9
- Unhelpful Typescript type definitions HOT 1
- MapInitializer is not initialized HOT 5
- Android build error v0.72.6 [HMS-PUSH] HOT 7
- Map not showing in React Native Expo HOT 2
- HMSMap Not Displaying on Device HOT 2
- Cannot use @TaskAction annotation on method IncrementalTransformTask.transform()
- HMS push not working in expo HOT 1
- HMSReward.adRewardedListenerAdd is not functioning properly
- AGC Check Fail on HMS Location
- HMS-Account Integration Error on React Native 0.73.1
- -
- Clarification on Push Notification Behavior When Disabled
- Location Kit causes crash on Android 14 HOT 1
- HMS won't accept apply in .gradle file in react-version 0.74.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hms-react-native-plugin.