Merge pull request #1 from vinceTheProgrammer/master

Moved example console.log() into a .then()
This commit is contained in:
Corbin Crutchley 2020-11-02 14:36:55 -08:00 committed by GitHub
commit 8fa724483c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,5 +28,7 @@ import {selectDirectory} from 'react-native-immersive-bars';
// ...
selectDirectory((path) => console.log(`The path is ${path}`));
selectDirectory().then((path) => {
console.log(`The path is ${path}`);
});
```