react-native-blur icon indicating copy to clipboard operation
react-native-blur copied to clipboard

not work in 0.59 in ios

Open marlti7 opened this issue 6 years ago • 2 comments

not work in 0.59 in ios

marlti7 avatar Aug 12 '19 10:08 marlti7

The some to me

guihouchang avatar Aug 15 '19 07:08 guihouchang

Is the error message like 'folly/Portability.h' file not found?

For me I'm using @react-native-community/[email protected] and [email protected].

react-native-blur requires deprecated pod React 0.11.0 as its dependency, and I found the solution at https://github.com/facebook/react-native/issues/24192#issuecomment-504328652

Add this to the Podfile works for me:

pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'Core',
  'CxxBridge',
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "React"
        target.remove_from_project
    end
    if target.name == "yoga"
      target.remove_from_project
    end
  end
end

WanLinLin avatar Sep 12 '19 01:09 WanLinLin