Skip to content
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

Merged
merged 6 commits into from
Jan 22, 2023
Merged

feat: export style type #2

merged 6 commits into from
Jan 22, 2023

Conversation

java-james
Copy link
Contributor

@java-james java-james commented Jan 19, 2023

  • Export style type
  • Fix tsc errors included unused imports and package not having loadash types
  • Run prettier to apply defined prettier rules
  • bump loadash

Few commits intended to be squash merged.

Edits welcome. Applied quite quickly so do review please.
Addresses #1

@@ -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"
Copy link
Contributor Author

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';
Copy link
Contributor Author

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<
Copy link
Contributor Author

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';
Copy link
Contributor Author

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';
Copy link
Contributor Author

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

@java-james java-james mentioned this pull request Jan 19, 2023
@iway1 iway1 merged commit cfce275 into iway1:master Jan 22, 2023
@iway1
Copy link
Owner

iway1 commented Jan 22, 2023

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants