Image url as icon is not working
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- ios, react-native, typescript
- Domínio
- mobile
Direção de pesquisa
Comece pela configuração de Usage with expo-router, pelo arquivo withLayoutContext e pelo exemplo _layout.tsx; em seguida, reproduza o resultado de caixa-preta no iOS usando a tabBarIcon uri fornecida. Rastreie o caminho do ícone de URL de imagem a partir de NativeTabs e verifique se a imagem remota é renderizada em vez de uma caixa preta.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
Hi all,
I just tried the latest version (v1.0.2) and faced and issue while rendering image urls as the tab icon on iOS 26. It displays a black box instead of the actual image.
import { NativeTabs } from "apps/mobile/src/components/withLayoutContext"
import React from "react"
export default function TabLayout() {
return (
<NativeTabs
hapticFeedbackEnabled
translucent
labeled={false}
screenOptions={{
tabBarActiveTintColor: "#008AFF"
}}
>
<NativeTabs.Screen
name="index"
options={{
title: "Home",
tabBarIcon: () => ({ sfSymbol: "house" })
}}
/>
<NativeTabs.Screen
name="search"
options={{
title: "Search",
tabBarIcon: () => ({ sfSymbol: "magnifyingglass" })
}}
/>
<NativeTabs.Screen
name="profile"
options={{
title: "Profile",
// tabBarIcon: () => ({ sfSymbol: "person.crop.circle.fill" })
tabBarIcon: () => ({
uri: "https://file-examples.net/wp-content/uploads/2024/02/SamplePNGImage_200kbmb.png"
})
}}
/>
</NativeTabs>
)
}
Library version
1.0.2
Environment info
System:
OS: macOS 26.0.1
CPU: (14) arm64 Apple M4 Max
Memory: 160.53 MB / 36.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.15.0
path: /Users/alirezahadjar/.nvm/versions/node/v22.15.0/bin/node
Yarn: Not Found
npm:
version: 11.4.1
path: /Users/alirezahadjar/.nvm/versions/node/v22.15.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /Users/alirezahadjar/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.0
- iOS 26.0
- macOS 26.0
- tvOS 26.0
- visionOS 26.0
- watchOS 26.0
Android SDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.25410.109.2511.13752376
Xcode:
version: 26.0.1/17A400
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /Users/alirezahadjar/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to reproduce
- Follow
Usage with expo-routersection and createwithLayoutContextfile and then use it in the_layout.tsxfile - Copy-Paste the reproduction code in the summary
Reproducible sample code
Let me know if the provided code is not sufficient and I'll create one, cheers.
- Linguagem predominante
- TypeScript
- Estrelas
- 1.5k
- Forks
- 108
- Merge médio
- 22h 36min
- PRs com merge (30d)
- 10
Preparar o ambiente
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de callstack/react-native-bottom-tabs
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
callstack/react-native-bottom-tabs#593 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
callstack/react-native-bottom-tabs#560 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
callstack/react-native-bottom-tabs#592 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 68/100
callstack/react-native-bottom-tabs#591 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
callstack/react-native-bottom-tabs#590 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de callstack/react-native-bottom-tabs
Issues semelhantes
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
code-yeongyu/oh-my-openagent#9039 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Tencent/teamai-cli#862 ·
Mantenedores costumam responder em até 1 dia
-
bug good first issue hacktoberfest redis
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
libredb/libredb-studio#1164 ·
Mantenedores costumam responder em até 1 dia
-
flake
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
coder/xum#4920 · 2 comentários ·
Mantenedores costumam responder em até 1 dia