Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Document Picker for Mac Os #1916

Open
atiqulislamwb opened this issue Aug 27, 2023 · 1 comment
Open

Need Document Picker for Mac Os #1916

atiqulislamwb opened this issue Aug 27, 2023 · 1 comment
Labels
enhancement New feature or request Needs: Triage 🔍

Comments

@atiqulislamwb
Copy link

Summary

hi,
add document picker for mac os like android or ios .

Motivation

when anyone uploads an image for this it will be needed.

Basic Example

import DocumentPicker, {
types,
} from 'react-native-document-picker';

const [fileResponse, setFileResponse] = useState()

try {
// you could use pick, picksingle
const response = await DocumentPicker.pickSingle({
presentationStyle: 'fullScreen',
type: [types.images], //incase you want other
// types write like this: [types.images, types.pdf], or you could use [types.allFiles]
allowMultiSelection: true, // if you want to have multi selection or not.
});
console.log('response', response);
setFileResponse(response);
} catch (err) {
if (DocumentPicker.isCancel(err)) {
console.log('User canceled the upload', err);
} else
console.log(err);
}
}

Open Questions

No response

@atiqulislamwb atiqulislamwb added the enhancement New feature or request label Aug 27, 2023
@atiqulislamwb atiqulislamwb changed the title Document Picker for Mac Os Need Document Picker for Mac Os Aug 27, 2023
@chrisglein chrisglein transferred this issue from microsoft/react-native-windows Aug 28, 2023
@Saadnajmi
Copy link
Collaborator

I think Expo wrote a module for this in Expo orbit: https://github.com/expo/orbit/tree/main/apps/menu-bar/macos/ExpoMenuBar-macOS

Perhaps can be factored out into a community package? FYI @gabrieldonaldel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

2 participants