Skip to content

Commit

Permalink
Version 1.0.1 | new: Types and Props are exportable now. tsconfig is …
Browse files Browse the repository at this point in the history
…updated
  • Loading branch information
WrathChaos committed Sep 29, 2021
1 parent 03b60d8 commit e98e2c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 8 additions & 4 deletions lib/StateView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ import {
import styles, { _shadowStyle } from "./StateView.style";
import RNBounceable from "@freakycoder/react-native-bounceable";

type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
type CustomTextStyleProp = StyleProp<TextStyle> | Array<StyleProp<TextStyle>>;
type CustomImageStyleProp =
export type CustomStyleProp =
| StyleProp<ViewStyle>
| Array<StyleProp<ViewStyle>>;
export type CustomTextStyleProp =
| StyleProp<TextStyle>
| Array<StyleProp<TextStyle>>;
export type CustomImageStyleProp =
| StyleProp<ImageStyle>
| Array<StyleProp<ImageStyle>>;

interface IStateViewProps {
export interface IStateViewProps {
style?: CustomStyleProp;
title: string;
description?: string;
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-easy-state-view",
"version": "1.0.0",
"version": "1.0.1",
"description": "Fully customizable State View with plug & play usage for React Native.",
"keywords": [
"react-native",
Expand Down Expand Up @@ -49,5 +49,8 @@
"npx prettier --write",
"eslint src/*.js --fix-dry-run"
]
},
"dependencies": {
"@freakycoder/react-native-bounceable": "^0.2.5"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sourceMap": true /* Generates corresponding '.map' file. */
},
"exclude": [
"example-old",
"example",
"node_modules",
"babel.config.js",
"metro.config.js",
Expand Down

0 comments on commit e98e2c4

Please sign in to comment.