Merge pull request #957 from geoffreyc/master

Added info about autofocus/taptofocus for android
This commit is contained in:
Sibelius Seraphini 2017-12-07 10:38:09 -02:00 committed by GitHub
commit 7c796d767e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,6 +285,15 @@ Android: This callback is not yet implemented. However, Android will
automatically do tap-to-focus if the device supports auto-focus; there is automatically do tap-to-focus if the device supports auto-focus; there is
currently no way to manage this from javascript. currently no way to manage this from javascript.
To get autofocus/tap to focus functionalities working correctly in android
make sure that the proper permissions are set in your `AndroidManifest.xml`:
```java
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
```
#### `iOS` `defaultOnFocusComponent` #### `iOS` `defaultOnFocusComponent`
Values: Values: