Запитання 17
How should you test a React Native component that uses camera functionality?
Варіанти відповідей
Mock camera modules in unit tests, use jest.mock(), write unit tests for logic only, and use E2E tools like Detox or Appium with mocked camera feeds
Test camera functionality by accessing the real device camera in all tests
Avoid testing components that use camera access
Test only on physical devices without mocks