Giter Club home page Giter Club logo

react-native-ptr-control's People

Stargazers

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

Watchers

 avatar  avatar

react-native-ptr-control's Issues

怎么设置 九宫格 样式

现在 列表都是 垂直布局 我想要实现 九宫格样式 refs设置 样式 后 列表 在上拉 加载数据 就会 出现问题

[ BUG] null is not an object (evaluating 's._scrollView.setNativeProps')

We encounter error on android device and cause some force close. Because null is not an object (evaluating 's._scrollView.setNativeProps'). The error messages are come from bugsnag.

This is our code.

 <PTRControl
          setHeaderHeight={64}
          pullFriction={0.75}
          showsVerticalScrollIndicator={false}
          scrollComponent={'ScrollView'}
          enableFooterInfinite={false}
          renderHeaderRefresh={(gestureStatus, offset) => <CustomRefreshControl isRefreshing={gestureStatus === 4} />}
          onHeaderRefreshing={() => this.pullToRefreshLoadData()}
        >

Stack trace error from bugsnag

TypeError null is not an object (evaluating 's._scrollView.setNativeProps') 
    node_modules/react-native-ptr-control/lib/PTRScrollList.android.js:271:27 
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:152:6 _callTimer
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:414:17 callTimers
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:366:47 value
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:106:26 
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:314:8 value
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:105:17 value
    [native code] value

FlatList

希望加一个FlatList的例子,非常感谢

onHeaderRefreshing fired on load

On android, the onHeaderRefreshing event is fired when the component is first mounted. On iOS it does not.

I expect that it should only fire on android once the screen is pulled down.

Example usage

 <PTRControl
                style={{ flex: 1 }}
                enableHeaderRefresh={true}
                getRef={ref => this.refOfScrollList = ref}
                showsVerticalScrollIndicator={false}
                onTopReachedThreshold={10}
                onEndReachedThreshold={10}
                scrollEnabled={true}
                setHeaderHeight={60}
                scrollComponent={'ScrollView'}
                enableFooterInfinite={true}
                onHeaderRefreshing={() => { // Executed }}
                onFooterInfiniting={() => {}}
            >
.... Content
</PTRControl>

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.