Skip to content

Commit 08c839c

Browse files
Initial Release from react-native-bottom-sheet-behavior
0 parents  commit 08c839c

File tree

13 files changed

+1455
-0
lines changed

13 files changed

+1455
-0
lines changed

.gitattributes

Whitespace-only changes.

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# OSX
3+
#
4+
.DS_Store
5+
6+
# node.js
7+
#
8+
node_modules/
9+
npm-debug.log
10+
yarn-error.log
11+
12+
13+
# Android/IntelliJ
14+
#
15+
build/
16+
.idea
17+
.gradle
18+
local.properties
19+
*.iml
20+
21+
# BUCK
22+
buck-out/
23+
\.buckd/
24+
*.keystore
25+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 César D Azevedo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# react-native-nested-scroll-view
2+
3+
This is a fork from the original react native ScrollView and a replacement with NestedScrollView.
4+
You should only use this if you are using such native components such as CoordinatorLayout.
5+
6+
## Libraries Using it.
7+
8+
* [react-native-collapsing-toolbar](https://github.com/cesardeazevedo/react-native-collapsing-toolbar)
9+
10+
* [react-native-bottom-sheet-behavior](https://github.com/cesardeazevedo/react-native-bottom-sheet-behavior *Optional)
11+
12+
> Tell me where you are using it!
13+
14+
## Getting started
15+
16+
`$ npm install react-native-nested-scroll-view --save`
17+
18+
### Automatic installation
19+
20+
`$ react-native link react-native-nested-scroll-view`
21+
22+
### Manual installation
23+
24+
MainActivity.java
25+
26+
```diff
27+
28+
+ import com.rnnestedscrollview.RNNestedScrollViewPackage;
29+
30+
public class MainApplication extends Application implements ReactApplication {
31+
32+
@Override
33+
protected List<ReactPackage> getPackages() {
34+
return Arrays.<ReactPackage>asList(
35+
new MainReactPackage(),
36+
+ new RNNestedScrollViewPackage()
37+
);
38+
}
39+
}
40+
41+
```
42+
43+
android/app/build.gradle
44+
45+
46+
```diff
47+
48+
dependencies {
49+
compile fileTree(dir: "libs", include: ["*.jar"])
50+
compile "com.android.support:appcompat-v7:23.0.1"
51+
compile "com.facebook.react:react-native:+" // From node_modules
52+
+ compile project(': react-native-nested-scroll-view')
53+
}
54+
55+
```
56+
57+
android/settings.gradle
58+
59+
```diff
60+
61+
include ':app'
62+
63+
+ include ':react-native-nested-scroll-view'
64+
+ project(':react-native-nested-scroll-view').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-nested-scroll-view/android')
65+
66+
67+
# License
68+
69+
[MIT](./LICENSE)

android/build.gradle

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:1.3.1'
8+
}
9+
}
10+
11+
apply plugin: 'com.android.library'
12+
13+
android {
14+
compileSdkVersion 25
15+
buildToolsVersion "23.0.1"
16+
17+
defaultConfig {
18+
minSdkVersion 16
19+
targetSdkVersion 25
20+
versionCode 1
21+
versionName "1.0"
22+
}
23+
lintOptions {
24+
abortOnError false
25+
}
26+
}
27+
28+
repositories {
29+
mavenCentral()
30+
}
31+
32+
dependencies {
33+
compile 'com.facebook.react:react-native:+'
34+
compile 'com.android.support:appcompat-v7:25.3.1'
35+
compile 'com.android.support:design:25.3.1'
36+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.rnnestedscrollview">
3+
</manifest>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.rnnestedscrollview;
2+
3+
import java.util.Arrays;
4+
import java.util.Collections;
5+
import java.util.List;
6+
7+
import com.facebook.react.ReactPackage;
8+
import com.facebook.react.bridge.NativeModule;
9+
import com.facebook.react.bridge.ReactApplicationContext;
10+
import com.facebook.react.uimanager.ViewManager;
11+
import com.facebook.react.bridge.JavaScriptModule;
12+
13+
public class RNNestedScrollViewPackage implements ReactPackage {
14+
@Override
15+
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
16+
return Arrays.<NativeModule>asList(new RNNestedScrollViewModule(reactContext));
17+
}
18+
19+
@Override
20+
public List<Class<? extends JavaScriptModule>> createJSModules() {
21+
return Collections.emptyList();
22+
}
23+
24+
@Override
25+
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
26+
return Arrays.<ViewManager>asList(
27+
new ReactNestedScrollViewManager()
28+
);
29+
}
30+
}

0 commit comments

Comments
 (0)