MCPcopy Create free account
hub / github.com/callstack/react-native-paper / Showcase

Function Showcase

docs/src/components/Showcase.tsx:181–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179const getOpacity = (item?: string) => (item ? 1 : 0.4);
180
181export default function Showcase() {
182 return (
183 <div className="showcase-gallery">
184 {data.map((item) => {
185 const tintColor = color(item.color).isLight() ? '#000000' : '#FFFFFF';
186 return (
187 <div key={item.image}>
188 <div className="showcase-image-container">
189 <img className="showcase-image" src={item.image} alt="" />
190 <div
191 className="showcase-info"
192 style={{ backgroundColor: item.color }}
193 >
194 <h3
195 className="showcase-app-name"
196 style={{
197 color: tintColor,
198 }}
199 >
200 {item.name}
201 </h3>
202 <div className="showcase-badge-container">
203 <a
204 href={item.android}
205 target="_blank"
206 rel="noopener noreferrer"
207 style={{ opacity: getOpacity(item.android) }}
208 >
209 <GooglePlayIcon color={tintColor} />
210 </a>
211 <div className="showcase-separation" />
212 <a
213 href={item.ios}
214 target="_blank"
215 rel="noopener noreferrer"
216 style={{ opacity: getOpacity(item.ios) }}
217 >
218 <AppStoreIcon color={tintColor} />
219 </a>
220 <div className="showcase-separation" />
221 <a
222 href={item.github}
223 target="_blank"
224 rel="noopener noreferrer"
225 style={{ opacity: getOpacity(item.github) }}
226 >
227 <GithubIcon color={tintColor} />
228 </a>
229 </div>
230 </div>
231 </div>
232 </div>
233 );
234 })}
235 </div>
236 );
237}

Callers

nothing calls this directly

Calls 1

getOpacityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…