Skip to content

Commit 80e8acb

Browse files
Merge pull request #29 from Shopify/fix/release
Get documentation ready for the release
2 parents 9f17ca7 + db764b2 commit 80e8acb

7 files changed

Lines changed: 48 additions & 8 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,24 @@ https://shopify.github.io/react-native-skia
44

55
React Native Skia brings the Skia Graphics Library to React Native. Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox and, Firefox OS, and many other products.
66

7+
* This is an alpha release. Use with caution. *
8+
79
## Installation
810

911
React Native Skia brings the [Skia Graphics Library](https://skia.org/) to React Native.
1012
Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox and, Firefox OS, and many other products.
1113

14+
When reading these lines, the package is not yet available on npm.
15+
Use the link below to install the package.
16+
1217
```sh
13-
$ yarn add @shopify/react-native-skia
18+
$ yarn add https://github.com/Shopify/react-native-skia/releases/download/v0.1.43-alpha/shopify-react-native-skia-0.1.43.tgz
1419
```
1520

1621
Or using npm:
1722

1823
```sh
19-
$ npm install @shopify/react-native-skia
24+
$ npm install https://github.com/Shopify/react-native-skia/releases/download/v0.1.43-alpha/shopify-react-native-skia-0.1.43.tgz
2025
```
2126

2227
### iOS

docs/docs/getting-started/installation.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,25 @@ slug: /getting-started/installation
88
React Native Skia brings the [Skia Graphics Library](https://skia.org/) to React Native.
99
Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox and, Firefox OS, and many other products.
1010

11+
12+
:::warning
13+
14+
This is an alpha release.
15+
Use with caution.
16+
17+
:::
18+
19+
When reading these lines, the package is not yet available on npm.
20+
Use the link below to install the package.
21+
1122
```sh
12-
$ yarn add @shopify/react-native-skia
23+
$ yarn add https://github.com/Shopify/react-native-skia/releases/download/v0.1.43-alpha/shopify-react-native-skia-0.1.43.tgz
1324
```
1425

1526
Or using npm:
1627

1728
```sh
18-
$ npm add @shopify/react-native-skia
29+
$ npm install https://github.com/Shopify/react-native-skia/releases/download/v0.1.43-alpha/shopify-react-native-skia-0.1.43.tgz
1930
```
2031

2132
## iOS

docs/docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
88
const config = {
99
title: "React Native Skia",
1010
tagline: "High Performance 2D Graphics",
11-
url: "https://your-docusaurus-test-site.com",
12-
baseUrl: "/",
11+
url: "https://shopify.github.io/",
12+
baseUrl: "/react-native-skia/",
1313
onBrokenLinks: "throw",
1414
onBrokenMarkdownLinks: "warn",
1515
favicon: "img/favicon.ico",
@@ -71,7 +71,7 @@ const config = {
7171
title: "React Native Skia",
7272
logo: {
7373
alt: "React Native Skia",
74-
src: "img/logo.png",
74+
src: "/react-native-skia/img/logo.png",
7575
},
7676
items: [
7777
{

docs/src/pages/index.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
text-align: center;
99
position: relative;
1010
overflow: hidden;
11+
/* background-color: #85b3ff; */
1112
}
1213

1314
@media screen and (max-width: 966px) {

docs/src/pages/index.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function HomepageHeader() {
1111
return (
1212
<header className={clsx("hero hero--primary", styles.heroBanner)}>
1313
<div className="container">
14+
{/* <img src="/img/skia2.png" alt="Skia" height="200" width="auto" /> */}
1415
<h1 className="hero__title">{siteConfig.title}</h1>
1516
<p className="hero__subtitle">{siteConfig.tagline}</p>
1617
<div className={styles.buttons}>
@@ -35,7 +36,29 @@ export default function Home() {
3536
description="High Performance 2D Graphics"
3637
>
3738
<HomepageHeader />
38-
<main />
39+
<main>
40+
<div
41+
className="container"
42+
style={{
43+
display: "flex",
44+
flexGrow: 1,
45+
justifyContent: "center",
46+
alignItems: "center",
47+
marginTop: "2rem",
48+
marginBottom: "2rem",
49+
}}
50+
>
51+
<iframe
52+
width="560"
53+
height="315"
54+
src="https://www.youtube.com/embed/EHxEX78alZE"
55+
title="YouTube video player"
56+
frameBorder="0"
57+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
58+
allowFullScreen
59+
/>
60+
</div>
61+
</main>
3962
</Layout>
4063
);
4164
}

docs/static/img/skia.png

1.05 MB
Loading

docs/static/img/skia2.png

1.14 MB
Loading

0 commit comments

Comments
 (0)