Giter Club home page Giter Club logo

react-native-spring-scrollview's People

Contributors

atshitou avatar bolan9999 avatar lukebars avatar rafacv avatar stonebreken avatar

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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-spring-scrollview's Issues

TV OS support.

Appreciate the good work, But It would be great if the SpringScrollView is supported on TV. Can you please add the support?

ios下,当内部发生变化时,高度不能自动适应

我的环境是:"@youngtailors/react-native-spring-scrollview": "^2.1.0-rc.4",
"react-native": "0.62.2",

因为内容是一组数据,页面初始化以后,从后台获取数据再循环解析JSON数据并加载,然后就发现有的数据不能完全展示。

image
image

rn version 0.61.4

error Unable to resolve module react-native/lib/TextInputState from node_modules/react-native-spring-scrollview/SpringScrollView.js: react-native/lib/TextInputState could not be found within the project.

如何使用pod进行安装?

尝试使用pod进行安装,安装失败,提示没有版本
对应的pod

 pod 'RNSpringScrollView', :podspec => '../node_modules/react-native-spring-scrollview/ios'

想请问一下支持pod安装吗?
如果不支持,是否能补充一下手动安装的过程。
感谢

'React/RCTScrollViewManager.h' file not found

I update react native version to 0.60.4 and build debug on simulator success but when i build on device , i have issue like that

Screen Shot 2019-09-17 at 3 10 20 PM

I need some help :(

react-native : 0.60.4
react-native-spring-scrollview: 2.0.22

Cannot scroll if put SpringScrollView inside SafeAreaView

If we put SpringScrollView inside SafeAreaView then we cannot scroll anymore

return (
     <SafeAreaView>
          <SpringScrollView>

            {arr.map((i, index) =>
              <Text key={index}>
                Modify the '_contentCount','_bounces' and '_scrollEnabled' in
                BouncesExample.js to check if VerticalScrollView works well.
              </Text>
            )}
          </SpringScrollView>
     </SafeAreaView>
 )

Execution failed for task ':react-native-spring-scrollview:verifyReleaseResources'.

Hello @bolan9999,

Thanks for the great library.

I have a problem when I try to build it on android for production.

I get such kind of message.

Task :react-native-spring-scrollview:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-spring-scrollview:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/ashot/Documents/armtvs/node_modules/react-native-spring-scrollview/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/Users/ashot/Documents/armtvs/node_modules/react-native-spring-scrollview/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/Users/ashot/Documents/armtvs/node_modules/react-native-spring-scrollview/android/build/intermediates/res/merged/release/values/values.xml:2713: error: resource android:attr/fontVariationSettings not found.
/Users/ashot/Documents/armtvs/node_modules/react-native-spring-scrollview/android/build/intermediates/res/merged/release/values/values.xml:2714: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Could you please help me with this?

Horizontal scrolling

It says that this library supports both horizontal and vertical scrolling, but it has no horizontal prop..??

会一直转

tim 20181030121423
z这样他会一直转!知道Error: Out of memory

刷新条件到达refreshing了,继续下拉有bug

下拉到了refreshing,还没刷新完成:
1、继续下拉会改变刷新状态
2、连续快速下拉会一直把内容往下滑出屏幕外,空白区域会一直变大(是否应该有个限制值?)
3、在第2点上,停止下拉,等view自动回滚,内容会滑出顶部屏幕一部分,无法恢复最开始位置。

android cut off bottom

I have many children wrapped in SpingScrollView and at the beginning I will call api to update the UI of children, so children may have small height at the beginning but will grow up after update data for it.

  • When I jump into that Component and wait for it render completely => it work fine
  • But when it still waiting for a result of api and I jump to another component(screen) then come back when it already load done => I cannot scroll to end of the scroll view any more.(I also use LargeList and got a same issue too although I set the parent container style flex 1)

decelerationRate

可否支持ScrollView的decelerationRate,用于决定当用户抬起手指之后,滚动视图减速停下的速度,参考decelerationRate,如此可以控制滚动的速度,比较方便。

ios不显示刷新的头部和上拉的底部问题

<SpringScrollView refreshHeader={ChineseWithLastDateHeader} contentStyle={{minHeight: '100%'}} loadingFooter={ChineseWithLastDateFooter} allLoaded={true} onLoading={() => { }} onRefresh={() => { }}> <FlatList data={this.state.data} style={{flex: 1}} ItemSeparatorComponent={() => { return <View style={{height: 3}}></View> }} keyExtractor={(item, index) => index.toString()} renderItem={this._renderItem} /> </SpringScrollView>

"react-native": "0.57.6",
"react-native-spring-scrollview": "^2.0.17",

E28A07DC80965871DD37679CB7CEF0DB
F67C33444BD1257E7D0534E4E7062A40

[Question] How can we link this library to another library ?

Environment Info:
Dev OS : windows
Target OS: Android
react-native version: ^0.58.6,
react-native-spring-scrollview: ^2.0.20

Hi @bolan9999, please help me to integrate this library to my app library. I am trying to add this library to my library which is created by using react-native-create-library command.

I tried to link using react-native link react-native-spring-scrollview command and manually, but failing to do it so. I found a question saying It is not possible to add/link a library to another library. Is there any manual way to do this or not possible?

Trying to add the react-native-spring-scrollview: ^2.0.20 library to my library react-native-demolibrary, which is a library created using react-native-create-library command, since it is a library there were no settings.gradle file. So created and tried to link manually library to react-native-somelibrary.

settings.gradle

include ':react-native-spring-scrollview'
project(':react-native-spring-scrollview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spring-scrollview/android')

build.gradle

implementation project(':react-native-spring-scrollview')

below error has shown up,

GRADLE CONSOLE ERROR

org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file 'E:\Workspace\DemoApp\node_modules\react-native-demolibrary\android\build.gradle' line: 37
A problem occurred evaluating project ':react-native-library'.
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:139)
    at org.gradle.initialization.DefaultGradleLauncher.getConfiguredBuild(DefaultGradleLauncher.java:104)
    at .....more

ERROR:

Project with path ':react-native-spring-scrollview' could not be found in project ':react-native-demolibrary'.

Thank you for the help in advance.

Please add inverted

I'm actually using largeListV3 and I thought I finally found a good list for my chat, But this list doesn't have inverted prop.

是否支持 stickyHeaderIndices

官方的 scrollview 支持 stickyHeaderIndices 来实现固定部分元素在顶部
但是官方的安卓没有 bounce 效果

作者可以让 这个 插件也支持 stickyHeaderIndices 效果吗?

TouchableOpacity does not receive press event on real device

return (
     <SafeAreaView style={{ flex: 1 }}>
          <SpringScrollView>
            {arr.map((i, index) =>
                <TouchableOpacity
                    key={index}
                    onPress={() => console.log('clicked')}
                >
                    <Text>
                     Modify the '_contentCount','_bounces' and '_scrollEnabled' in
                     BouncesExample.js to check if VerticalScrollView works well.
                     </Text>
                 </TouchableOpacity>
            )}
          </SpringScrollView>
     </SafeAreaView>
 )

On Android 7.0 real device, the press event of TouchOpacity cannot be fired

I even tried the Examples/ComplexExample.js but it also does not work

Forking and cloning this repo - ends with a SpringScrollViewExample installed

Hi,
Well this may sound a bit stupid, but I'm bumping my head into it.
I've forked this repo and cloned it for a small change I've needed to make.
But when I'm npm installing it - I get the 'SpringScrollViewExample' installed (According to the package.json) instead of the 'react-native-spring-scrollview' (which is inside the 'src' folder)

I didn't see any scripts that points to the right folder while installing this repo.

Any help would be appreciated.
Thanks :)

Dispatched event hasn't been initialized

