react-native-maps: Unable to pod install in RN 0.42.0

Hi all,

I have problem with RN 0.42.0, unable to execute pod install because of Yoga in RN 0.42.0 is not a latest version 1.2.0 (release 8 days ago)

screen shot 2017-03-03 at 11 48 23 am

Latest Yoga is1.2.0 Yoga releases

But i see latest Yoga in RN 0.42.0 is about 17 days ago. screen shot 2017-03-03 at 12 05 45 pm

Do you have any solution to install react-native-maps to RN 42 version?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 16

Most upvoted comments

Hey everyone! I just found the solution for this here: https://github.com/facebook/react-native/issues/12670

I got it working by making my podfile look like this:

# You Podfile should look similar to this file. React Native currently does not support use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'



target 'app' do
  # Fixes required for pod specs to work with rn 0.42
  react_native_path = "../node_modules/react-native"
  pod "Yoga", :path => "#{react_native_path}/ReactCommon/yoga"
  pod "React", :path => react_native_path, :subspecs => [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
  ]

  pod 'GoogleMaps'  # <~~ remove this line if you do not want to support GoogleMaps on iOS

# when not using frameworks  we can do this instead of including the source files in our project (1/4):
#  pod 'react-native-maps', path: '../../'
#  pod 'react-native-google-maps', path: '../../'  # <~~ if you need GoogleMaps support on iOS
end

@anhtuank7c try these steps link

@RazvanCosmeanu you’re correct, I meant a Podfile found in the project (root, ios, or other), vs a podfile in any of the libraries.

cc @davidbe