reanimated-shared-value-writes.jsx — react Source File
Architecture documentation for reanimated-shared-value-writes.jsx, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f6450527_e468_b235_6601_2b4dd3a53ba6["reanimated-shared-value-writes.jsx"] bb4899da_05ed_64d5_2560_cedfbbb7ec7f["react-native-reanimated"] f6450527_e468_b235_6601_2b4dd3a53ba6 --> bb4899da_05ed_64d5_2560_cedfbbb7ec7f style f6450527_e468_b235_6601_2b4dd3a53ba6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @enableCustomTypeDefinitionForReanimated
import {useSharedValue} from 'react-native-reanimated';
/**
* https://docs.swmansion.com/react-native-reanimated/docs/2.x/api/hooks/useSharedValue/
*
* Test that shared values are treated as ref-like, i.e. allowing writes outside
* of render
*/
function SomeComponent() {
const sharedVal = useSharedValue(0);
return (
<Button
onPress={() => (sharedVal.value = Math.random())}
title="Randomize"
/>
);
}
Domain
Subdomains
Functions
Dependencies
- react-native-reanimated
Source
Frequently Asked Questions
What does reanimated-shared-value-writes.jsx do?
reanimated-shared-value-writes.jsx is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in reanimated-shared-value-writes.jsx?
reanimated-shared-value-writes.jsx defines 1 function(s): SomeComponent.
What does reanimated-shared-value-writes.jsx depend on?
reanimated-shared-value-writes.jsx imports 1 module(s): react-native-reanimated.
Where is reanimated-shared-value-writes.jsx in the architecture?
reanimated-shared-value-writes.jsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reanimated-shared-value-writes.jsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free