| /expo/apps/native-component-list/src/screens/GL/ |
| H A D | GLSnapshotsScreen.tsx | 7 snapshot?: GL.GLSnapshot; 28 const snapshot = await this.glView.takeSnapshotAsync({ 31 this.setState({ snapshot }); 73 const { snapshot } = this.state; 83 {snapshot && ( 84 <View style={styles.snapshot}> 86 style={[styles.flex, { aspectRatio: snapshot.width / snapshot.height }]} 87 source={snapshot as { uri: string }} 92 <Text>Take snapshot</Text> 103 snapshot: {
|
| H A D | GLHeadlessRenderingScreen.tsx | 131 snapshot?: GL.GLSnapshot; 164 const snapshot = await GLView.takeSnapshotAsync(gl, { 168 // delete previous snapshot 169 if (this.state.snapshot) { 170 FileSystem.deleteAsync(this.state.snapshot.uri as string, { idempotent: true }); 173 this.setState({ snapshot }); 184 const { contrast, snapshot } = this.state; 194 {snapshot && ( 198 source={{ uri: snapshot.uri as string }}
|
| /expo/apps/test-suite/tests/ |
| H A D | GLView.js | 58 const snapshot = await instance.takeSnapshotAsync({ format: 'png' }); 59 expect(snapshot).toBeDefined(); 61 expect(snapshot.uri instanceof Blob).toBe(true); 63 expect(snapshot.uri).toMatch(/^file:\/\//); 64 expect(snapshot.localUri).toMatch(/^file:\/\//); 200 const snapshot = await GLView.takeSnapshotAsync(context, { format: 'png' }); 201 expect(snapshot).toBeDefined(); 204 expect(snapshot.uri instanceof Blob).toBe(true); 206 expect(snapshot.uri).toMatch(/^file:\/\//); 207 expect(snapshot.localUri).toMatch(/^file:\/\//);
|
| H A D | FirebaseJSSDKCompat.js | 61 const snapshot = await firebase.database().ref('/test1').once('value'); 62 expect(snapshot.val()).toBe('foobar'); 88 const snapshot = await firebase.firestore().doc('tests/doc1').get(); 89 expect(snapshot).not.toBeNull();
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/react/renderer/timeline/ |
| H A D | ABI48_0_0Timeline.cpp | 51 for (auto const &snapshot : snapshots_) { in getFrames() local 52 frames.push_back(snapshot.getFrame()); in getFrames() 98 void Timeline::rewind(TimelineSnapshot const &snapshot) const noexcept { in rewind() 101 currentSnapshotIndex_ = snapshot.getFrame().getIndex(); in rewind() 106 auto rootShadowNode = snapshot.getRootShadowNode(); in rewind()
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/renderer/timeline/ |
| H A D | ABI49_0_0Timeline.cpp | 51 for (auto const &snapshot : snapshots_) { in getFrames() local 52 frames.push_back(snapshot.getFrame()); in getFrames() 98 void Timeline::rewind(TimelineSnapshot const &snapshot) const noexcept { in rewind() 101 currentSnapshotIndex_ = snapshot.getFrame().getIndex(); in rewind() 106 auto rootShadowNode = snapshot.getRootShadowNode(); in rewind()
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/react/renderer/timeline/ |
| H A D | ABI47_0_0Timeline.cpp | 52 for (auto const &snapshot : snapshots_) { in getFrames() local 53 frames.push_back(snapshot.getFrame()); in getFrames() 99 void Timeline::rewind(TimelineSnapshot const &snapshot) const noexcept { in rewind() 102 currentSnapshotIndex_ = snapshot.getFrame().getIndex(); in rewind() 107 auto rootShadowNode = snapshot.getRootShadowNode(); in rewind()
|
| /expo/ios/vendored/sdk48/react-native-reanimated/ios/Transitioning/ |
| H A D | ABI48_0_0REAAllTransitions.m | 194 // Add view back to parent temporarily in order to take snapshot 200 CALayer *snapshot = snapshotView.layer; 205 CGFloat fromValue = snapshot.opacity; 206 snapshot.opacity = 0.0f; 213 CATransform3D fromValue = snapshot.transform; 214 snapshot.transform = CATransform3DMakeScale(0.001, 0.001, 0.001); 224 CGPoint startPosition = snapshot.position; 240 snapshot.position = finalPosition; 250 …return [ABI48_0_0REATransitionAnimation transitionWithAnimation:animation layer:snapshot andKeyPat…
|
| /expo/ios/vendored/sdk47/react-native-reanimated/ios/Transitioning/ |
| H A D | ABI47_0_0REAAllTransitions.m | 194 // Add view back to parent temporarily in order to take snapshot 200 CALayer *snapshot = snapshotView.layer; 205 CGFloat fromValue = snapshot.opacity; 206 snapshot.opacity = 0.0f; 213 CATransform3D fromValue = snapshot.transform; 214 snapshot.transform = CATransform3DMakeScale(0.001, 0.001, 0.001); 224 CGPoint startPosition = snapshot.position; 240 snapshot.position = finalPosition; 250 …return [ABI47_0_0REATransitionAnimation transitionWithAnimation:animation layer:snapshot andKeyPat…
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/api/components/maps/ |
| H A D | MapModule.java | 110 view.map.snapshot(new GoogleMap.SnapshotReadyCallback() { in takeSnapshot() 111 public void onSnapshotReady(@Nullable Bitmap snapshot) { in takeSnapshot() 114 if (snapshot == null) { in takeSnapshot() 119 (width != snapshot.getWidth() || height != snapshot.getHeight())) { in takeSnapshot() 120 snapshot = Bitmap.createScaledBitmap(snapshot, width, height, true); in takeSnapshot() 135 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot() 141 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/api/components/maps/ |
| H A D | AirMapModule.java | 110 view.map.snapshot(new GoogleMap.SnapshotReadyCallback() { in takeSnapshot() 111 public void onSnapshotReady(@Nullable Bitmap snapshot) { in takeSnapshot() 114 if (snapshot == null) { in takeSnapshot() 119 (width != snapshot.getWidth() || height != snapshot.getHeight())) { in takeSnapshot() 120 snapshot = Bitmap.createScaledBitmap(snapshot, width, height, true); in takeSnapshot() 135 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot() 141 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot()
|
| /expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/components/maps/ |
| H A D | MapModule.java | 110 view.map.snapshot(new GoogleMap.SnapshotReadyCallback() { in takeSnapshot() 111 public void onSnapshotReady(@Nullable Bitmap snapshot) { in takeSnapshot() 114 if (snapshot == null) { in takeSnapshot() 119 (width != snapshot.getWidth() || height != snapshot.getHeight())) { in takeSnapshot() 120 snapshot = Bitmap.createScaledBitmap(snapshot, width, height, true); in takeSnapshot() 135 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot() 141 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/components/maps/ |
| H A D | AirMapModule.java | 110 view.map.snapshot(new GoogleMap.SnapshotReadyCallback() { in takeSnapshot() 111 public void onSnapshotReady(@Nullable Bitmap snapshot) { in takeSnapshot() 114 if (snapshot == null) { in takeSnapshot() 119 (width != snapshot.getWidth() || height != snapshot.getHeight())) { in takeSnapshot() 120 snapshot = Bitmap.createScaledBitmap(snapshot, width, height, true); in takeSnapshot() 135 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot() 141 snapshot.compress(compressFormat, (int) (100.0 * quality), outputStream); in takeSnapshot()
|
| /expo/ios/versioned-react-native/ABI49_0_0/Expo/ExpoKit/Core/Api/Components/Maps/ |
| H A D | ABI49_0_0AIRMapSnapshot.h | 14 - (void) drawToSnapshot:(MKMapSnapshot *) snapshot context:(CGContextRef) context;
|
| H A D | ABI49_0_0AIRMapPolylineRenderer.h | 14 -(id)initWithSnapshot:(MKMapSnapshot*)snapshot overlay:(id<MKOverlay>)overlay polyline:(MKPolyline*…
|
| /expo/ios/versioned-react-native/ABI47_0_0/Expo/ExpoKit/Core/Api/Components/Maps/ |
| H A D | ABI47_0_0AIRMapSnapshot.h | 14 - (void) drawToSnapshot:(MKMapSnapshot *) snapshot context:(CGContextRef) context;
|
| H A D | ABI47_0_0AIRMapPolylineRenderer.h | 14 -(id)initWithSnapshot:(MKMapSnapshot*)snapshot overlay:(id<MKOverlay>)overlay polyline:(MKPolyline*…
|
| /expo/ios/versioned-react-native/ABI48_0_0/Expo/ExpoKit/Core/Api/Components/Maps/ |
| H A D | ABI48_0_0AIRMapSnapshot.h | 14 - (void) drawToSnapshot:(MKMapSnapshot *) snapshot context:(CGContextRef) context;
|
| H A D | ABI48_0_0AIRMapPolylineRenderer.h | 14 -(id)initWithSnapshot:(MKMapSnapshot*)snapshot overlay:(id<MKOverlay>)overlay polyline:(MKPolyline*…
|
| /expo/ios/Exponent/Versioned/Core/Api/Components/Maps/ |
| H A D | AIRMapSnapshot.h | 14 - (void) drawToSnapshot:(MKMapSnapshot *) snapshot context:(CGContextRef) context;
|
| H A D | AIRMapPolylineRenderer.h | 14 -(id)initWithSnapshot:(MKMapSnapshot*)snapshot overlay:(id<MKOverlay>)overlay polyline:(MKPolyline*…
|
| /expo/packages/expo-gl/build/ |
| H A D | GLView.types.js.map | 1 …snapshot vertically.\n * @default false\n */\n flip?: boolean;\n /**\n * Specify the frame…
|
| /expo/packages/expo-router/build/global-state/ |
| H A D | router-store.js | 146 snapshot = () => { field in RouterStore 159 …SyncExternalStore)(exports.store.subscribeToStore, exports.store.snapshot, exports.store.snapshot);
|
| H A D | router-store.d.ts | 40 snapshot: () => this;
|
| /expo/docs/pages/develop/ |
| H A D | unit-testing.mdx | 3 …w to set up and configure the jest-expo package to write unit tests and snapshot tests for a proje… 11 …ll learn how to set up Jest in your project, write a unit test, write a snapshot test, and best pr… 142 …snapshot test is used to make sure that UI stays consistent, especially when a project is working … 144 To add a snapshot test for `<App />`, add the following code snippet in the `describe()` in **App.t… 153 Run `npm run test` command, and if everything goes well, you should see a snapshot created and two …
|