This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const cluster = require('cluster'); | |
| const http = require('http'); | |
| const numCPUs = require('os').cpus().length; | |
| if (cluster.isMaster) { | |
| // Master process creates worker processes | |
| for (let i = 0; i < numCPUs; i++) { | |
| cluster.fork(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react" | |
| import PropTypes from "prop-types"; | |
| import { Animated } from "react-native" | |
| import { PinchGestureHandler, State } from "react-native-gesture-handler" | |
| export default function ImageView(props) { | |
| const scale = new Animated.Value(1) | |
| const onZoomEvent = Animated.event([ | |
| { |