react-native/Libraries/Components
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
..
ActivityIndicatorIOS Fixed ActivityIndicatorIOS layout 2015-10-23 09:13:24 -07:00
DatePicker Release React Native for Android 2015-09-14 18:13:39 +01:00
DrawerAndroid Fix broken code block and make the example nicer 2015-10-08 14:01:52 -07:00
MapView Added support for toggling POI visibility on iOS map view. 2015-10-29 11:02:25 -07:00
Navigation Add packager-managed assets support to NavigatorIOS 2015-10-02 12:02:29 -07:00
ProgressBarAndroid Release React Native for Android 2015-09-14 18:13:39 +01:00
ProgressViewIOS [ReactNative] cleanup native components 2015-07-24 18:54:35 -08:00
ScrollView Use RecyclerViewBackedScrollView in groups feed on Android. 2015-10-16 07:45:22 -07:00
SegmentedControlIOS [ReactNative] cleanup native components 2015-07-24 18:54:35 -08:00
SliderIOS Improved SliderIOS 2015-10-30 09:13:26 -07:00
StatusBar Release React Native for Android 2015-09-14 18:13:39 +01:00
Switch introduce universal switch 2015-10-06 10:29:22 -07:00
SwitchAndroid Fix crash on RC while toggling object status. 2015-09-17 17:20:51 -07:00
SwitchIOS Fix crash on RC while toggling object status. 2015-09-16 15:35:35 -07:00
TabBarIOS Managed assets support for RCTConvert 2015-09-29 09:21:39 -07:00
TextInput Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
ToastAndroid Release React Native for Android 2015-09-14 18:13:39 +01:00
ToolbarAndroid Allow for styling of ToolbarAndroid's overflow icon 2015-10-22 04:43:25 -07:00
Touchable Fix React warnings 2015-10-16 03:41:14 -07:00
UnimplementedViews [ReactNative] introduce requireNativeComponent 2015-04-16 17:12:12 -08:00
View Add 'onMoveShouldSetResponderCapture' to 'propTypes' 2015-10-30 16:38:27 -07:00
ViewPager Open source ViewPagerAndroid 2015-10-06 20:01:21 -07:00
WebView Document that WebView is iOS-only until we open source the Android implementation 2015-10-29 10:09:34 -07:00
ScrollResponder.js Fix keyboardShouldPersistTaps default value 2015-10-05 10:25:21 -07:00
StaticContainer.js Move stuff out of vendor/react_contrib/ 2015-10-12 11:18:30 -07:00
StaticRenderer.js [Haste] @provides -> @providesModule StaticRenderer 2015-05-14 08:42:13 -08:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00