Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
fixed: button
Browse files Browse the repository at this point in the history
  • Loading branch information
Asiern committed Jan 16, 2021
1 parent 940266b commit a7790ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/app/components/Subslide.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { View, Text, StyleSheet } from "react-native";
import { View, Text, StyleSheet, Dimensions } from "react-native";
import { h2, h4 } from "../themes/theme";
import Button from "./Buttons/Button";
export interface SubslideProps {
Expand All @@ -8,6 +8,7 @@ export interface SubslideProps {
last?: boolean;
onPress: () => void;
}
const { width } = Dimensions.get("window");

export default function Subslide({
title,
Expand All @@ -25,6 +26,7 @@ export default function Subslide({
label={last ? "Let's get Started" : "Next"}
variant={last ? "primary" : "default"}
{...{ onPress }}
width={(width / 3) * 2}
/>
</View>
);
Expand Down

0 comments on commit a7790ed

Please sign in to comment.