当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
8 Star 0 Fork 0

OpenHarmony-SIG/rntpc_react-native-nested-scroll-view
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

🚨 重要提示 | IMPORTANT

⚠️ 此代码仓已归档。新地址请访问 rntpc_react-native-nested-scroll-view。| ⚠️ This repository has been archived. For the new address, please visit rntpc_react-native-nested-scroll-view.


react-native-nested-scroll-view

This is a fork from the original react native ScrollView and a replacement with NestedScrollView.

DISCLAIMER

I build this component while i was building the react-native-bottom-sheet-behavior and the react-native-collapsing-toolbar, which the NestedScrollView was a requirement in order to work with CoordinatorLayout's, if you are not using any native component, and just want to add some nested scroll in some List, i don't know if this component will work for you, feel free to give a try.

This component is too generic and wasn't built covering all Nested Scroll use cases, instead, it was born as just a fork of the original react native ScrollView, and i haven't tested all use cases and possibilities.

This project is android only, and will fallback to ScrollView on iOS.

Issues

If you have any issues, please attach a example project that i could reproduce it, since i don't know how people are exactly using it, without a project example, i won't be able to help you.

Libraries Using it.

Tell me where you are using it!

Getting started

ATTENTION: Make sure to use react-native 0.57.0 or a greater version

react-native version 0.57.4 or greater

$ npm install react-native-nested-scroll-view --save

react-native version 0.56.0 or bellow

$ npm install react-native-nested-scroll-view@7.0.0 --save

react-native versions 0.55.4 or bellow

$ npm install react-native-nested-scroll-view@6.0.1 --save

Manual link

MainApplication.java


+   import com.rnnestedscrollview.RNNestedScrollViewPackage;

    public class MainApplication extends Application implements ReactApplication {

      @Override
      protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
+           new RNNestedScrollViewPackage()
        );
      }
    }

android/app/build.gradle


    dependencies {
        implementation fileTree(dir: "libs", include: ["*.jar"])
+       implementation 'com.android.support:appcompat-v7:27.1.1'
+       implementation 'com.android.support:design:27.1.1'
        implementation 'com.facebook.react:react-native:+'  // From node_modules
+       implementation project(':react-native-nested-scroll-view')
    }

android/settings.gradle


include ':app'

+   include ':react-native-nested-scroll-view'
+   project(':react-native-nested-scroll-view').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-nested-scroll-view/android')

License

MIT

MIT License Copyright (c) 2016 César D Azevedo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/rntpc_react-native-nested-scroll-view.git
git@gitee.com:openharmony-sig/rntpc_react-native-nested-scroll-view.git
openharmony-sig
rntpc_react-native-nested-scroll-view
rntpc_react-native-nested-scroll-view
master

搜索帮助