Add textTransform style prop (#27210)

This commit is contained in:
Alexander T
2018-07-12 00:51:35 -07:00
committed by Ryan Cavanaugh
parent 3a82a6c232
commit fe5462429b
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -766,6 +766,7 @@ export interface TextStyleIOS extends ViewStyle {
letterSpacing?: number;
textDecorationColor?: string;
textDecorationStyle?: "solid" | "double" | "dotted" | "dashed";
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase";
writingDirection?: "auto" | "ltr" | "rtl";
}
+4
View File
@@ -676,6 +676,10 @@ class StylePropsTest extends React.PureComponent {
// tintColor="green"
// width={200}
/>
<Text style={{ /* iOs only */ textTransform: 'capitalize' }}>
Text
</Text>
</View>
);
}