![article thumbnail image](https://blog.kakaocdn.net/dn/b6GmrG/btrIyoKK7RX/MVT2hwxKkclJEWs9pDyNAk/img.png)
Published 2022. 7. 30. 18:35
728x90
RN단에서도 디버그버전에서도 잘 되는데, 릴리즈 버전에서 svg을 사용한 화면으로 네이게이트하면 곧바로 튕기는 경우가 있다.(에러 구문은 기억이 안남)
이 경우 react-native-svg 라이브러리를 이용하여 svg를 사용하고 아래 설정을 해놓지 않아서 그렇다.
android/app/proguard-rules.pro 해당 경로로 들어가 아래 구문을 추가해주고 저장하면 된다.
-keep public class com.horcrux.svg.** {*;}
출처는 교과서에..
https://github.com/react-native-svg/react-native-svg#problems-with-proguard
GitHub - react-native-svg/react-native-svg: SVG library for React Native, React Native Web, and plain React web projects.
SVG library for React Native, React Native Web, and plain React web projects. - GitHub - react-native-svg/react-native-svg: SVG library for React Native, React Native Web, and plain React web proje...
github.com
728x90