-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: export style type #2
Conversation
@@ -36,6 +36,7 @@ | |||
"lodash": "^4.17.21" | |||
}, | |||
"devDependencies": { | |||
"@types/react-native": "^0.69.5" | |||
"@types/react-native": "^0.69.5", | |||
"@types/lodash": "^4.14.191" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Published /package is using loadash and requires types for tsc
import React, { useState } from "react"; | ||
import { Image, ImageBackground, ScrollView, StyleSheet, Text, View, ViewProps } from "react-native"; | ||
import { GradientBorderView } from "./package/index"; | ||
import MaskedView from '@react-native-masked-view/masked-view'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed unused imports and remainder is format by prettier
| 'borderBottomColor' | ||
>; | ||
|
||
export type GradientBorderViewStyle = StyleProp< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added style type
import React from "react"; | ||
import { StyleProp, StyleSheet, View, ViewProps, ViewStyle } from "react-native"; | ||
import GradientBorder, { RequiredGradientBorderProps } from "./GradientBorder"; | ||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unused imports, added style type, remainder is formatting from prettier
import { StyleSheet, View, ViewStyle } from "react-native" | ||
import MaskedView from "@react-native-masked-view/masked-view" | ||
import LinearGradient, { LinearGradientProps } from "react-native-linear-gradient" | ||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting changes from prettier only
thanks! |
Few commits intended to be squash merged.
Edits welcome. Applied quite quickly so do review please.
Addresses #1