запись с камеры expo обещает не разрешаться в производстве apk

#reactjs #react-native #expo #expo-camera

Вопрос:

Я начинаю разрабатывать мобильное приложение с помощью expo/react native, но у меня возникли некоторые проблемы с обработкой объекта камеры:
предупреждение(url.uri) не разрешается при запуске в apk. То же самое предупреждение отлично работает при запуске в локальной среде разработки. Метод recordAsync не разрешен.

 import React, { useState, useEffect,useRef } from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import { Camera } from 'expo-camera';

export const App = (props) => {
  const startRecording = async() => {
    props.navigation.setOptions({
      headerShown : false,
    })
    await cameraRef.current.recordAsync({
      maxDuration:30,
      quality:Camera.Constants.VideoQuality['480p'],
    })
    .then((url) => {
      alert(url.uri)  //not resolving
    })
  }

  return (
    <View style={styles.container}>
      <Camera style={styles.camera} type={type}>
        <View style={styles.buttonContainer}>
          <TouchableOpacity
            style={styles.button}
            onPress={() => {
              setType(
                type === Camera.Constants.Type.back
                  ? Camera.Constants.Type.front
                  : Camera.Constants.Type.back
              );
            }}>
            <Text style={styles.text}> Flip </Text>
          </TouchableOpacity>
          <TouchableOpacity 
          activeOpacity={1} 
          onPress={startRecording} 
        />
        </View>
      </Camera>
    </View>
  );
}

const styles = StyleSheet.create({ ... });