dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

In iOS fatal error while building: React/RCTEventEmitter.h and React/RCTBridgeModule file not found #15

Closed leonardosoares1 closed 5 years ago

leonardosoares1 commented 5 years ago

I'm submitting a ... (check one with "x"):

Bug report

Current behavior: error fatal while building app in a iOS

Expected behavior: Build success with react-native-launch-navigation

Steps to reproduce:

Environment information

Runtime issue

iOS build issue:

Related code:

import LaunchNavigator from 'react-native-launch-navigator';

if (Platform.OS === 'android') {
      LaunchNavigator.setGoogleApiKey(
        'API-KEY'
      );
    }
    LaunchNavigator.navigate([
      infoStore.address.latitude,
      infoStore.address.longitude,
    ]);

Console output

.../node_modules/react-native-launch-navigator/ios/RNLaunchNavigator/WE_ReactNativeLogger.h:2:9: fatal error: 'React/RCTEventEmitter.h' file not found

#import <React/RCTEventEmitter.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1
 error
 generated

.../node_modules/react-native-launch-navigator/ios/RNLaunchNavigator/RNLaunchNavigator.h:1:9: fatal error: 'React/RCTBridgeModule.h' file not found
#import <React/RCTBridgeModule.h>

Other information: In version 0.60+ I need exec command 'pod install' into a ios folder, but when I exec code return this message :

[!] use_native_modules! skipped the react-native dependency 'react-native-launch-navigator'. No podspec file was found.
lironsher commented 5 years ago

I have the same issue

dpa99c commented 5 years ago

react-native@0.60.x support has been added in react-native-launch-navigator@1.0.6