Skip to content

Commit 068522a

Browse files
author
dkmiecik
committed
Fix Web App example.
1 parent 7cb4e2a commit 068522a

File tree

5 files changed

+3726
-234
lines changed

5 files changed

+3726
-234
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ android/app/libs
4848
android/keystores/debug.keystore
4949

5050
# generated by bob
51-
lib/
51+
lib/
52+
53+
# npm access key
54+
.npmrc

example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function App() {
2121
<Button
2222
title={`Change rotation. The card rotation is: ${rotate}`}
2323
onPress={() => {
24-
setRotate((rotation: RotateAxis) => (rotation === RotateAxis.X ? RotateAxis.Y : RotateAxis.Y))
24+
setRotate((rotation: RotateAxis) => (rotation === RotateAxis.X ? RotateAxis.Y : RotateAxis.X))
2525
}}
2626
/>
2727

example/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
"react": "17.0.1",
1414
"react-dom": "17.0.1",
1515
"react-native": "0.64.2",
16-
"react-native-web": "0.17.1",
1716
"react-native-gesture-handler": "^1.5.2",
18-
"react-native-reanimated": "2.1.0"
17+
"react-native-reanimated": "2.1.0",
18+
"react-native-web": "0.17.1"
1919
},
2020
"devDependencies": {
2121
"@babel/core": "^7.12.9",
22+
"@expo/webpack-config": "^0.16.6",
2223
"@types/react": "~17.0.21",
2324
"@types/react-native": "~0.64.12",
25+
"babel-loader": "^8.2.3",
2426
"babel-plugin-module-resolver": "^4.0.0",
2527
"babel-preset-expo": "8.3.0",
2628
"typescript": "~4.3.5"

0 commit comments

Comments
 (0)