6. 下拉刷新组件 react-native-refreshable-listviewreact-native-refreshable-listview 是下拉刷新 ListView,当数据重载的时候显示加载提示。 
7. Modal 组件 react-native-modalreact-native-modal 是 React Native 的 <Modal> 组件。 
8. 文本解析控件 react-native-htmltextreact-native-htmltext 可以用 HTML 像 markup 一样在 ReactNative 里创建出相应效果的样式文本。ReactNative 为那些样式文本提供一个文本元素,用于取代 NSAttributedString,你可以创建嵌套的文本: 1 2 3 4 | <Text style={{fontWeight: 'bold'}}>
I am bold
<Text style={{color: 'red'}}> and red </Text>
</Text
|
9. react-native-htmlviewreact-native-htmlview 是一个将 HTML 目录作为本地视图的控件,其风格可以定制。 
10. LinearGradient 组件 react-native-linear-gradientreact-native-linear-gradient 是一个 React Native 的 LinearGradient 组件。 
11. 双向循环播放 react-native-looped-carouselreact-native-looped-carousel 是基于 React Native 的双向循环播放控件。 示例代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 'use strict';var React = require('react-native');var Carousel = require('react-native-looped-carousel');var Dimensions = require('Dimensions');var {width, height} = Dimensions.get('window');var {
AppRegistry,
StyleSheet, Text,
View
} = React;var carouselTest = React.createClass({ render: function() { return ( <Carousel delay={500}>
<View style={{backgroundColor:'#BADA55',width:width,height:height}}/>
<View style={{backgroundColor:'red',width:width,height:height}}/>
<View style={{backgroundColor:'blue',width:width,height:height}}/>
</Carousel>
);
}
});
AppRegistry.registerComponent('carouselTest', () => carouselTest);
|
如果你知道其他 React Native 插件,在评论与大家分享一下吧~ |