Comments (3)
Just another observation, if I set the fillColor
on the Path
of the SVG
to something like red
, then it displays correctly in red:
const CheckIcon2 = createIcon({
Root: Svg,
viewBox: '0 0 448 512',
path: (
<>
<Path
d="M440.1 103C450.3 112.4 450.3 127.6 440.1 136.1L176.1 400.1C167.6 410.3 152.4 410.3 143 400.1L7.029 264.1C-2.343 255.6-2.343 240.4 7.029 231C16.4 221.7 31.6 221.7 40.97 231L160 350.1L407 103C416.4 93.66 431.6 93.66 440.1 103V103z"
fill='red' // <-- set this to `red` instead of `currentColor`
/>
</>
),
});
CheckIcon2.displayName = "CheckIcon2";
export {CheckIcon2};
from gluestack-ui.
Even the example on the bottom of the Icon docs doesn't appear to be working
const GluestackIcon = createIcon({
// createIcon function is imported from '@gluestack-ui/themed'
viewBox: "0 0 32 32",
path: (
<>
{/* Rect, Path is imported from 'react-native-svg' */}
<Rect width="32" height="32" rx="2" fill="currentColor" />
<Path
d="M9.5 14.6642L15.9999 9.87633V12.1358L9.5 16.9236V14.6642Z"
fill="white"
/>
<Path
d="M22.5 14.6642L16.0001 9.87639V12.1359L22.5 16.9237V14.6642Z"
fill="white"
/>
<Path
d="M9.5 19.8641L15.9999 15.0763V17.3358L9.5 22.1236V19.8641Z"
fill="white"
/>
<Path
d="M22.5 19.8642L16.0001 15.0764V17.3358L22.5 22.1237V19.8642Z"
fill="white"
/>
</>
),
})
<Icon as={GluestackIcon} size="xl" className="text-typography-black" />
from gluestack-ui.
The issue has been resolved with the gluestack-ui icons. Please update your icon
component.
Thank you
from gluestack-ui.
Related Issues (20)
- gluestack-ui-v2: expo nativewind custom font guide HOT 7
- (v2) Color range of 0-950 doesn't match the tailwind convention. Please switch to 50-950 for clarity and convention HOT 3
- Gluestack-UI React Expo initialization failure HOT 13
- (v2) Triggering intellisense in VS Code crashes the Tailwind extension when working on gluestack components HOT 2
- Support installing dependencies with Bun when initializing HOT 1
- Select: snapPoints on Android make the `SelectPortal` have extra bottom margin HOT 2
- Select (native): Lists of many items make the portal extend all the way to the top HOT 2
- ForControl-Radio: TypeError: Cannot read properties of undefined (reading '0') HOT 1
- Switch component: Possibility to style handle and track individually HOT 3
- Input component with state causes render error on iOS HOT 1
- Input border - certain colors don't work on Native HOT 4
- Metro is unable to resolve Unable to resolve @gluestack-ui/nativewind-utils HOT 4
- Shorthand properties not in docs HOT 4
- Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 5
- react-native-css-interop patch not applying to latest version (0.1.1) HOT 4
- The vars feature using nativewind in Using CSS Variables does not work HOT 2
- Test Issue
- Found a bug in npx gluestack-ui init for Dark Mode HOT 1
- VSCode snippets such as Selection are outdated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluestack-ui.