npm eject cd ios pod init
そして、iosフォルダ内へ生成されたPodfileに追加。pod 'Firebase/Messaging'
もいるかも?自信はない。
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'kazoemon' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for kazoemon pod 'Firebase/Core' pod 'Firebase/AdMob' pod 'Firebase/Messaging' target 'kazoemon-tvOSTests' do inherit! :search_paths # Pods for testing end target 'kazoemonTests' do inherit! :search_paths # Pods for testing end end
pod update pod install cd .. react-native link
その後、
npm run ios
で起動。
npm ejectした時点で、package.json
が書き換わり、npm eject
コマンド自体が消える。
その他のコマンドも微妙に変わった。
その代わり、npm run ios
での起動しっなしができなくなる気が・・。watchがなくなった?
これもした。
npm cache clean --force; npm install