Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working properly #1

Open
minafa96 opened this issue Nov 12, 2020 · 2 comments
Open

not working properly #1

minafa96 opened this issue Nov 12, 2020 · 2 comments

Comments

@minafa96
Copy link

سلام چطور میشه ازین برای مورد هایی که از سرور لود میشن و لوکال نیستن استفاده کرد؟
هرچند که برای لوکال ها هم امتحان کردم با همین شیوه و تنظیمات .نشون داده میشه ولی رنگ تغییر نمیکنه

@hexboy
Copy link
Owner

hexboy commented Nov 13, 2020

برای فایل لوکال دقت کنید نسخه
react-native-svg-transformer
برابر یا بزرگتر از 0.14.0 باشه.
و همچنین فایل
.svgrrc
رو در مسیر اصلی پروژه اضافه کرده باشید.

اما برای تغییر رنگ فایل که از سرور گرفته میشود نیاز هست یه کامپوننت جداگونه نوشته بشه.
مثل این کامپوننت
https://gist.github.com/hexboy/4c19665ffb8613d3554e7b52226f7e4e

@leandrosimoes
Copy link

Hi! This may help you guys.

I came across the same problem, even checking all the files and configurations and it turns out that the problem was that I should start the bundler with the --reset-cache flag. So after run react-native start --reset-cache everything worked as it should.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants