009_ReactNative: ScrollView

(问渠那得清如许,为有源头活水来。 双手奉上RN官网)

ScrollView : 滚动视图. 它内部的子元素不论当前有没有显示都会被渲染.如果想只渲染当前显示的,使用listview替代


import React, { Component } from 'react';
import{ AppRegistry, ScrollView, Image, Text, View } from 'react-native'

class IScrolledDownAndWhatHappenedNextShockedMe extends Component {
  render() {
      return(
         {/*图片与文字混排*/}
          Scroll me plz
          
          
          
          
          
          If you like
          
          
          
          
          
          Scrolling down
          
          
          
          
          
          What's the best
          
          
          
          
          
          Framework around?
          
          
          
          
          
          React Native
        
    );
  }
}


AppRegistry.registerComponent(
  'IScrolledDownAndWhatHappenedNextShockedMe',
  () => IScrolledDownAndWhatHappenedNextShockedMe);

你可能感兴趣的:(009_ReactNative: ScrollView)