mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
RCTInputAccessoryView (#23050)
Summary: Created Standalone JS file for RCTInputAccessoryView native component #22990 Changelog: ---------- [iOS] [Changed] - Created Standalone JS file for RCTInputAccessoryView native component Pull Request resolved: https://github.com/facebook/react-native/pull/23050 Differential Revision: D13735644 Pulled By: TheSavior fbshipit-source-id: 64b091957b38cb11d804582f185d5cb0c6754af3
This commit is contained in:
committed by
Facebook Github Bot
parent
6a3d9c06ce
commit
3144299b5a
@@ -14,9 +14,7 @@ const Platform = require('Platform');
|
||||
const React = require('React');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
|
||||
const requireNativeComponent = require('requireNativeComponent');
|
||||
|
||||
const RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView');
|
||||
const RCTInputAccessoryViewNativeComponent = require('RCTInputAccessoryViewNativeComponent');
|
||||
|
||||
import type {ViewStyleProp} from 'StyleSheet';
|
||||
|
||||
@@ -100,12 +98,12 @@ class InputAccessoryView extends React.Component<Props> {
|
||||
}
|
||||
|
||||
return (
|
||||
<RCTInputAccessoryView
|
||||
<RCTInputAccessoryViewNativeComponent
|
||||
style={[this.props.style, styles.container]}
|
||||
nativeID={this.props.nativeID}
|
||||
backgroundColor={this.props.backgroundColor}>
|
||||
{this.props.children}
|
||||
</RCTInputAccessoryView>
|
||||
</RCTInputAccessoryViewNativeComponent>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user