Skip to content

Commit

Permalink
Merge pull request Kimaia#10 from richeterre/patch-1
Browse files Browse the repository at this point in the history
Fix TS typing of style props
  • Loading branch information
menakerman authored Mar 26, 2019
2 parents 9bc9da5 + 9789a10 commit 6653a7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
declare module "react-native-hyperlinked-text" {

import {TextStyle} from "react-native";
import {StyleProp, TextStyle} from "react-native";

export interface ILinkDef {
regex: RegExp;
style?: TextStyle;
style?: StyleProp<TextStyle>;
replaceText?: (orig: string, text: string, url: string) => string;
onPress?: (orig: string, text: string, url: string) => void;
noPress?: boolean;
}

interface IProps {
style?: TextStyle;
linkStyle?: TextStyle;
style?: StyleProp<TextStyle>;
linkStyle?: StyleProp<TextStyle>;
linkDefs?: ILinkDef[];
onLinkPress?: (text: string) => void;
}
Expand Down

0 comments on commit 6653a7e

Please sign in to comment.