mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replace direct React.createElement call with jsx in react-native (#44738)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44738 Changelog: [Internal] Reviewed By: yungsters Differential Revision: D58004147 fbshipit-source-id: f42c939d92a876b8746703c134b246567846c3ee
This commit is contained in:
committed by
Facebook GitHub Bot
parent
48f48f8e67
commit
f4325dac8e
@@ -140,17 +140,13 @@ export default class CellRenderer<ItemT> extends React.Component<
|
||||
}
|
||||
|
||||
if (ListItemComponent) {
|
||||
/* $FlowFixMe[not-a-component] (>=0.108.0 site=react_native_fb) This
|
||||
* comment suppresses an error found when Flow v0.108 was deployed. To
|
||||
* see the error, delete this comment and run Flow. */
|
||||
/* $FlowFixMe[incompatible-type-arg] (>=0.108.0 site=react_native_fb)
|
||||
* This comment suppresses an error found when Flow v0.108 was deployed.
|
||||
* To see the error, delete this comment and run Flow. */
|
||||
return React.createElement(ListItemComponent, {
|
||||
item,
|
||||
index,
|
||||
separators: this._separators,
|
||||
});
|
||||
return (
|
||||
<ListItemComponent
|
||||
item={item}
|
||||
index={index}
|
||||
separators={this._separators}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (renderItem) {
|
||||
|
||||
Reference in New Issue
Block a user