I want to create slider in carousel in react native like the example image below, Is there any library out there or some tutorial to make like the example image ?
Or can someone write a part of code to help me write such a slider?
can i write this carousel with FlatList?
You can write your own slider with ScrollView or FastList.
Check this tutorial to understand the basics of creating a carousel with ScrollView https://blog.logicwind.com/carousel-using-react-native-scrollview/
Also, you could use react-native-snap-carousel library which offers many features and customizations.
Related
I'm new to react-native and I'm trying to make the bottom tabs with a custom style. I have to achieve something like this ->
I can only do a basic structure by styling it with react-native-bottom-tabs
this is my result so far->
but I can't get it, since the library I'm using, rn-wave-bottom-bar, is not very flexible with style changes and I would need some idea or help please!!!
React-Native 0.70.6
react => 18.1.0
Thank you
I want to animate text in react native and keep it in a loop. I was able to find a reactjs package that achieves this (react-text-loop), but could not find one for react native. Does anyone know how this can be achieved, below is a sample gif of what I want to achieve.
You can try the Animated or LayoutAnimation api. Check the Official Documentation
I'm looking to build a UI with stackable cards, something like:
Where there are a dynamic number of cards being the currently active card, and as the top card goes away, cards below is displayed. Very similar to Tinder's swipe-able experience.
I need to build this UI Component in my React web-app (not native). I found this library which looks very popular:
https://github.com/oliviertassinari/react-swipeable-views
However this library does not appear to support stacking view, and showing all the views at an offset as seen below.
Does anyone know if it is possible to accomplish what I'm looking for with react-swipeable-views or if there is a better library out there to accomplish UIC as seen in the image?
You could use the react-spring library to achieve this. Here is an example of that behavior implemented.
I hope it helps you!
In my app, after use selects an image from gallery, he needs to black out some part of it. for example draw a black line where there are some names or signatures.
Is it possible to achieve this with JS only? or do I have to make some native views separately for android/ios and implement it to react native?
or is there any image picker modules which provides such a feature?
It's a little bit late, but I think this library will do the trick:
https://www.npmjs.com/package/#terrylinla/react-native-sketch-canvas
You can load a picture beforehand as your canvas with the localSourceImageprop.
I've seen this image slider on the front page of http://www.ibm.com/us/en/ and I want to have one like that for my site. (After a timeout, the first image slides out of the screen, then the second image flies out after it, and then a new pair fly in).
I've seen that IBM uses Dojo not jQuery. Is this built in effect in dojo?
I have knowledge in javascript (but not any library like jQuery/dojo) and I can make it myself the hard-way. But I wanted to know first if there is anything built in to do it?
I think you might be better off with dojox.widget.Rotator or even dojox.widget.AutoRotator.
The image slider on the IBM.com front page is built using Dojo, but not a out-of-box component of Dojo library. It's a customized component.
If you want to create image sliders using Dojo, take a look at existing out-of-box components in DojoX library (dojox.image). dojox.image.SlideShow is a good starting point.