Skip to content

Commit 2d9eadb

Browse files
committed
DEV: Onboarding screen - fixed dummy cards
1 parent ec4f58f commit 2d9eadb

File tree

3 files changed

+6
-37
lines changed

3 files changed

+6
-37
lines changed

app/screens/onboarding/setup-screen.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { useNavigation } from '@react-navigation/native';
1414
import React, { FC, useCallback, useState } from 'react';
1515
import {
16+
Dimensions,
1617
LayoutChangeEvent,
1718
StyleProp,
1819
StyleSheet,
@@ -49,10 +50,11 @@ const DummyCredential: FC<{
4950
style,
5051
bgImageIndex,
5152
}) => {
52-
const [width, setWidth] = useState(0);
53+
const [width, setWidth] = useState(Dimensions.get('window').width);
5354
const onLayout = useCallback((event: LayoutChangeEvent) => {
5455
setWidth(event.nativeEvent.layout.width);
5556
}, []);
57+
5658
return (
5759
<CredentialDetailsCard
5860
attributes={[]}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"@babel/preset-env": "^7.25.3",
9898
"@babel/runtime": "^7.25.0",
9999
"@eslint/compat": "^1.2.7",
100-
"@procivis/one-tests-lib": "^0.2.1",
101100
"@react-native-community/cli": "15.0.1",
102101
"@react-native-community/cli-platform-android": "15.0.1",
103102
"@react-native-community/cli-platform-ios": "15.0.1",

pnpm-lock.yaml

Lines changed: 3 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)