mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-26 22:39:39 +08:00
Merge pull request #23420 from iRoachie/rnmu-actionbutton
react-native-material-ui - Add positionContainer on ActionButton style
This commit is contained in:
3
types/react-native-material-ui/index.d.ts
vendored
3
types/react-native-material-ui/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-native-material-ui 1.12
|
||||
// Type definitions for react-native-material-ui 1.19
|
||||
// Project: https://github.com/xotahal/react-native-material-ui
|
||||
// Definitions by: Kyle Roach <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -18,6 +18,7 @@ export interface ActionButtonProps {
|
||||
style?: {
|
||||
container?: ViewStyle
|
||||
icon?: TextStyle
|
||||
positionContainer?: ViewStyle
|
||||
};
|
||||
transition?: 'toolbar' | 'speedDial';
|
||||
onPress?(): void;
|
||||
|
||||
@@ -25,7 +25,7 @@ const theme = {
|
||||
const Example = () =>
|
||||
<ThemeProvider uiTheme={theme}>
|
||||
<View>
|
||||
<ActionButton />
|
||||
<ActionButton style={{ positionContainer: { marginBottom: 3 }}} />
|
||||
<ActionButton icon="done" />
|
||||
|
||||
<Avatar text="A" />
|
||||
|
||||
Reference in New Issue
Block a user