Skip to content

Commit

Permalink
Expose InputAccessoryView Module
Browse files Browse the repository at this point in the history
Summary:
The latest release of react-native (0.55.2) does not expose the new `InputAccessoryView` component; It can't be accessed at all. This change fixes this problem.

* Problem: Snack showing the problem: https://snack.expo.io/B1fDQRYif
* Proof: `RNTester` still works with adapted imports

No related PRs.

[IOS] [BUGFIX] [InputAccessoryView] - Expose `InputAccessoryView` so it can be imported
Closes #18780

Differential Revision: D7581729

Pulled By: hramos

fbshipit-source-id: d61ab1f167360e829e32b93fb5414d2f7e57e115
  • Loading branch information
swissmanu authored and facebook-github-bot committed Apr 11, 2018
1 parent edd22bf commit 80fc415
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions Libraries/react-native/react-native-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'); },
Expand Down
19 changes: 11 additions & 8 deletions RNTester/js/InputAccessoryViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 80fc415

Please sign in to comment.