react-native/Libraries/Text
TomSwift 8621d4b797 iOS textTransform style support
Summary:
Issue [#2088](https://github.com/facebook/react-native/issues/2088).

The basic desire is to have a declarative mechanism to transform text content to uppercase or lowercase or titlecase ("capitalized").

My test plan involves having added a test-case to the RNTester app within the `<Text>` component area.   I then manually verified that the rendered content met my expectation.

Here is the markup that exercises my enhancement:

```
<View>
  <Text style={{ textTransform: 'uppercase'}}>
    This text should be uppercased.
  </Text>
  <Text style={{ textTransform: 'lowercase'}}>
    This TEXT SHOULD be lowercased.
  </Text>
  <Text style={{ textTransform: 'capitalize'}}>
    This text should be CAPITALIZED.
  </Text>
  <Text style={{ textTransform: 'capitalize'}}>
    Mixed:{' '}
    <Text style={{ textTransform: 'uppercase'}}>
      uppercase{' '}
    </Text>
    <Text style={{ textTransform: 'lowercase'}}>
      LoWeRcAsE{' '}
    </Text>
    <Text style={{ textTransform: 'capitalize'}}>
      capitalize each word
    </Text>
  </Text>
</View>
```

And here is a screenshot of the result:

![screen shot 2018-03-14 at 3 01 02 pm](https://user-images.githubusercontent.com/575821/37433772-7abe7fa0-279a-11e8-9ec9-fb3aa1952dad.png)

[Website Documentation PR](https://github.com/facebook/react-native-website/pull/254)
https://github.com/facebook/react-native-website/pull/254

[IOS] [ENHANCEMENT] [Text] - added textTransform style property enabling declarative casing transformations
Closes https://github.com/facebook/react-native/pull/18387

Differential Revision: D7583315

Pulled By: shergin

fbshipit-source-id: a5d22aea2aa4f494b7b25a055abe64799ccbaa79
2018-04-16 09:01:38 -07:00
..
BaseText iOS textTransform style support 2018-04-16 09:01:38 -07:00
RCTText.xcodeproj iOS textTransform style support 2018-04-16 09:01:38 -07:00
RawText Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Text Fixed problem in Text measurent on iOS 2018-02-25 09:37:38 -08:00
TextInput Fix bug with <InputAccessoryView> safe area conformance 2018-04-04 16:47:16 -07:00
VirtualText Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+Text.h iOS textTransform style support 2018-04-16 09:01:38 -07:00
RCTConvert+Text.m iOS textTransform style support 2018-04-16 09:01:38 -07:00
RCTTextAttributes.h iOS textTransform style support 2018-04-16 09:01:38 -07:00
RCTTextAttributes.m iOS textTransform style support 2018-04-16 09:01:38 -07:00
RCTTextTransform.h iOS textTransform style support 2018-04-16 09:01:38 -07:00
Text.js Convert Text to ES6 Class 2018-03-12 18:06:28 -07:00
TextPropTypes.js Move Text PropTypes to it's own file 2018-03-10 18:39:47 -08:00
TextProps.js Fixing misuses of the Text type 2018-03-10 18:39:47 -08:00
TextStylePropTypes.js iOS textTransform style support 2018-04-16 09:01:38 -07:00
TextUpdateTest.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00