开发环境 MAC os 10.15.1
运行环境 Android 真机(华为nova2s)
react-native 0.55.4
react-native-spring-scrollview 2.0.23
react-native-largelist-v3 3.0.15

代码:

_renderSection = (section: number) => {
return (


Section {section}


);
};

_renderIndexPath = ({ section: section, row: row }) => {
return (


Section {section} Row {row}



);
};

render() {
const data = [];
for (let section = 0; section < this._sectionCount; ++section) {
const sContent = { items: [] };
for (let row = 0; row < this._rowCount; ++row) {
sContent.items.push(row);
}
data.push(sContent);
}
return (
<LargeList
style={styles.container}
data={data}
heightForSection={() => 50}
renderSection={this._renderSection}
heightForIndexPath={() => 50}
renderIndexPath={this._renderIndexPath}
/>
);
}
问题:

向上滑动闪退, 报错日志

2020-03-14 14:27:03.342 10321-10321/com.videogo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.videogo, PID: 10321
java.lang.AssertionError: Dispatched event hasn't been initialized
at com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:72)
at com.facebook.react.uimanager.events.EventDispatcher.dispatchEvent(EventDispatcher.java:114)
at com.bolan9999.SpringScrollView.sendOnScrollEvent(SpringScrollView.java:514)
at com.bolan9999.SpringScrollView.setContentOffset(SpringScrollView.java:477)
at com.bolan9999.SpringScrollView.moveToOffset(SpringScrollView.java:459)
at com.bolan9999.SpringScrollView.drag(SpringScrollView.java:403)
at com.bolan9999.SpringScrollView.onMove(SpringScrollView.java:142)
at com.bolan9999.SpringScrollView.onTouch(SpringScrollView.java:116)
at android.view.View.dispatchTouchEvent(View.java:11784)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2647)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView.dispatchTouchEvent(RNGestureHandlerEnabledRootView.java:34)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2661)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:549)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1953)
at android.app.Activity.dispatchTouchEvent(Activity.java:3559)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:502)
at android.view.View.dispatchPointerEvent(View.java:12027)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5278)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5067)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4634)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4600)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4727)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4608)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4784)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4634)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4600)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4608)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7169)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7143)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7104)
2020-03-14 14:27:03.344 10321-10321/com.videogo E/AndroidRuntime: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7325)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:192)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:181)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:7248)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:7353)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:981)
at android.view.Choreographer.doCallbacks(Choreographer.java:790)
at android.view.Choreographer.doFrame(Choreographer.java:715)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

Unable to resolve module `react-native/lib/TextInputState` from `node_modules/react-native-spring-scrollview/SpringScrollView.js`

Hello,
I have RN 0.61, and the error message is this one

Unable to resolve module `react-native/lib/TextInputState` from `node_modules/react-native-spring-scrollview/SpringScrollView.js`: react-native/lib/TextInputState could not be found within the project.

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules: rm -rf node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0

I checked your installation guide and I think I did everything good, but still...

npm上没有`2.1.0` 的版本,安装不了`2.1.0`的版本

文档 中:

[email protected]+:推荐使用[email protected].*

执行yarn add [email protected],报错如下:

Couldn't find any versions for "react-native-spring-scrollview" that matches "2.1.0"
? Please choose a version of "react-native-spring-scrollview" from this list: (Use arrow ke
ys)
❯ 2.0.23
  2.0.22
  2.0.21
  2.0.20
  2.0.19
  2.0.18
  2.0.17
  2.0.16
  2.0.15
  2.0.14
  2.0.13
  2.0.12
  2.0.11
  2.0.10
  2.0.9
  2.0.8
  2.0.7
  2.0.6
  2.0.5
  2.0.4
(Move up and down to reveal more choices)

Show more to load in footer without pulling up?

Hi,

I want to show more data is available to load after the last item without the user needing to start pulling up. Is there a way todo it? I ask because many users aren't used to pull to load more items.

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.