Part of #110 Based on the API described in the tests [here](https://github.com/ReactTraining/react-media/pull/72/files).