diff --git a/docs/next/share.html b/docs/next/share.html index cb7e356d9bf..ab7b3b57d42 100644 --- a/docs/next/share.html +++ b/docs/next/share.html @@ -80,17 +80,16 @@

iOS Only. The dialog has been dismissed.

Basic Example

-
import React, {Component} from 'react'
-import {Share, Button} from 'react-native'
+
import React, {Component} from 'react';
+import {Share, Button} from 'react-native';
 
 class ShareExample extends Component {
-
   onShare = async () => {
     try {
       const result = await Share.share({
         message:
           'React Native | A framework for building native apps using React',
-      })
+      });
 
       if (result.action === Share.sharedAction) {
         if (result.activityType) {
@@ -107,11 +106,8 @@
   };
 
   render() {
-    return (
-      <Button onPress={this.onShare}>Share</Button>
-    );
+    return <Button onPress={this.onShare} title="Share" />;
   }
-
 }