Skip to content

Commit

Permalink
Added windows as supported platform for pickDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
qmatteoq committed Jun 18, 2021
1 parent 29bf489 commit bc7b7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default class DocumentPicker {
}

static pickDirectory() {
if (Platform.OS === 'android') {
if (Platform.OS === 'android' || Platform.OS === 'windows') {
return RNDocumentPicker.pickDirectory();
} else {
return Promise.resolve(null);
Expand Down

0 comments on commit bc7b7e4

Please sign in to comment.