0

I try to install MapboxGL React Native component the easy way with Cocoapod. I have never done that before and the readme.md is not very detailed.

I did:

$ react-native init AwesomeProject
$ cd AwesomeProject
$ npm install react-native-mapbox-gl --save

then I created a Podspecfile at the root of the RN project with pod 'RCTMapboxGL', :path => 'node_modules/react-native-mapbox-gl/ios' and run pod install

But I have en error [!] No 'Podfile' found in the project directory so where do I need to put the Podfile and what do I need to put inside?

dagatsoin
  • 2,626
  • 6
  • 25
  • 54

1 Answers1

0

Podspecs are files that specify how to integrate a pod and its metadata. You need to create a file named Podfile, not Podspec. You can also run pod init to create an empty one from the basic template.

andreamazz
  • 4,256
  • 1
  • 20
  • 36