[fix] Babel plugin import paths for ViewPropTypes and TextPropTypes

Close #668
This commit is contained in:
Jhen
2017-10-03 20:30:35 +08:00
committed by Nicolas Gallagher
parent 3112e2ba56
commit c8461c9c11
3 changed files with 10 additions and 5 deletions
+7 -3
View File
@@ -69,11 +69,15 @@ const getDistLocation = importName => {
// propTypes
case 'ColorPropType':
case 'EdgeInsetsPropType':
case 'PointPropType':
case 'TextPropTypes':
case 'ViewPropTypes': {
case 'PointPropType': {
return `${root}/propTypes/${importName}`;
}
case 'TextPropTypes': {
return `${root}/components/Text/${importName}`;
}
case 'ViewPropTypes': {
return `${root}/components/View/${importName}`;
}
default:
return;