diff --git a/docs/activityindicator.md b/docs/activityindicator.md
index 816c95fcad8..e579b7ef662 100644
--- a/docs/activityindicator.md
+++ b/docs/activityindicator.md
@@ -7,27 +7,81 @@ Displays a circular loading indicator.
### Example
-```SnackPlayer name=ActivityIndicator
-import React from 'react';
-import { ActivityIndicator, StyleSheet, View } from 'react-native';
+
+
+ -
+ Function Component Example
+
+ -
+ Class Component Example
+
+
+
+
+
+
+```SnackPlayer name=ActivityIndicator%20Function%20Component%20Example
+import React from "react";
+import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
+
+export default function App() {
+ return (
+
+
+
+
+
+
+ );
+}
-export default App = () => (
-
-
-
-
-);
+const styles = StyleSheet.create({
+ container: {
+ flex: 1,
+ justifyContent: "center"
+ },
+ horizontal: {
+ flexDirection: "row",
+ justifyContent: "space-around",
+ padding: 10
+ }
+});
+```
+
+
+
+```SnackPlayer name=ActivityIndicator%20Class%20Component%20Example
+import React, { Component } from "react";
+import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
+
+export default class App extends Component {
+ render() {
+ return (
+
+
+
+
+
+
+ );
+ }
+}
const styles = StyleSheet.create({
container: {
flex: 1,
- flexDirection: 'row',
- justifyContent: 'space-around'
+ justifyContent: "center"
+ },
+ horizontal: {
+ flexDirection: "row",
+ justifyContent: "space-around",
+ padding: 10
}
});
+
```
----
+
# Reference