diff --git a/src/GoogleMaps.js b/src/GoogleMaps.js index 31f99f9a..ebe105d8 100644 --- a/src/GoogleMaps.js +++ b/src/GoogleMaps.js @@ -41,8 +41,8 @@ class GoogleMaps extends EventComponent { /* * Internals */ - constructor (props) { - super(props); + constructor (...args) { + super(...args); this.state = {}; } diff --git a/src/internals/EventComponent.js b/src/internals/EventComponent.js index 6f06fcbc..5d59e172 100644 --- a/src/internals/EventComponent.js +++ b/src/internals/EventComponent.js @@ -12,8 +12,8 @@ class EventComponent extends React.Component { * member: * _createOrUpdateInstance */ - constructor (props) { - super(props); + constructor (...args) { + super(...args); this._unregisterEvents = noop; } diff --git a/src/internals/SimpleChildComponent.js b/src/internals/SimpleChildComponent.js index 559238f2..6b7bfd78 100644 --- a/src/internals/SimpleChildComponent.js +++ b/src/internals/SimpleChildComponent.js @@ -12,8 +12,8 @@ class SimpleChildComponent extends EventComponent { * state: * instance */ - constructor (props) { - super(props); + constructor (...args) { + super(...args); this.state = {}; }