Merge pull request #23420 from iRoachie/rnmu-actionbutton

react-native-material-ui - Add positionContainer on ActionButton style
This commit is contained in:
Eloy Durán
2018-02-05 06:11:16 -05:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -25,7 +25,7 @@ const theme = {
const Example = () =>
<ThemeProvider uiTheme={theme}>
<View>
<ActionButton />
<ActionButton style={{ positionContainer: { marginBottom: 3 }}} />
<ActionButton icon="done" />
<Avatar text="A" />