shifeng1993 / react-native-qr-scanner

一个二维码扫描组件,依赖react-native-camera
MIT License
116 stars 65 forks source link

适配rn0.60.0 #33

Open woohyuknrg opened 5 years ago

woohyuknrg commented 5 years ago

rn0.60.0增加了autolink功能,能否适配下呢

ihor-linovitsky commented 5 years ago

you should add QrCode.podspec file in your_project/node_modules/react-native-qr-scanner/ios with next scripts ------------------------------------------file

Pod::Spec.new do |s|

s.name = "QrCode"

s.version = "1.0.0"

s.summary = "some interesting summary."

s.description = "some interesting summary. 123123"

s.license = { :type => "MIT", :file => "LICENSE" }

s.homepage = "https://github.com/shifeng1993/react-native-qr-scanner"

s.source = { :git => "https://github.com/shifeng1993/react-native-qr-scanner.git", :tag => "#{s.version}" }

s.author = "Igor"

s.platform = :ios, "9.0"

s.source_files = "QrCode/", "QrCode/*.{h,m}"

s.frameworks = ["UIKit", "AVFoundation", "CoreImage"]

s.dependency 'React'

end

add to Podfile next sctring: pod 'QrCode', :path => '../node_modules/react-native-qr-scanner/ios'

then run - pod install, in ios folder end re run project

ihor-linovitsky commented 5 years ago

end should be in file it is git parsing change word to teg

ihor-linovitsky commented 5 years ago

I resolve problem for rn60 and you can use this case https://github.com/ihor-linovitsky/react-native-qr-scanner

marlti7 commented 1 year ago

我加了 用这个 https://github.com/marlti7/react-native-qr-scanner