Git Product home page Git Product logo

react-native-slick's Introduction

Hi there ๐Ÿ‘‹

react-native-slick's People

Contributors

aforty avatar ahmed3mar avatar allomov avatar almost avatar andrewthoughtmachine avatar aubsw avatar bilalbudhani avatar brianantonelli avatar brianreavis avatar dchartfield avatar dizlexik avatar eosterberg avatar exilz avatar faridsafi avatar getnashty avatar gitter-badger avatar greenkeeperio-bot avatar hypatiah avatar ibandominguez avatar jasonmerino avatar jukkatupamaki avatar leecade avatar martco avatar nemophrost avatar onchainguy-btc avatar rajkissu avatar skv-headless avatar sunnylqm avatar tsunammis avatar yazgazan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-slick's Issues

Error by ViewPagerAndroid that's removed from RN 0.61

Which OS

Macos

Version

  • react-native-slick v1.0.2
  • react-native v0.61.1

Expected behaviour

No errors on Android

Actual behaviour

Current version raise error for "ViewPagerAndroid"

Error details:
Invariant Violation: VoewPagerAndroid has been removed from React Native.
It can now be installed and imported from 'react-native-viewpager' instead of 'react-native'

How to reproduce it>

It will only appear in Android platform

Images not show when set dynamically

Hi, when I set statics images its work well but when I try to load images from the server using API and try to set them it will not work here is my code

const self = this;
    var loadOrderList = {
        method: "GET",
        url: Location_URL,
        headers: {
            'Accept':'application/json',
            'Content-Type':'application/json'
        },
        json: true
    };

    axios(loadOrderList)
    .then(function (response) {
        self.setState({
          imageBanner: response.data.banneres,
          homeCategory: response.data.homeCategory
        })

        console.log(self.state.imageBanner, self.state.imgList);
    })
    .catch(function (error) {
      //console.log(error);
    });

Set images to slider

<Slick style={styles.wrapper} height={500} loop={true} autoplay={true}>
                  {
                    this.state.imageBanner.map((item, i) => <Slide
                      loadHandle={this.loadHandle}
                      loaded={!!this.state.loadQueue[i]}
                      uri={item}
                      i={i}
                      key={i} />)
                  }
                </Slick>

Output
screen shot 2018-05-24 at 1 57 30 pm

Plz tell me how to fix this issue thanks

question about "react-native init AwsomeProject"

I am looking for a slick library for my existing react app. I checked your example, however it needs "react-native init AwsomeProject" at the beginning. I wonder if it is possible to just use your slider as a component instead of "init" from the very beginning. If so, how should I do it? and how should I register at the end?

thank you.

Partial slide?

Could you give us some examples for partial slide?
Basically when slide 1 is in front I want to see a little bit part of slide 2

array.map doesn't work on Slider

Which OS ?

Version

Which versions are you using:

  • react-native-slick v?
  • react-native v0.?.?

Expected behaviour

Actual behaviour

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

Remove ViewProptypes from react-native import

Which OS ?

Version

Which versions are you using:

  • react-native-slick v?
  • react-native v0.?.?

Expected behaviour

Actual behaviour

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

active dot not working when item is dynamic

Which OS ? Iphone

Version

Which versions are you using:

  • react-native-slick v? 1.0.2
  • react-native v0.?.? 0.58.1

Expected behaviour

active dot must change when I change the page

Actual behaviour

active dot keep in first

<Slick height={'100%'} showsPagination={true} loop={true} activeDotStyle={{backgroundColor: '#000000', width: 13, height: 13, borderRadius: 13/2, overflow: 'hidden'}} dot={ <View style={{backgroundColor: '#bfbfbf', width: 13, height: 13, borderRadius: 13/2, overflow: 'hidden', marginLeft: 5, marginRight: 5}} /> } paginationStyle={{ top: -500, }} showsButtons={false}> { this.state.news.map((item)=> { return ( <View style={{width: '100%', height: '100%', alignItems: 'center', justifyContent: 'center'}}> <Image source={{uri: item.img_en}} style={{ width: 371, height: 576}} resizeMode={'contain'} /> </View> ) }) } </Slick>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.