fix(mobile): force redownload of themes if unable to parse first time (#1150)

This commit is contained in:
Mo
2022-06-24 07:37:49 -05:00
committed by GitHub
parent 4f5323140a
commit e83452785c
3 changed files with 40 additions and 15 deletions

View File

@@ -260,10 +260,12 @@ export class ComponentManager extends SNComponentManager {
if (!(await RNFS.exists(componentPath))) {
return undefined
}
const filePath = `${componentPath}/${relativePath}`
if (!(await RNFS.exists(filePath))) {
return undefined
}
const fileContents = await RNFS.readFile(filePath)
return fileContents
}