react-native-photo-editor
react-native-photo-editor copied to clipboard
I can not use it on iphone,not wroking
i copied and paste the instructions on my podfile and run pod update with my React Native project but it didn’t install and worked. can anyone provide a boilerplate for new version of RN?
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'apps' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNFS', :path => '../node_modules/react-native-fs'
target 'apps' do
inherit! :complete
end
use_native_modules!
pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios'
use_frameworks!
pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'
use_flipper!
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.targets.each do |target|
if target.name.include?('iOSPhotoEditor')
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5'
end
end
end
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
Try disabling all the lines used by Flipper
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
# https://stackoverflow.com/questions/50718018/xcode-10-error-multiple-commands-produce/56964761 delete storyboard.c
target 'example' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'
target 'exampleTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name.include?('iOSPhotoEditor')
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5'
end
end
end
end
end
@shahreman: I have updated the installation steps. Could you try that once. Let me know if you still face any issues.
Also, please share the logs to analyse the issue.
Thanks </ Pranav >