Home / npm packages / react-native

react-native source code

Every file of react-native@0.87.1 as published on npm: 4,425 files, 15.2 MB (the numbers below cover its first 3,000). Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function(), child_process, process.env, the fs module, fetch(), XMLHttpRequest, crypto.

What react-native uses

APIIn react-native
eval()
runs a string as JavaScript
Yes: 15 files
e.g. ReactCommon/react/bridging/tests/BridgingTest.cpp
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 3 files
e.g. ReactCommon/react/bridging/Convert.h
See the lines
child_process
starts other programs
Yes: 12 files
e.g. scripts/bundle.js
See the lines
process.env
reads environment variables
Yes: 13 files
e.g. Libraries/Animated/nodes/AnimatedProps.js
See the lines
the fs module
reads and writes files
Yes: 33 files
e.g. scripts/bundle.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 8 files
e.g. flow/bom.js.flow
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
Yes: 12 files
e.g. flow/bom.js.flow
See the lines
crypto
hashes, encrypts or makes random numbers
Yes: 3 files
e.g. scripts/spm/flavored-frameworks.js
See the lines
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
Libraries/Renderer/implementations/ReactFabric-dev.js725 KB
React/FBReactNativeSpec/FBReactNativeSpecJSI.h430 KB
Libraries/Renderer/implementations/ReactFabric-profiling.js425 KB
ReactAndroid/api/ReactAndroid.api419 KB
Libraries/Renderer/implementations/ReactFabric-prod.js361 KB
flow/dom.js.flow195 KB
ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp106 KB
scripts/spm/generate-spm-xcodeproj.js103 KB
React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h97 KB
ReactCommon/jsi/jsi/jsi.h86 KB
scripts/spm/generate-spm-autolinking.js82 KB
ReactCommon/jsi/jsi/test/testlib.cpp81 KB
ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp77 KB
Libraries/Components/ScrollView/ScrollView.js73 KB
ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp69 KB
ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.kt63 KB
ReactCommon/jserrorhandler/tests/StackTraceParserTest.cpp63 KB
ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java61 KB
ReactCommon/react/renderer/core/tests/LayoutableShadowNodeTest.cpp60 KB
ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp59 KB
ReactCommon/jsinspector-modern/tests/HostTargetTest.cpp59 KB
ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.kt58 KB
ReactCommon/react/renderer/mounting/Differentiator.cpp57 KB
ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp55 KB
ReactCommon/react/renderer/components/view/conversions.h55 KB
ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java54 KB
scripts/spm/download-spm-artifacts.js52 KB
ReactCommon/jsc/JSCRuntime.cpp51 KB
scripts/spm/scaffold-package-swift.js51 KB
ReactCommon/react/renderer/attributedstring/conversions.h50 KB

Questions

How many files are in react-native?

Version 0.87.1 of react-native publishes 4,425 files of source, 15.2 MB in all (the numbers below cover its first 3,000), not counting images, fonts and source maps.

Does react-native use eval?

Yes: react-native calls eval() in 15 of its files.

Does react-native start other programs?

Yes: react-native uses child_process in 12 of its files.

Does react-native run an install script?

No: react-native has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine