Questions tagged [react-native-snap-carousel]

66 questions
1
vote
1 answer

swiping on react-native-snap-carousel is not working as expected

I am trying to use react-native-snap-carousel but however, the swiping effect is not working as expected - it is often difficult to swipe left and right, it requires user to swipe harder to move to another picture (as illustrated in the link…
1
vote
0 answers

How to use videos in react native snap carousel? Perhaps another better carousel package for react native?

Is it possible to add Video component into the react-native-snap-carousel? I want to try to create a carousel similar to Instagram's swipe I was able to get swiping to work, but when I tried to add the video component from expo, it didn't show up.…
hellomello
  • 8,219
  • 39
  • 151
  • 297
1
vote
1 answer

React Native, TypeError: undefined is not an object When I am using onPress function

I am trying to call the onPress of the touchableopacity for like_click() but it is giving me an error (Undefined is not an object). I tried to call the method with this also but it is also giving me an error (can't find variable…
Maq
  • 53
  • 1
  • 9
1
vote
1 answer

Output multiple diverse elements with react-native-snap-carousel?

I am trying to build a Carousel using react-native-snap-carousel found here: https://github.com/archriss/react-native-snap-carousel. However, the examples that I have found so far only showcase one way: if you want to output the same format over…
1
vote
1 answer

Warning: Failed prop type: Invalid prop `data` of type `object` supplied to `Carousel`, expected `array`

I am using react-native-snap-carousel, It worked fine, It fetches data fine but i am getting 2 warnings in that app. Warning: Failed prop type: Invalid prop data of type boolean supplied to Carousel, expected array. Warning: Failed prop type: The…
1
vote
2 answers

How do you access an object in an array with this.state in React Native?

I am using react-native-snap-carousel and unable to access the URLs in the array. I can access them without other objects, but I need them to name each image. constructor(props) { super(props); this.state = { categoriesimages:…
Laney Williams
  • 573
  • 3
  • 13
  • 34
1
vote
0 answers

How to implement 3D carousel slider in react native?

I want to create 3D vertical carousel kind of slider in react native. I'm searching over the internet past two days but no luck. Is there any library out there with below attached image style. As of now i used react-native-snap-carousel with regular…
Sathya
  • 1,704
  • 3
  • 36
  • 58
1
vote
1 answer

How to provide API data to react-native-snap-carousel

i am using react-native-snap-carousel for my first react-native app. I have read docs but i see it use static data. But i want to get data form server with API, how can i do it? Thank you for helping.
0
votes
0 answers

react-native-snap-carousel not displaying data

I am trying to add a carousel component to my HomeScreen in my portfolio project using (https://blog.logrocket.com)implement-react-native-snap-carousel/ as the format. I have successfully ran that project as a tutorial but am having trouble…
anmil.dev
  • 1
  • 1
0
votes
0 answers

I can't put anything after my react-native snap carousel

I'm currently creating an app using react-native for a capstone project, but have run into a small issue when I try using the snap carousel. It seems that all text does not appear under the carousel for some reason. const YourApp = () => { return…
0
votes
1 answer

undefined is not an object _react.PropTypes.array

I am using React Native (Expo CLI). Since i reinstalled npm i have this error when i try to run npm start I found some similar erros related to react-native-snap-carousel (i am using it). TypeError: undefined is not an object (evaluating…
0
votes
3 answers

How to require image in react-native

I need to show images as carousel and I can't require them properly. I tried to require them in json like this {"Image": require("$PATH")} or in js file in ParalaxImage tag but nothing.... item creator _renderItem ({item, index}, parallaxProps) { …
0
votes
2 answers

react native import Carousel from "react-native-snap-carousel" not working

I install npm i @types/react-native-snap-carousel and version is 3.8.5 My package.json is { "name": "olivers", "version": "0.0.1", "private": true, "scripts": { "start": "react-native start", "ios": "react-native run-ios", …
MR.Jeon
  • 85
  • 3
  • 12
0
votes
0 answers

How to implement this view with pagination using react native snap carousel?

Hi everyone need help with this package react-native-snap-carousel. I want to implement it just like this https://i.pinimg.com/originals/d5/6a/06/d56a06bffbd19494fc8596b984789e29.gif Code used for Carousel _renderItem=({ item, index})=>{ …
0
votes
1 answer

Multiple Carousel Pagination sync issue inside Infinite FlatList

Reactive Native Expo Mobile App: I am using React Native Snap Carousel using this tutorial to pop out the images from my database. I have an infinite flat list with individual entries as React Native Snap Carousels, thus having multiple carousels…
Jayesh
  • 1,511
  • 1
  • 16
  • 37