-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
26 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,60 @@ | ||
import * as React from 'react' | ||
import { | ||
ViewStyle, | ||
ViewProperties, | ||
TextStyle | ||
} from 'react-native' | ||
|
||
|
||
export interface ActionButtonProperties extends ViewProperties { | ||
resetToken?: any, | ||
active?: boolean, | ||
|
||
position?: string, | ||
elevation?: number, | ||
zIndex?: number, | ||
|
||
hideShadow?: boolean, | ||
shadowStyle?: {} | [any] | number, | ||
bgColor?: string, | ||
bgOpacity?: number, | ||
buttonColor?: string, | ||
buttonTextStyle?: TextStyle, | ||
buttonText?: string, | ||
|
||
offsetX?: number, | ||
offsetY?: number, | ||
spacing?: number, | ||
size?: number, | ||
autoInactive?: boolean, | ||
onPress?: () => void, | ||
backdrop?: boolean | object, | ||
degrees?: number, | ||
verticalOrientation?: 'up' | 'down', | ||
backgroundTappable?: boolean, | ||
activeOpacity?: number, | ||
|
||
useNativeFeedback?: boolean, | ||
fixNativeFeedbackRadius?: boolean, | ||
nativeFeedbackRippleColor?: string | ||
} | ||
|
||
export interface ActionButtonItemProperties extends ViewProperties { | ||
title?: string | ||
onPress?: () => void | ||
buttonColor?: string | ||
textContainerStyle?: ViewStyle | ||
textStyle?: TextStyle | ||
spaceBetween?: number | ||
activeOpacity?: number | ||
hideLabelShadow?: boolean | ||
shadowStyle?: ViewStyle | ||
useNativeFeedback?: boolean | ||
fixNativeFeedbackRadius?: boolean | ||
nativeFeedbackRippleColor?: string | ||
} | ||
|
||
export class ActionButtonItem extends React.Component <ActionButtonItemProperties> {} | ||
export default class ActionButton extends React.Component <ActionButtonProperties> { | ||
static Item: typeof ActionButtonItem | ||
} |
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
f27528a
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.
Good job . Thanks