This commit is contained in:
Nicolas Gallagher
2017-06-01 09:20:07 -07:00
parent 7abdb33a1d
commit 70282cb4ca
2 changed files with 4 additions and 4 deletions

View File

@@ -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);