Skip to content

Commit 964d2d5

Browse files
author
Christopher J. Brody
committed
demo with react-primitives
1 parent 5fea303 commit 964d2d5

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React Native Web Starter
1+
# React Native Web Starter with react-primitives
22

33
## Introduction
44

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"react": "16.5.1",
88
"react-dom": "^16.5.1",
99
"react-native": "https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz",
10-
"react-native-web": "^0.11.2"
10+
"react-native-web": "^0.11.2",
11+
"react-primitives": "^0.8.0"
1112
},
1213
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
1314
"scripts": {

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env amd */
22

33
import React from "react";
4-
import { View, Text, Animated, StyleSheet } from "react-native";
4+
import { View, Text, Animated, StyleSheet } from "react-primitives";
55

66
const logo = require("./assets/react-logo.png");
77

@@ -41,7 +41,7 @@ export default class App extends React.Component {
4141
resizeMode={"contain"}
4242
source={logo}
4343
/>
44-
<Text style={styles.appTitle}>Welcome to React Native Web️</Text>
44+
<Text style={styles.appTitle}>Welcome to react-primitives demo</Text>
4545
<Text style={styles.appSubtitle}>Vanilla Edition</Text>
4646
</View>
4747
<View style={{ alignItems: "center", flex: 3 }}>

yarn.lock

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,14 @@ analytics-node@^2.1.0:
832832
superagent "^3.5.0"
833833
superagent-retry "^0.6.0"
834834

835+
animated@^0.2.2:
836+
version "0.2.2"
837+
resolved "https://registry.yarnpkg.com/animated/-/animated-0.2.2.tgz#04af7846ad0b9b8d1f0472cc53d82b8efeb4a751"
838+
integrity sha512-7pMzS0Sk2lA6/JT6he+apuy3GnDWUWVCurHMrpsbT9ugeLe80kpDQWjZQvkFiU9o7LsPGydPnoZpJsmt1HPPMA==
839+
dependencies:
840+
invariant "^2.2.0"
841+
normalize-css-color "^1.0.1"
842+
835843
ansi-align@^2.0.0:
836844
version "2.0.0"
837845
resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f"
@@ -5700,7 +5708,7 @@ interpret@^1.0.0:
57005708
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296"
57015709
integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==
57025710

5703-
invariant@^2.2.2, invariant@^2.2.4:
5711+
invariant@^2.2.0, invariant@^2.2.2, invariant@^2.2.4:
57045712
version "2.2.4"
57055713
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
57065714
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
@@ -7642,7 +7650,7 @@ nopt@^4.0.1:
76427650
abbrev "1"
76437651
osenv "^0.1.4"
76447652

7645-
normalize-css-color@^1.0.2:
7653+
normalize-css-color@^1.0.1, normalize-css-color@^1.0.2:
76467654
version "1.0.2"
76477655
resolved "https://registry.yarnpkg.com/normalize-css-color/-/normalize-css-color-1.0.2.tgz#02991e97cccec6623fe573afbbf0de6a1f3e9f8d"
76487656
integrity sha1-Apkel8zOxmI/5XOvu/Deah8+n40=
@@ -8715,7 +8723,7 @@ promise@^7.1.1:
87158723
dependencies:
87168724
asap "~2.0.3"
87178725

8718-
prop-types@^15.5.10, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2:
8726+
prop-types@^15.5.10, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2:
87198727
version "15.7.2"
87208728
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
87218729
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -9121,6 +9129,16 @@ react-native-web@^0.11.2:
91219129
xmldoc "^0.4.0"
91229130
yargs "^9.0.0"
91239131

9132+
react-primitives@^0.8.0:
9133+
version "0.8.0"
9134+
resolved "https://registry.yarnpkg.com/react-primitives/-/react-primitives-0.8.0.tgz#1cba0b1bd1463df158c963cabd5130b017e35e45"
9135+
integrity sha512-LyzURw3K2dSlpWBhW1IpoRVzZtlpKyUAEhd+dmAD5hIRFkaJ+v3dM7+5AuFqg76B4ASxFxb/Wq9FFJ/UqMSUPA==
9136+
dependencies:
9137+
animated "^0.2.2"
9138+
create-react-class "^15.6.3"
9139+
prop-types "^15.7.2"
9140+
react-timer-mixin "^0.13.4"
9141+
91249142
react-proxy@^1.1.7:
91259143
version "1.1.8"
91269144
resolved "https://registry.yarnpkg.com/react-proxy/-/react-proxy-1.1.8.tgz#9dbfd9d927528c3aa9f444e4558c37830ab8c26a"

0 commit comments

Comments
 (0)