diff --git a/example/index.js b/example/index.js index 7d957d7..5df0a89 100644 --- a/example/index.js +++ b/example/index.js @@ -1,5 +1,5 @@ -import {AppRegistry} from 'react-native'; +import { AppRegistry } from 'react-native'; import Routes from './routes'; -import {name as appName} from './app.json'; +import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => Routes); diff --git a/example/metro.config.js b/example/metro.config.js index 74cbe7c..275c79d 100644 --- a/example/metro.config.js +++ b/example/metro.config.js @@ -6,7 +6,7 @@ const escape = require('escape-string-regexp'); const root = path.resolve(__dirname, '..'); const pak = JSON.parse( - fs.readFileSync(path.join(root, 'package.json'), 'utf8'), + fs.readFileSync(path.join(root, 'package.json'), 'utf8'), ); const modules = [ diff --git a/example/routes.tsx b/example/routes.tsx index 1c99913..2cd5815 100644 --- a/example/routes.tsx +++ b/example/routes.tsx @@ -8,20 +8,20 @@ import PrefetchImage from './src/PrefetchImage'; const Stack = createNativeStackNavigator(); function Routes() { - return ( - - - - - - - - - ); + return ( + + + + + + + + + ); } export default Routes; diff --git a/src/CacheManager.ts b/src/CacheManager.ts index b5e0eff..25a9c78 100644 --- a/src/CacheManager.ts +++ b/src/CacheManager.ts @@ -103,7 +103,11 @@ export default class CacheManager { noCache?: boolean, maxAge?: number ): CacheEntry { - if (!CacheManager.entries[source] || CacheManager.entries[source].options?.headers?.Authorization !== options?.headers?.Authorization) { + if ( + !CacheManager.entries[source] || + CacheManager.entries[source].options?.headers?.Authorization !== + options?.headers?.Authorization + ) { CacheManager.entries[source] = new CacheEntry( source, options,