React Native [Android]
三星手机
图书馆:
能够 :
无法:
将Google云端硬盘URI转换为真实路径
DocumentPicker.show({filetype: [DocumentPickerUtil.allFiles()],},(error,res) => {
RNGRP.getRealPathFromURI(path).then(function(androidPath){
console.log('AndroidPath : ', androidPath);
})
}
Run Code Online (Sandbox Code Playgroud)我的谷歌驱动器的URI是这样的:
content://com.google.android.apps.docs.storage/document/acc%3D2%3Bdoc%3D1
Run Code Online (Sandbox Code Playgroud) React-Native - IOS - React-Native (0.53.0) - React-Native-Elements ("^.19.0")
当用户选择搜索栏时,我无法在 React-Native-Element 搜索栏旁边显示“取消”按钮。提供了我想要实现的目标的图像
这是我的代码片段:
<SearchBar
lightTheme round
placeholder="Test"
onSubmitEditing={()=>{this.doSomething()}}
cancelButtonText = "Cancel"
/>
Run Code Online (Sandbox Code Playgroud)
React-Native-Element 搜索栏参考 https://react-native-training.github.io/react-native-elements/docs/searchbar.html