react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

componentWillMount vs UNSAFE_componentWillMount vs componentDidMount

Open dittmarconsulting opened this issue 5 years ago • 0 comments

Version

1.0.7

Platform

iOS

OS version

iOS 12 Xcode 10

Steps to reproduce

  1. Clone project
  2. Run project

Expected behavior

App runs and iBeacon has been detected. img_0009

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. img_6a3f2dd3760d-1

Can you please advice how to overcome that problem.

dittmarconsulting avatar Oct 29 '18 01:10 dittmarconsulting