### Start React Native Example App Packager Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/CONTRIBUTING.md Initiates the Metro bundler for the example application, enabling live reloading of JavaScript changes during development without a full rebuild. ```sh yarn example start ``` -------------------------------- ### Run React Native Example App on iOS Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/CONTRIBUTING.md Builds and deploys the example application to an iOS simulator or connected device for testing. ```sh yarn example ios ``` -------------------------------- ### Run React Native Example App on Web Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/CONTRIBUTING.md Compiles and launches the example application in a web browser environment for testing web compatibility. ```sh yarn example web ``` -------------------------------- ### Run React Native Example App on Android Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/CONTRIBUTING.md Builds and deploys the example application to an Android emulator or connected device for testing. ```sh yarn example android ``` -------------------------------- ### Full Example of ReactNativeZoomableView in a React Native App Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/README.md A complete, runnable React Native application example demonstrating the usage of ReactNativeZoomableView. This example includes importing necessary components, defining styles, and embedding an image within the zoomable view, showcasing how to handle content dimensions for proper boundary application. ```JSX import * as React from 'react'; import { StyleSheet, View, Text, Image } from 'react-native'; import { ReactNativeZoomableView } from '@openspacelabs/react-native-zoomable-view'; export default function App() { return ( ReactNativeZoomableView ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', padding: 20, }, box: { width: 60, height: 60, marginVertical: 20, }, }); ``` -------------------------------- ### Install Project Dependencies with Yarn Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/CONTRIBUTING.md Installs all required dependencies for the project's packages using Yarn, setting up the local development environment. ```sh yarn ``` -------------------------------- ### Install React Native Zoomable View Package Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/README.md Instructions on how to add the @openspacelabs/react-native-zoomable-view package to your React Native project using either npm or yarn. This package provides the core functionality for zoomable views. ```shell npm add @openspacelabs/react-native-zoomable-view ``` ```shell yarn add @openspacelabs/react-native-zoomable-view ``` -------------------------------- ### Basic Usage of ReactNativeZoomableView Component Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/README.md An example of how to integrate ReactNativeZoomableView into your application, replacing a standard React Native View. It shows basic configuration options like maximum and minimum zoom levels, initial zoom, and binding to borders, along with a simple text content. ```JSX This is the content ``` -------------------------------- ### React Native ZoomableView Programmatic Control Example (TSX) Source: https://github.com/openspacelabs/react-native-zoomable-view/blob/master/README.md This TypeScript JSX example demonstrates how to integrate and programmatically control the ReactNativeZoomableView component within a React Native application. It shows how to use a ref to access the component's methods like `moveBy`, `moveTo`, `zoomBy`, and `zoomTo` via external buttons. ```TSX export default function App() { // you will need a reference to the ReactNativeZoomableView component const zoomableViewRef = createRef(); return ( HelloWorld {/* Here you see some examples of moveBy */}