react-native-beacons-manager
react-native-beacons-manager copied to clipboard
componentWillMount vs UNSAFE_componentWillMount vs componentDidMount
Version
1.0.7
Platform
iOS
OS version
iOS 12 Xcode 10
Steps to reproduce
- Clone project
- Run project
Expected behavior
App runs and iBeacon has been detected.
componentWillMount
has been deprecated though and should not been used anymore. As an alternative UNSAFE_componentWillMount
can be used.
Actual behavior
When code inside componentWillMount
is copied to componentDidMount
(where it should belong) or use UNSAFE_componentWillMount
instead, the monitoring will not start and no iBeacon will be detected.
Can you please advice how to overcome that problem.