Skip to content

Depend on React-Core, not React #123

@neilkimmett

Description

@neilkimmett

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

In newer versions of React Native you need to depend on React-Core, not React

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-safari-view/react-native-safari-view.podspec b/node_modules/react-native-safari-view/react-native-safari-view.podspec
index 45630b1..a5fc4f4 100644
--- a/node_modules/react-native-safari-view/react-native-safari-view.podspec
+++ b/node_modules/react-native-safari-view/react-native-safari-view.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
   s.homepage     = 'https://github.com/naoufal/react-native-safari-view'
   s.source       = { :git => "https://github.com/naoufal/react-native-safari-view.git" }
   s.platform     = :ios, "7.0"
-  s.dependency 'React'
+  s.dependency 'React-Core'
   s.source_files     = "*.{h,m}"
   s.preserve_paths   = "*.js"
 end

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions