Jacse / react-native-app-intro-slider

Simple and configurable app introduction slider for react native
MIT License
1.65k stars 330 forks source link

how to enable PNG or SVG image format #257

Open jamesson-dev opened 2 years ago

jamesson-dev commented 2 years ago
const slides = [
  {
    key: '1',
    title: '',
    text : 'Saiba quanto dinheiro está entrando e quanto está saindo.',
    image: require('../../Assets/image/red_1.jpg'),
  },
  {
    key: '2',
    title: '',
    text : 'Anote o valor de seus gastos e movimentos.',
    image: require('../../Assets/image/red_2.jpg'),
  },
  {
    key: '3',
    image: require('../../Assets/image/red_1.jpg'),
    title: '',
    text: 'Acompanhe melhor o seu crescimento e suas atividades!',
  },

];

// desired .svg format

curiousmockingbird commented 1 year ago

I have the same concern

Zarinia commented 11 months ago

You can use this code: import svgImage_1 from '../../Assets/image/red_1.svg'; { key: '1', title: '', text : 'Anote o valor de seus gastos e movimentos.', image: svgImage_1, }