-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add touchable components and update package version to 0.1.25
- Loading branch information
1 parent
244e797
commit 6a1aeb9
Showing
7 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { styled } from "nativewind"; | ||
import { StyledWindTouchableHighlightProps } from "../types"; | ||
import { TouchableHighlight } from "react-native"; | ||
|
||
const StyledWindTouchableHighlightComp = styled(TouchableHighlight); | ||
|
||
export const StyledWindTouchableHighlight: React.FC< | ||
StyledWindTouchableHighlightProps | ||
> = ({ children, className, style, ...rest }) => { | ||
return ( | ||
<StyledWindTouchableHighlightComp | ||
className={className} | ||
style={style} | ||
{...rest} | ||
> | ||
{children} | ||
</StyledWindTouchableHighlightComp> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { styled } from "nativewind"; | ||
import { StyledWindTouchableOpacityProps } from "../types"; | ||
import { TouchableOpacity } from "react-native"; | ||
|
||
const StyledWindTouchableOpacityComp = styled(TouchableOpacity); | ||
|
||
export const StyledWindTouchableOpacity: React.FC< | ||
StyledWindTouchableOpacityProps | ||
> = ({ children, className, style, ...rest }) => { | ||
return ( | ||
<StyledWindTouchableOpacityComp | ||
className={className} | ||
style={style} | ||
{...rest} | ||
> | ||
{children} | ||
</StyledWindTouchableOpacityComp> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { styled } from "nativewind"; | ||
import { StyledWindTouchableWithoutFeedbackProps } from "../types"; | ||
import { TouchableWithoutFeedback } from "react-native"; | ||
|
||
const StyledWindTouchableWithoutFeedbackComp = styled(TouchableWithoutFeedback); | ||
|
||
export const StyledWindTouchableWithoutFeedback: React.FC< | ||
StyledWindTouchableWithoutFeedbackProps | ||
> = ({ children, className, style, ...rest }) => { | ||
return ( | ||
<StyledWindTouchableWithoutFeedbackComp | ||
className={className} | ||
style={style} | ||
{...rest} | ||
> | ||
{children} | ||
</StyledWindTouchableWithoutFeedbackComp> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters