According to React Native 0.60:
componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.
See documentation here.
Edit: add link to React Native documentation