meliorence / meliorence/react-native-snap-carousel

Is there anyway to use SVG images with this?

Open
#773 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Is there anyway to use SVG images with this?

const ENTRIES1 = [
{
title: 'Beautiful and dramatic Antelope Canyon',
subtitle: 'Lorem ipsum dolor sit amet et nuncat mergitur',
illustration: Card1,
},
{
title: 'Earlier this morning, NYC',
subtitle: 'Lorem ipsum dolor sit amet',
illustration: Card2,
},
]

import Card1 from '../../assets/images/card1.svg';
import Card2 from '../../assets/images/card2.svg';
<Carousel
data={ENTRIES1}
renderItem={_renderItem}
sliderWidth={400}
itemWidth={400}
/>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the ENTRIES1 data, the Card1/Card2 SVG imports, and the Carousel usage shown in the issue, then check the project's documented image and rendering support. Done means determining whether these SVG assets render in the React Native carousel and recording the required usage or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.