I moved the navigator check to componentDidMount in order to avoid checking for navigator unless we're in a browser window.
In order to prevent react from complaining about the client and server renders being out of sync, I've made the default value for _mobile = false + I call forceUpdate after the componentDidUpdate methods.
@luqin fixes issue https://github.com/luqin/react-icheck/issues/25
I moved the navigator check to componentDidMount in order to avoid checking for navigator unless we're in a browser window.
In order to prevent react from complaining about the client and server renders being out of sync, I've made the default value for _mobile = false + I call forceUpdate after the componentDidUpdate methods.