Remove use of decorator syntax

This commit is contained in:
Nicolas Gallagher
2016-07-06 10:11:03 -07:00
parent d4d67dafc0
commit f0202dbe61
7 changed files with 20 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Copyright (c) 2015-present, Nicolas Gallagher.
* All rights reserved.
*
* @flow
*/
import NativeMethodsMixin from '../NativeMethodsMixin'
const applyNativeMethods = (Component) => {
Object.keys(NativeMethodsMixin).forEach((method) => {
if (!Component.prototype[method]) {
Component.prototype[method] = NativeMethodsMixin[method]
}
})
return Component
}
module.exports = applyNativeMethods