mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 20:10:41 +08:00
Format
This commit is contained in:
@@ -44,7 +44,7 @@ const createDOMElement = (component, props) => {
|
||||
|
||||
// normalize DOM events to match React Native events
|
||||
// TODO: move this out of the render path
|
||||
Object.keys(domProps).forEach((prop) => {
|
||||
Object.keys(domProps).forEach(prop => {
|
||||
const isEventHandler = typeof prop === 'function' && eventHandlerNames[prop];
|
||||
if (isEventHandler) {
|
||||
domProps[prop] = wrapEventHandler(prop);
|
||||
|
||||
Reference in New Issue
Block a user