react-native/React/Base
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
..
RCTAssert.h Disable RCTAssert completely in production builds 2015-10-08 08:26:20 -07:00
RCTAssert.m Disable RCTAssert completely in production builds 2015-10-08 08:26:20 -07:00
RCTBatchedBridge.m Bring back D2570057 (previously backed out) + fixes 2015-10-28 18:44:26 -07:00
RCTBridge.h Remove isValid from RCTInvalidating 2015-08-14 01:57:18 -08:00
RCTBridge.m Small perf improvement to RCTPerfStats and RCTBridgeModuleNameForClass 2015-08-25 04:48:39 -08:00
RCTBridgeDelegate.h Use JSStringCreateWithUTF8CString and skip NSString decoding when loading the bundle 2015-10-16 08:11:25 -07:00
RCTBridgeMethod.h Prepare the bridge for C++ 2015-09-18 15:04:28 -07:00
RCTBridgeModule.h Prepare the bridge for C++ 2015-09-18 15:04:28 -07:00
RCTConvert.h attributes for setting alignment in SGText 2015-10-27 03:41:26 -07:00
RCTConvert.m attributes for setting alignment in SGText 2015-10-27 03:41:26 -07:00
RCTDefines.h Implement asm trampoline rather forwardInvocation 2015-10-20 04:14:09 -07:00
RCTEventDispatcher.h Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTEventDispatcher.m Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTFrameUpdate.h Pause JS DisplayLink if nothing to process. 2015-09-29 09:22:10 -07:00
RCTFrameUpdate.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTInvalidating.h Remove isValid from RCTInvalidating 2015-08-14 01:57:18 -08:00
RCTJSMethodRegistrar.h Added non-class-scanning-based approach fror registering js methods 2015-04-08 05:45:20 -08:00
RCTJavaScriptExecutor.h Use JSStringCreateWithUTF8CString and skip NSString decoding when loading the bundle 2015-10-16 08:11:25 -07:00
RCTJavaScriptLoader.h [ReactNative] Add RCTBridgeDelegate 2015-07-28 15:57:02 -08:00
RCTJavaScriptLoader.m Log bundle size. 2015-10-21 10:55:25 -07:00
RCTKeyCommands.h Updates from Thu 26 Mar 2015-03-26 06:32:01 -07:00
RCTKeyCommands.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTKeyboardObserver.h Add keyboard-observing notifications 2015-08-25 03:49:13 -08:00
RCTKeyboardObserver.m Add KeyboardAvoidingView 2015-09-02 09:17:20 -08:00
RCTLog.h Disable RCTLog completely in production 2015-10-13 07:31:25 -07:00
RCTLog.m Disable RCTLog completely in production 2015-10-13 07:31:25 -07:00
RCTModuleData.h Bring back D2570057 (previously backed out) + fixes 2015-10-28 18:44:26 -07:00
RCTModuleData.m Fixed UIExplorer tests + async methods 2015-10-29 15:57:29 -07:00
RCTModuleMap.h Unregistered modules will now only error when called, not on bridge init 2015-07-27 08:58:47 -08:00
RCTModuleMap.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTModuleMethod.h Bring back D2570057 (previously backed out) + fixes 2015-10-28 18:44:26 -07:00
RCTModuleMethod.m Fixed whitespace bug with RCTModuleMethod parsing 2015-11-02 08:53:29 -08:00
RCTPerformanceLogger.h Add RCTPerformanceLogger data to PerfMonitor 2015-10-30 16:57:30 -07:00
RCTPerformanceLogger.m Add RCTPerformanceLogger data to PerfMonitor 2015-10-30 16:57:30 -07:00
RCTRootView.h Props setter for RCTRootView 2015-10-30 09:28:27 -07:00
RCTRootView.m Props setter for RCTRootView 2015-10-30 09:28:27 -07:00
RCTRootViewDelegate.h Introduction of RCTRootViewDelegate 2015-10-26 15:41:36 -07:00
RCTRootViewInternal.h Introduction of RCTRootViewDelegate 2015-10-26 15:41:36 -07:00
RCTSparseArray.h Updates from Thu 26 Mar 2015-03-26 06:32:01 -07:00
RCTSparseArray.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTTouchHandler.h [ReactNative] Send batched calls from objc to js every frame + add bridge profiling 2015-04-17 04:01:02 -08:00
RCTTouchHandler.m End slider interaction when touches are cancelled 2015-09-25 11:42:32 -07:00
RCTURLRequestDelegate.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTURLRequestHandler.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTUtils.h Unify XCAsset handling logic 2015-10-12 04:15:27 -07:00
RCTUtils.m Convert remaining uses of alloc] init] to new] 2015-11-02 08:03:17 -08:00