File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ import { FastImageTab } from "./FastImageTab";
1111import { NitroImageTab } from "./NitroImageTab" ;
1212import { createStaticNavigation } from "@react-navigation/native" ;
1313import { EmptyTab } from "./EmptyTab" ;
14- import { NitroMediaLibraryImageTab } from "./NitroMediaLibraryImageTab " ;
14+ import { NitroAssetImageTab } from "./NitroAssetImageTab " ;
1515
1616const Tabs = createBottomTabNavigator ( {
1717 detachInactiveScreens : false ,
1818 screens : {
1919 Empty : EmptyTab ,
2020 FastImage : FastImageTab ,
2121 NitroImage : NitroImageTab ,
22- NitroMediaLibraryImage : NitroMediaLibraryImageTab ,
22+ NitroMediaLibraryImage : NitroAssetImageTab ,
2323 } ,
2424} ) ;
2525const Navigation = createStaticNavigation ( Tabs ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function useAssetImage(
1212 useEffect ( ( ) => {
1313 const load = async ( ) => {
1414 try {
15- const i = await loadImageFromAssetAsync ( url . replace ( " ph://" , "" ) )
15+ const i = await loadImageFromAssetAsync ( url . replace ( / ^ p h : \/ \/ / , "" ) )
1616 setImage ( i )
1717 } catch ( error ) {
1818 console . error ( `Failed to load image from "${ url } "!` , error )
@@ -32,7 +32,7 @@ function AsyncImageImpl({ url }: { url: string }): React.ReactNode {
3232}
3333const AsyncImage = React . memo ( AsyncImageImpl ) ;
3434
35- export function NitroMediaLibraryImageTab ( ) {
35+ export function NitroAssetImageTab ( ) {
3636 const [ imageURLs , setImageURLs ] = useState < string [ ] > ( [ ] ) ;
3737
3838
You can’t perform that action at this time.
0 commit comments