Skip to content

Commit 104e999

Browse files
committed
Update expo snack link with only supported platforms
1 parent 55cb8ed commit 104e999

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

uilib-docs/src/data/expoSnackLink.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'https://snack.expo.io/@ethanshar/rnuilib_snack?platform=ios&supportedPlatforms=ios,android';

uilib-docs/src/pages/sections/InfoSection.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import './InfoSection.scss';
33
import qr from '../../images/newDesign/qr.png';
4+
import expoSnackLink from '../../data/expoSnackLink';
45

56
export default () => {
67
return (
@@ -24,7 +25,7 @@ export default () => {
2425
</a>
2526
</li>
2627
<li>
27-
<a target="_blank" href="https://snack.expo.io/@ethanshar/rnuilib_snack">
28+
<a target="_blank" href={expoSnackLink}>
2829
Expo-Snack
2930
</a>
3031
</li>

uilib-docs/src/pages/sections/IntroSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import './IntroSection.scss';
44
import introCover from '../../images/newDesign/introCover.jpg';
55
import goldStar from '../../images/goldStar.svg';
66

7+
import expoSnackLink from '../../data/expoSnackLink';
8+
79
export default () => {
810
return (
911
<div className="intro">
@@ -22,7 +24,7 @@ export default () => {
2224
<button className="dark">View Docs</button>
2325
</Link>
2426

25-
<a href="https://snack.expo.io/@ethanshar/rnuilib_snack" target="_blank" rel="noopener noreferrer">
27+
<a href={expoSnackLink} target="_blank" rel="noopener noreferrer">
2628
<button>Expo-Snack Demo</button>
2729
</a>
2830
</div>

0 commit comments

Comments
 (0)