Skip to content

openCamera error: Cannot read property 'openCamera' of null #263

@Carry3

Description

@Carry3

🐛 Bug Report

image

To Reproduce

SYImagePicker.openCamera(
{ isCrop: true, imageCount: 1, showCropCircle: true },
(err, photos) => {
if (err) {
showToast({ title: '发生错误', icon: 'none' })
}
console.log(photos, '--------photos')
},
)

Environment

Android
"@ant-design/icons-react-native": "^2.3.2",
"@ant-design/react-native": "^5.0.4",
"@apollo/client": "^3.7.11",
"@expo/vector-icons": "^13.0.0",
"@react-native-async-storage/async-storage": "1.17.11",
"@react-native-clipboard/clipboard": "^1.11.2",
"@react-navigation/native": "^6.0.2",
"expo": "~48.0.9",
"expo-clipboard": "^4.1.2",
"expo-font": "~11.1.1",
"expo-linking": "~4.0.1",
"expo-router": "^1.0.0-rc5",
"expo-splash-screen": "~0.18.1",
"expo-status-bar": "~1.4.4",
"expo-system-ui": "~2.2.1",
"expo-web-browser": "~12.1.1",
"mini-html-parser2": "^0.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.4",
"react-native-root-siblings": "^4.1.1",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "~3.20.0",
"react-native-syan-image-picker": "^0.5.3",
"react-native-web": "~0.18.10",
"react-native-webview": "11.26.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions