ekreutz / react-native-barcode-scanner-google

Barcode scanner for react native, which implements barcode detection from Google's Vision API.
MIT License
113 stars 68 forks source link

camera not shown but a black screen rendered #9

Closed icesyc closed 6 years ago

icesyc commented 6 years ago

XiaoMi MI 4LTE android version 4.4

kruyvanna commented 6 years ago

Hi check the fix here https://github.com/ekreutz/react-native-barcode-scanner-google/pull/6/commits/df3ed0dfc2f4cfcee0957421d450deb3a04d52b7

jjliyu commented 6 years ago

I try df3ed0d but not work ,black screen again

kruyvanna commented 6 years ago

try clearing cache. delete npm_modules and install again

ekreutz commented 6 years ago

This framework uses the Camera 2 API, which isn't available in versions of Android prior to 5.0 (API 21)

TheCodeTalker commented 6 years ago

@ekreutz hey i am getting same issue but i have the version API 23 only first time comes if refresh or re run it don't come .