8.6 KiB
id, title, original_id
| id | title | original_id |
|---|---|---|
| version-0.50-activityindicator | activityindicator | activityindicator |
ActivityIndicator #
Displays a circular loading indicator.
Example #
class App extends Component { render() { return ( <View style={[styles.container, styles.horizontal]}> <ActivityIndicator size="large" color="#0000ff" /> <ActivityIndicator size="small" color="#00ff00" /> <ActivityIndicator size="large" color="#0000ff" /> <ActivityIndicator size="small" color="#00ff00" /> </View> ) } }
const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center' }, horizontal: { flexDirection: 'row', justifyContent: 'space-around', padding: 10 } })
AppRegistry.registerComponent('App', () => App)
Props #
animating?: bool #
Whether to show the indicator (true, the default) or hide it (false).
size?: enum('small', 'large'), number #
Size of the indicator (default is 'small'). Passing a number to the size prop is only supported on Android.
ioshidesWhenStopped?: bool #
Whether the indicator should hide when not animating (true by default).
Improve this page by sending a pull request!