react-native/Libraries/Text
Dave Sibiski 6c7c845145 Implements `onKeyPress`
Summary: - When a key is pressed, it's `key value` is passed as an argument to the callback handler.
 - For `Enter` and `Backspace` keys, I'm using their `key value` as defined [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key#Key_values). As per JonasJonny & brentvatne's [suggestion](https://github.com/facebook/react-native/issues/1882#issuecomment-123485883).

- Example
```javascript
 _handleKeyPress: function(e) {
      console.log(e.nativeEvent.key);
  },

  render: function() {
    return (
      <View style={styles.container}>
        <TextInput
            style={{width: 150, height: 25, borderWidth: 0.5}}
            onKeyPress={this._handleKeyPress}
        />
        <TextInput
            style={{width: 150, height: 100, borderWidth: 0.5}}
            onKeyPress={this._handleKeyPress}
            multiline={true}
        />
      </View>
    );
  }
```
- Implements [shouldChangeCharactersInRange](https://developer.apple.com/library/prerelease/ios/documentat
Closes https://github.com/facebook/react-native/pull/2082

Reviewed By: javache

Differential Revision: D2280460

Pulled By: nicklockwood

fb-gh-sync-id: 1f824f80649043dc2520c089e2531d428d799405
2015-11-02 09:15:31 -08:00
..
RCTText.xcodeproj Text highlighting on iOS 2015-07-24 08:41:58 -08:00
RCTRawTextManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTRawTextManager.m Convert alloc/init to new to please linter 2015-08-17 08:46:00 -07:00
RCTShadowRawText.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTShadowRawText.m Dynamic Text Sizes for Text component 2015-07-31 07:42:41 -08:00
RCTShadowText.h Dynamic Text Sizes for Text component 2015-07-31 07:42:41 -08:00
RCTShadowText.m Corrected computation of RCText element height with padding 2015-10-13 06:44:32 -07:00
RCTText.h Fixed crash in RCTText due to NSTextContainer/NSLayoutManager being accessed concurrently from main and shadow queues 2015-05-26 18:52:46 -08:00
RCTText.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTTextField.h Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTTextField.m Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTTextFieldManager.h Migrated RCTText into FBReactKit 2015-07-08 07:13:00 -08:00
RCTTextFieldManager.m Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTTextManager.h Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextManager.m nil instead of empty `RCTViewManagerUIBlock` block 2015-10-27 05:09:31 -07:00
RCTTextView.h [ReactNative] TextInput bug fixes and features 2015-07-21 12:45:07 -08:00
RCTTextView.m Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTTextViewManager.h Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextViewManager.m [ReactNative] TextInput bug fixes and features 2015-07-21 12:45:07 -08:00
Text.js Fix 16 linter warnings in Examples/ 2015-10-16 04:03:23 -07:00
TextStylePropTypes.js [ReactNative] Text docs 2015-07-27 06:38:27 -08:00
TextUpdateTest.js [ReactNative] Fix Text Updating Crash 2015-05-02 10:07:08 -08:00