خرید بک لینک

Vote count: 0

In my ReactNative project there are some static text files which i'd like to load into a string variable.

I tried require in the same way i'm requiring javascript files, but it doesn't work because react native gives exception "Unable to resolve module ./data/tags.txt".

var customData = require('./data/tags.txt');

I guess that require() is not able to handle plain text files?

How to do correctly?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 21 فروردين 1395 ساعت: 20:23

صفحه بندی