-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Packager] how does react native find ActivityIndicatorIOS when using require('ActivityIndicatorIOS')? #896
Comments
The packager uses two methods to look up modules. The first is based on docblock headers: if you write "@providesModule X" in the first docblock this enables require('X'). The other method is Node's resolution. To answer your question, you are seeing the first type of module resolution. Grep for @providesModule moduleName and I think you'll find the source of modules you're looking for. |
that's it! thanks for ur help :) PS: which module is doing the work? PPS: |
ping @ide |
@lzyy what is your question? |
@ide the question is I didn't find the second question is how |
When you run the packager and load a bundle, it scans all the files for react-native/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js Line 448 in 4673dca
|
But I can't seem to access |
for example, this is the
webView.ios.js
headerActivityIndicatorIOS
is inLibraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js
while
EdgeInsetsPropType
is inLibraries/StyleSheet/EdgeInsetsPropType.js
where is the search path setting?
PS: in
ListView.js
, there isbut when is
React
be installed?package.json
doesn't contain it.The text was updated successfully, but these errors were encountered: