在ReactNative中将图像放在android和ios的公共位置

时间:2015-11-04 09:08:50

标签: android ios react-native

想知道是否有办法让Android和iOS在一个地方共享图像资源,而不是将它们重复放在每个文件夹中,对于React原生?

1 个答案:

答案 0 :(得分:2)

截至0.14.0,这是最新版本(截至一小时前),现在有一个可用于Android和iOS的通用资产系统。这要归功于@frantic's PR ...

The documentation似乎尚未更新,但这很好documented in the PR itself

enter image description here