diff --git a/Libraries/react-native/react-native-implementation.js b/Libraries/react-native/react-native-implementation.js index 200409bcb..e3b19adc4 100644 --- a/Libraries/react-native/react-native-implementation.js +++ b/Libraries/react-native/react-native-implementation.js @@ -26,6 +26,7 @@ const ReactNative = { get ImageBackground() { return require('ImageBackground'); }, get ImageEditor() { return require('ImageEditor'); }, get ImageStore() { return require('ImageStore'); }, + get InputAccessoryView() { return require('InputAccessoryView') }, get KeyboardAvoidingView() { return require('KeyboardAvoidingView'); }, get ListView() { return require('ListView'); }, get MaskedViewIOS() { return require('MaskedViewIOS'); }, diff --git a/RNTester/js/InputAccessoryViewExample.js b/RNTester/js/InputAccessoryViewExample.js index 7ebcf5f00..9287fb7e1 100644 --- a/RNTester/js/InputAccessoryViewExample.js +++ b/RNTester/js/InputAccessoryViewExample.js @@ -11,15 +11,18 @@ 'use strict'; -const Alert = require('Alert'); -const Button = require('Button'); -const InputAccessoryView = require('InputAccessoryView'); const React = require('React'); -const ScrollView = require('ScrollView'); -const StyleSheet = require('StyleSheet'); -const Text = require('Text'); -const TextInput = require('TextInput'); -const View = require('View'); +const ReactNative = require('react-native'); +const { + Alert, + Button, + InputAccessoryView, + ScrollView, + StyleSheet, + Text, + TextInput, + View, +} = ReactNative; class Message extends React.PureComponent<*> { render() {