@towsila/expo-ui-library 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towsila/expo-ui-library",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,4 +1,4 @@
1
- import { View, Text, StyleSheet, Modal, Animated, Dimensions } from "react-native";
1
+ import { View, Text, StyleSheet, Modal, Animated, Dimensions, ViewStyle } from "react-native";
2
2
  import { useAppTheme } from "../../context/ThemeContext";
3
3
  import { textSize, Fonts } from "../../tokens/typography";
4
4
  import Button from "../ui/button";
@@ -153,7 +153,7 @@ const handleClose = () => {
153
153
 
154
154
  const styles = StyleSheet.create({
155
155
  overlay: {
156
- ...StyleSheet.absoluteFill,
156
+ ...(StyleSheet.absoluteFill as ViewStyle),
157
157
  backgroundColor: "rgba(0,0,0,0.5)",
158
158
  },
159
159
  sheetWrapper: {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, View, LayoutChangeEvent } from "react-native";
2
+ import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, View, LayoutChangeEvent, ViewStyle } from "react-native";
3
3
  import { Fonts, textSize } from "../../tokens/typography";
4
4
  import { useAppTheme } from "../../context/ThemeContext";
5
5
  import SharpContainer from "./sharpContainer"
@@ -58,7 +58,7 @@ export default function SharpButton({
58
58
 
59
59
  const styles = StyleSheet.create({
60
60
  contentContainer: {
61
- ...StyleSheet.absoluteFill,
61
+ ...(StyleSheet.absoluteFill as ViewStyle),
62
62
  justifyContent: "center",
63
63
  alignItems: "center",
64
64
  zIndex: 2,
@@ -2,6 +2,7 @@ import {
2
2
  View,
3
3
  Text,
4
4
  StyleSheet,
5
+ ViewStyle,
5
6
  } from "react-native";
6
7
  import { useAppTheme } from "../../context/ThemeContext";
7
8
  import { textSize, Fonts } from "../../tokens/typography";
@@ -51,8 +52,8 @@ const createStyles = (colors: any) =>
51
52
  justifyContent: "flex-end",
52
53
  },
53
54
  backdrop: {
54
- ...StyleSheet.absoluteFill,
55
- backgroundColor: "rgba(0,0,0,0.45)",
55
+ ...(StyleSheet.absoluteFill as ViewStyle),
56
+ backgroundColor: "rgba(0,0,0,0.45)",
56
57
  },
57
58
  sheet: {
58
59
  width: "100%",