fix(mobile): force redownload of themes if unable to parse first time (#1150)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user