mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
Use Twitter JavaScript style
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import NativeMethodsMixin from '../NativeMethodsMixin'
|
||||
import NativeMethodsMixin from '../NativeMethodsMixin';
|
||||
|
||||
const applyNativeMethods = (Component) => {
|
||||
Object.keys(NativeMethodsMixin).forEach((method) => {
|
||||
if (!Component.prototype[method]) {
|
||||
Component.prototype[method] = NativeMethodsMixin[method]
|
||||
Component.prototype[method] = NativeMethodsMixin[method];
|
||||
}
|
||||
})
|
||||
return Component
|
||||
}
|
||||
});
|
||||
return Component;
|
||||
};
|
||||
|
||||
module.exports = applyNativeMethods
|
||||
module.exports = applyNativeMethods;
|
||||
|
||||
Reference in New Issue
Block a user