Skip to content

Commit

Permalink
データインポートの不具合修正
Browse files Browse the repository at this point in the history
  • Loading branch information
shugomatsuzawa committed Aug 15, 2024
1 parent 6f52e23 commit ca4c053
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.shugomatsuzawa",
"buildNumber": "1.1.004",
"buildNumber": "1.1.005",
"requireFullScreen": true,
"splash": {
"image": "./assets/splash.png",
Expand Down
6 changes: 3 additions & 3 deletions screens/data/DataScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ const DataScreen = ({ navigation }) => {
}

const importFile = async () => {
const { type, uri } = await DocumentPicker.getDocumentAsync({type: 'application/json'});
if (type === 'success') {
const fileUri = uri;
const { assets, canceled } = await DocumentPicker.getDocumentAsync({multiple: false, type: 'application/json'});
if (canceled === false) {
const fileUri = assets[0].uri;
console.debug(fileUri);
const txtFileRaw = await FileSystem.readAsStringAsync(fileUri);
try{
Expand Down

0 comments on commit ca4c053

Please sign in to comment.