Skip to content

Commit

Permalink
Fix ios for saving files
Browse files Browse the repository at this point in the history
  • Loading branch information
chloehjung committed Aug 30, 2023
1 parent f0e9972 commit ecaefff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ios/BoltCardWallet/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@
<string>processing</string>
<string>remote-notification</string>
</array>
<key>UIFileSharingEnabled</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand All @@ -210,6 +212,8 @@
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportsDocumentBrowser</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UTExportedTypeDeclarations</key>
Expand Down
2 changes: 1 addition & 1 deletion screen/boltcard/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const BoltCardCreate = ({navigation}) => {
const backupCardKeys = () => {
let filename = `bolt_card_${(new Date().toJSON().slice(0,19).replaceAll(':','-'))}.json.txt`
let filename2 = `bolt_card_${(new Date().toJSON().slice(0,19).replaceAll(':','-'))}-wipe.json.txt`
var baseDirectoryPath = Platform.OS == "ios" ? RNFS.LibraryDirectoryPath : RNFS.DownloadDirectoryPath;
var baseDirectoryPath = Platform.OS == "ios" ? RNFS.DocumentDirectoryPath : RNFS.DownloadDirectoryPath;
var path = baseDirectoryPath + '/'+filename;
var path2 = baseDirectoryPath + '/'+filename2;
console.log('path', path);
Expand Down

0 comments on commit ecaefff

Please sign in to comment.