Skip to content

Commit a6f895f

Browse files
committed
fix minor typos and add google analytics
1 parent 3910176 commit a6f895f

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

docs/about.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
id: about
3-
title: React Native Youtube iframe
3+
title: React Native Youtube-iframe
44
---
55

66
import useBaseUrl from '@docusaurus/useBaseUrl';
77

88
![npm](https://img.shields.io/npm/v/react-native-youtube-iframe?style=for-the-badge) ![npm](https://img.shields.io/npm/dm/react-native-youtube-iframe?style=for-the-badge)
99

10-
A wrapper of the Youtube IFrame player API build for react native.
10+
A wrapper of the **Youtube-iframe API** built for react native.
1111

1212
- ✅ Works seamlessly on both ios and android platforms
1313
- ✅ Does not rely on the native youtube service on android (prevents unexpected crashes, works on phones without the youtube app)

docs/basic_usage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: basic-usage
33
title: Basic Usage
44
---
55

6-
This snippet renders a Youtube video with a button that can play or pause the video. When the player has finished playing it, an alert is triggered
6+
This snippet renders a Youtube video with a button that can play or pause the video. When the player has finished playing it, an alert is triggered.
77

88
```jsx
99
import React, { useState, useCallback, useRef } from "react";

docs/install.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ This package uses react-hooks and therefore will need
1414

1515
- React Native CLI app - [Instructions](https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md)
1616

17-
- React Native version **`0.60` and above**, install the latest version of react-native-webview
18-
- React Native version **below `0.60`**, react-native-webview version `6.11.1` is the last version that supports it.
17+
- React Native **`0.60` and above**, install the latest version of react-native-webview.
18+
- React Native **below `0.60`**, react-native-webview version `6.11.1` is the last version that supports it.
1919

2020
- Expo App - [Instructions](https://docs.expo.io/versions/latest/sdk/webview/)
2121

docs/module_methods.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ metadata returned -
2727
| field | type | explanation |
2828
| ---------------- | ------ | -------------------------------------------------- |
2929
| author_name | String | The name of the author/owner of the video. |
30-
| author_url | String | youtube channel link of the video |
30+
| author_url | String | youtube channel link of the video. |
3131
| height | Number | The height in pixels required to display the HTML. |
3232
| html | String | The HTML required to embed a video player. |
3333
| provider_name | String | The name of the resource provider. |
3434
| provider_url | String | The url of the resource provider. |
3535
| thumbnail_height | Number | The height of the video thumbnail. |
3636
| thumbnail_url | String | The url of the resource provider. |
3737
| thumbnail_width | Number | The width of the video thumbnail. |
38-
| title | String | youtube video title |
38+
| title | String | youtube video title. |
3939
| type | String | The oEmbed version number. |
4040
| version | String | The resource type. |
4141
| width | Number | The width in pixels required to display the HTML. |

docs/ref_methods.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const App = () => {
5757
5858
<Type>function(): Promise[Number]</Type>
5959
60-
returns a promise that resolves to the total duration of the video
60+
returns a promise that resolves to the total duration of the video.
6161
6262
If the currently playing video is a live event, the getDuration() function will resolve the elapsed time since the live video stream began. Specifically, this is the amount of time that the video has streamed without being reset or interrupted. In addition, this duration is commonly longer than the actual event time since streaming may begin before the event's start time.
6363
@@ -115,8 +115,6 @@ The array of numbers are ordered from slowest to fastest playback speed. Even if
115115
116116
<Type>function(seconds:Number, allowSeekAhead:Boolean):Void</Type>
117117
118-
`seekTo(seconds:Number, allowSeekAhead:Boolean):Void`
119-
120118
Seeks to a specified time in the video. If the player is paused when the function is called, it will remain paused. If the function is called from another state (playing, video cued, etc.), the player will play the video.
121119
The seconds parameter identifies the time to which the player should advance.
122120

website/docusaurus.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module.exports = {
2323
},
2424
],
2525
},
26+
googleAnalytics: {
27+
trackingID: 'UA-165995640-2',
28+
},
2629
},
2730
presets: [
2831
[
@@ -33,8 +36,6 @@ module.exports = {
3336
routeBasePath: '/',
3437
homePageId: 'about',
3538
sidebarPath: require.resolve('./sidebars.js'),
36-
editUrl:
37-
'https://github.com/LonelyCpp/react-native-youtube-iframe/edit/master/docs/',
3839
},
3940
theme: {
4041
customCss: require.resolve('./src/css/custom.css'),

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"last 1 safari version"
3131
]
3232
}
33-
}
33+
}

website/sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
someSidebar: {
33
About: ['about', 'install', 'basic-usage'],
4-
documentation: [
4+
Documentation: [
55
'component-props',
66
'component-ref-methods',
77
'module-methods',

0 commit comments

Comments
 (0)