I'm trying to use mobx with react native and stuck into a problem.
@inject('someStore')
@observer
export class SomeComponent extends Component {
render() {
...
}
}
I'm sure I configured properly babel plugins for decorator but @inject
decorator gives me an exception "Expected a constructor."
.
I have no idea why this happen since I had used mobx in this way in an other project. Does anyone had been through this issue?