No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
android init commit Nov 24, 2015 Merge branch 'master' of… Feb 23, 2016
index.js init commit Nov 24, 2015
package.json init commit Nov 24, 2015
screen.gif readme Nov 24, 2015
screen2.gif readme Nov 24, 2015

React Native ReboundScrollView

support android rebound ScrollView, compatible ios -- use react scrollview

screen screen2



In android/setting.gradle


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

In android/app/build.gradle

dependencies {
    compile project(':ReboundScrollView')

Register module (in

import com.jg.zhang.scrollview.ReboundScrollViewPackage; // <------ add here

public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {

  protected void onCreate(Bundle savedInstanceState) {
    mReactRootView = new ReactRootView(this);

    mReactInstanceManager = ReactInstanceManager.builder()
      .addPackage(new MainReactPackage())
      .addPackage(new ReboundScrollViewPackage(this))       // <------ add here

    mReactRootView.startReactApplication(mReactInstanceManager, "ExampleRN", null);






var ArticleDetailView = React.createClass({
			<View style={ArticleDetailStyle.container}>
				<View style={ArticleDetailStyle.articleConetent}>
					<Text style={ArticleDetailStyle.articleText}>
						In iOS, the way to display formatted text is by using NSAttributedString: you give the text that you want to display and annotate ranges with some specific formatting. In practice, this is very tedious. For React Native, we decided to use web paradigm for this where you can nest text to achieve the same effect.