mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 19:48:56 +08:00
Support .ios.js examples
This commit is contained in:
@@ -28,7 +28,10 @@ function getNameFromPath(filepath) {
|
||||
function getExample(componentName) {
|
||||
var path = '../Examples/UIExplorer/' + componentName + 'Example.js';
|
||||
if (!fs.existsSync(path)) {
|
||||
return;
|
||||
path = '../Examples/UIExplorer/' + componentName + 'Example.ios.js';
|
||||
if (!fs.existsSync(path)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
return {
|
||||
path: path.replace(/^\.\.\//, ''),
|
||||
|
||||
Reference in New Issue
Block a user