DEV Community

Trần Huy
Trần Huy

Posted on

How to get elements by tag name of DOM child in React Native?

I want to get all element with tag 'path' of imported svg to handle animation for it. What is the best way to do this? Thanks!

My code look like this:

import React, { useEffect, useRef, useState } from 'react'
import MascotDisplay from '@/assets/mascot/4-pandy.svg'

export default function HomeScreen() {
    const

Top comments (0)