Closed songoten28 closed 5 years ago
This issue come from RNiBeacon. Not relative to your lib. Thanks for helpful lib
Hi, I'm facing this issue too and I also have the beacons-manager package. How did you manage to overcome this error?
Hi, I'm facing this issue too and I also have the beacons-manager package. How did you manage to overcome this error?
This issue come from native you must edit some file
Edit become
- (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region
{
if ([region isKindOfClass:[CLCircularRegion class]]) {
// Geofence
NSLog(@"didEnter : %@", region);
[self sendEventWithName:@"onEnter" body:region.identifier];
}
}
- (void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region
{
if ([region isKindOfClass:[CLCircularRegion class]]) {
// Geofence
NSLog(@"didExit : %@", region);
[self sendEventWithName:@"onExit" body:region.identifier];
}
}
and another file https://github.com/MacKentoch/react-native-beacons-manager/blob/53c1bda81f032e775f29327a7bab28a14528cf39/ios/RNiBeacon/RNiBeacon/RNiBeacon.m#L344-L366
-(void)locationManager:(CLLocationManager *)manager
didEnterRegion:(CLBeaconRegion *)region {
if ([region isKindOfClass:[CLBeaconRegion class]]) {
// Beacon
NSDictionary *event = [self convertBeaconRegionToDict: region];
[self sendEventWithName:@"regionDidEnter" body:event];
}
}
-(void)locationManager:(CLLocationManager *)manager
didExitRegion:(CLBeaconRegion *)region {
if ([region isKindOfClass:[CLBeaconRegion class]]) {
// Beacon
NSDictionary *event = [self convertBeaconRegionToDict: region];
[self sendEventWithName:@"regionDidExit" body:event];
}
}
When Im enter region or exit region the xCode throw this error
Im using these dependencies
I think it conflict with highlight dependencies I marked. Please help me fix this error