0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React Native Cameraで撮影画像が表示できないときの対応

0
Last updated at Posted at 2017-10-23

React Native Cameraを導入してみたものの、撮影画像が反映されず、下のようなエラーが出たのでそれの対応をしてみました。

スクリーンショット 2017-10-23 15.24.26.png

原因は、カメラロール経由で参照していたのに、カメラロールのライブラリが読み込まれていなかったからでした。
導入の仕方は下記の通りです。

  1. node_modules/react-native/Libraries/CameraRoll内にあるRCTCameraRoll.xcodeprojをプロジェクトビューのLibraries以下にドラッグ

スクリーンショット 2017-10-23 15.36.11.png

  1. Build PhrasesにてlibRCTCameraRoll.aを追加

参考URL
Using iOS Image Picker with React Native - Gosha Arinich

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?