Reach redux state from static function

Viewed 2562

I have a React Native application where I have a class which name is Helpers. These are a set of application related static helper function. Mostly I call them like Helpers.functionName(). What is the best way to reach the redux store from this static method? I want to modify it and read it.

I have the Helpers like this:

class Helpers extends Component {
  static getState(){
    return state;
  }
}

I tried to use the connect, but inside the getState function the this.props is undefined.

2 Answers
Related