Adding shadow around MapView marker - react-native

Is it possible to add a shadow around a react native MapView Marker? I've been trying to add the shadow in all ways possible, but it seems the marker just ignores it. All I want is for my marker to be 'elevated' a bit so it's not directly on the map. Is there any way to achieve this?

Related

How can you make a movable frame over the content with React Native, while making it possible to click the content around it?

I'm looking for a solution, if possible a library or a custom component, for React Native, without Expo.
I need to create a video frame that is movable in the screen, up and down, and cover the content. I also need to make it possible to click on the content behind it.
Another difficulty is that I need it to stay up on all screens during navigation.
I first tried to use reanimated-bottom-sheet with some increments, but the content behind the bottom is not clickable. Also, to make it available on all screens I needed to put in at the same level as React Navigation's BottomTabNavigator and it covers the tab bar too even with a zIndex.
I also tried to use modals, but I'm relatively new to React Native and couldn't find how to make the background touchable as well as making it movable.
I guess I need to make a view with absolute positionning and learn Reanimated, unless you have a simpler idea?
Thanks

how to make react native liquid animation with curve

Video description of the idea
I wanna make swipe animation as shown in the above video. BUT I don't know how to make a side of the view to be curved and animate it. So far I have achieved curve from where it can be draggable but don't know how to proceed further from it.
I have used d3-shape but don't think it's gonna work.
I know I can make it draggable using pan responder but what about animation effects around the circle which is being swiped?
Any idea of how should I implement it?

React native Maps, Recentering on a scrollview card by tapping on a marker

Hi I am trying to do the opposite of this tutorial, https://codedaily.io/tutorials/9/Build-a-Map-with-Custom-Animated-Markers-and-Region-Focus-when-Content-is-Scrolled-in-React-Native
Where by clicking on the marker it will recenter to the specified image
However i am clueless on what parameters i should be looking out for, and where i can start.
Your opinion and advice would be greatly appreaciated.
Hi I have managed to work this out, just by calling the markers value through the native events to set the point, along with standardizing the card size to the screens width and using scrollTo with animated true.

React Native: Creating vertical ViewPagerAndroid

Is it possible to create a vertical ViewPagerAndroid on React Native, or is there a workaround for Android that ends up with a similar UI maybe using ScrollView?
This currently isn't offered out of the box since ViewPagerAndroid implements only horizontal scrolling, and scroll snapping is implemented only on iOS. These are two approaches I would suggest exploring:
Give the illusion of a vertical pager by using the transform style property to rotate the ViewPagerAndroid by 90 degrees, and then transform each child 90 degrees in the other direction so their net rotation is zero. This is the approach we used in InvertibleScrollView and it works well for some use cases. You might find the same technique useful with ViewPagerAndroid.
Implement scroll snapping on Android. On iOS, React Native already offers an API for specifying how a ScrollView should snap at intermediate points, such as at the boundary of each page in a pager. On Android you could subclass ReactScrollView and implement the same behavior natively. This would require more work than rotating the pager, but is a more robust solution.

How to Add Polygon to MapView in React Native

In Objective-C, we can use MKPolygon to add a polygon to the mapview. How can I add polygons to map view using React Native? Is it possible? I think technically it is possible. I probably need to go the source code of react native.
It might be, but the MapView that comes with React Native is lacking for Android, and it seems crippled for iOS. I only saw the overlay property, which should work for polygons, and it even has a fillColor property, which would imply that you could. However, It's not clear from the docs what to do to tell the overlay that you want a polygon instead of a polyline.
I'd suggest this much more capable replacement MapView for React Native: https://github.com/lelandrichardson/react-native-maps
I'm halfway expecting the React Native maintainers to take notice of it, and integrate it if they find out about it.