├── .watchmanconfig ├── example ├── .watchmanconfig ├── jest.config.js ├── .bundle │ └── config ├── tsconfig.json ├── app.json ├── ios │ ├── File.swift │ ├── ZViewExample │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── AppDelegate.mm │ │ ├── Info.plist │ │ └── LaunchScreen.storyboard │ ├── ZViewExample-Bridging-Header.h │ ├── ZViewExample.xcworkspace │ │ └── contents.xcworkspacedata │ ├── .xcode.env │ ├── ZViewExampleTests │ │ ├── Info.plist │ │ └── ZViewExampleTests.m │ ├── Podfile │ ├── ZViewExample.xcodeproj │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── ZViewExample.xcscheme │ │ └── project.pbxproj │ └── Podfile.lock ├── android │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ └── drawable │ │ │ │ │ │ └── rn_edit_text_material.xml │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── zviewexample │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ ├── debug │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── zviewexample │ │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── release │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── zviewexample │ │ │ │ └── ReactNativeFlipper.java │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew.bat │ └── gradlew ├── Gemfile ├── index.js ├── react-native.config.js ├── babel.config.js ├── src │ └── App.tsx ├── package.json ├── metro.config.js ├── App.tsx └── README.md ├── src ├── __tests__ │ └── index.test.tsx ├── index.ts └── components │ ├── type.ts │ ├── z-view.ios.tsx │ └── z-view.tsx ├── .gitattributes ├── tsconfig.build.json ├── babel.config.js ├── .yarnrc ├── android ├── gradle.properties ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── reactnativezview │ │ ├── ZViewPackage.java │ │ ├── ZViewManager.java │ │ ├── ZViewRootViewGroupManager.java │ │ ├── ZViewRootViewGroup.java │ │ └── ZView.java └── build.gradle ├── .editorconfig ├── lefthook.yml ├── tsconfig.json ├── scripts └── bootstrap.js ├── .gitignore ├── LICENSE ├── .circleci └── config.yml ├── README.md ├── package.json └── CONTRIBUTING.md /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/__tests__/index.test.tsx: -------------------------------------------------------------------------------- 1 | it.todo('write a test'); 2 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export { ZView } from './components/z-view'; 2 | -------------------------------------------------------------------------------- /example/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | # specific for windows script files 3 | *.bat text eol=crlf -------------------------------------------------------------------------------- /example/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/react-native/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZViewExample", 3 | "displayName": "ZViewExample" 4 | } 5 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "extends": "./tsconfig", 4 | "exclude": ["example"] 5 | } 6 | -------------------------------------------------------------------------------- /example/ios/File.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // ZViewExample 4 | // 5 | 6 | import Foundation 7 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | # Override Yarn command so we can automatically setup the repo on running `yarn` 2 | 3 | yarn-path "scripts/bootstrap.js" 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ZViewExample 3 | 4 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/debug.keystore -------------------------------------------------------------------------------- /example/ios/ZViewExample-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | ZView_kotlinVersion=1.7.0 2 | ZView_minSdkVersion=21 3 | ZView_targetSdkVersion=31 4 | ZView_compileSdkVersion=31 5 | ZView_ndkversion=21.4.7075529 6 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | gem 'cocoapods', '~> 1.12' 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/App'; 3 | import { name as appName } from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/react-native.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = { 4 | dependencies: { 5 | '': { 6 | root: path.join(__dirname, '..'), 7 | }, 8 | }, 9 | }; 10 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intergalacticspacehighway/react-native-z-view/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /src/components/type.ts: -------------------------------------------------------------------------------- 1 | export type ZViewProps = { 2 | top?: number | `${number}%`; 3 | bottom?: number | `${number}%`; 4 | left?: number | `${number}%`; 5 | right?: number | `${number}%`; 6 | children?: React.ReactNode; 7 | touchable?: boolean; 8 | }; 9 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ZViewExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | includeBuild('../node_modules/@react-native/gradle-plugin') 5 | -------------------------------------------------------------------------------- /example/ios/ZViewExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | 9 | indent_style = space 10 | indent_size = 2 11 | 12 | end_of_line = lf 13 | charset = utf-8 14 | trim_trailing_whitespace = true 15 | insert_final_newline = true 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /lefthook.yml: -------------------------------------------------------------------------------- 1 | pre-commit: 2 | parallel: true 3 | commands: 4 | lint: 5 | files: git diff --name-only @{push} 6 | glob: "*.{js,ts,jsx,tsx}" 7 | run: npx eslint {files} 8 | types: 9 | files: git diff --name-only @{push} 10 | glob: "*.{js,ts, jsx, tsx}" 11 | run: npx tsc --noEmit 12 | commit-msg: 13 | parallel: true 14 | commands: 15 | commitlint: 16 | run: npx commitlint --edit 17 | -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const pak = require('../package.json'); 3 | 4 | module.exports = { 5 | presets: ['module:metro-react-native-babel-preset'], 6 | plugins: [ 7 | [ 8 | 'module-resolver', 9 | { 10 | extensions: ['.tsx', '.ts', '.js', '.json'], 11 | alias: { 12 | [pak.name]: path.join(__dirname, '..', pak.source), 13 | }, 14 | }, 15 | ], 16 | ], 17 | }; 18 | -------------------------------------------------------------------------------- /example/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /example/ios/.xcode.env: -------------------------------------------------------------------------------- 1 | # This `.xcode.env` file is versioned and is used to source the environment 2 | # used when running script phases inside Xcode. 3 | # To customize your local environment, you can create an `.xcode.env.local` 4 | # file that is not versioned. 5 | 6 | # NODE_BINARY variable contains the PATH to the node executable. 7 | # 8 | # Customize the NODE_BINARY variable here. 9 | # For example, to use nvm with brew, add the following line 10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use 11 | export NODE_BINARY=$(command -v node) 12 | -------------------------------------------------------------------------------- /example/src/App.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import { StyleSheet, View } from 'react-native'; 4 | import { ZViewView } from 'react-native-z-view'; 5 | 6 | export default function App() { 7 | return ( 8 | 9 | 10 | 11 | ); 12 | } 13 | 14 | const styles = StyleSheet.create({ 15 | container: { 16 | flex: 1, 17 | alignItems: 'center', 18 | justifyContent: 'center', 19 | }, 20 | box: { 21 | width: 60, 22 | height: 60, 23 | marginVertical: 20, 24 | }, 25 | }); 26 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "33.0.0" 6 | minSdkVersion = 21 7 | compileSdkVersion = 33 8 | targetSdkVersion = 33 9 | 10 | // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. 11 | ndkVersion = "23.1.7779620" 12 | } 13 | repositories { 14 | google() 15 | mavenCentral() 16 | } 17 | dependencies { 18 | classpath("com.android.tools.build:gradle") 19 | classpath("com.facebook.react:react-native-gradle-plugin") 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /example/android/app/src/release/java/com/zviewexample/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.zviewexample; 8 | 9 | import android.content.Context; 10 | import com.facebook.react.ReactInstanceManager; 11 | 12 | /** 13 | * Class responsible of loading Flipper inside your React Native application. This is the release 14 | * flavor of it so it's empty as we don't want to load Flipper. 15 | */ 16 | public class ReactNativeFlipper { 17 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 18 | // Do nothing as we don't want to initialize Flipper on Release. 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "./", 4 | "paths": { 5 | "react-native-z-view": ["./src/index"] 6 | }, 7 | "allowUnreachableCode": false, 8 | "allowUnusedLabels": false, 9 | "esModuleInterop": true, 10 | "importsNotUsedAsValues": "error", 11 | "forceConsistentCasingInFileNames": true, 12 | "jsx": "react", 13 | "lib": ["esnext"], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noFallthroughCasesInSwitch": true, 17 | "noImplicitReturns": true, 18 | "noImplicitUseStrict": false, 19 | "noStrictGenericChecks": false, 20 | "noUncheckedIndexedAccess": true, 21 | "noUnusedLocals": true, 22 | "noUnusedParameters": true, 23 | "resolveJsonModule": true, 24 | "skipLibCheck": true, 25 | "strict": true, 26 | "target": "esnext" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /example/ios/ZViewExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/AppDelegate.mm: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | 5 | @implementation AppDelegate 6 | 7 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 8 | { 9 | self.moduleName = @"ZViewExample"; 10 | // You can add your custom initial props in the dictionary below. 11 | // They will be passed down to the ViewController used by React Native. 12 | self.initialProps = @{}; 13 | 14 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 15 | } 16 | 17 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 18 | { 19 | #if DEBUG 20 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 21 | #else 22 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 23 | #endif 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /scripts/bootstrap.js: -------------------------------------------------------------------------------- 1 | const os = require('os'); 2 | const path = require('path'); 3 | const child_process = require('child_process'); 4 | 5 | const root = path.resolve(__dirname, '..'); 6 | const args = process.argv.slice(2); 7 | const options = { 8 | cwd: process.cwd(), 9 | env: process.env, 10 | stdio: 'inherit', 11 | encoding: 'utf-8', 12 | }; 13 | 14 | if (os.type() === 'Windows_NT') { 15 | options.shell = true; 16 | } 17 | 18 | let result; 19 | 20 | if (process.cwd() !== root || args.length) { 21 | // We're not in the root of the project, or additional arguments were passed 22 | // In this case, forward the command to `yarn` 23 | result = child_process.spawnSync('yarn', args, options); 24 | } else { 25 | // If `yarn` is run without arguments, perform bootstrap 26 | result = child_process.spawnSync('yarn', ['bootstrap'], options); 27 | } 28 | 29 | process.exitCode = result.status; 30 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativezview/ZViewPackage.java: -------------------------------------------------------------------------------- 1 | package com.reactnativezview; 2 | 3 | import com.facebook.react.ReactPackage; 4 | import com.facebook.react.bridge.NativeModule; 5 | import com.facebook.react.bridge.ReactApplicationContext; 6 | import com.facebook.react.uimanager.ViewManager; 7 | 8 | import java.util.Arrays; 9 | import java.util.Collections; 10 | import java.util.List; 11 | 12 | public class ZViewPackage implements ReactPackage { 13 | @Override 14 | public List createNativeModules(ReactApplicationContext reactContext) { 15 | return Collections.emptyList(); 16 | } 17 | 18 | @Override 19 | public List createViewManagers(ReactApplicationContext reactContext) { 20 | return Arrays.asList( 21 | new ZViewManager(reactContext), 22 | new ZViewRootViewGroupManager(reactContext) 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # XDE 6 | .expo/ 7 | 8 | # VSCode 9 | .vscode/ 10 | jsconfig.json 11 | 12 | # Xcode 13 | # 14 | build/ 15 | *.pbxuser 16 | !default.pbxuser 17 | *.mode1v3 18 | !default.mode1v3 19 | *.mode2v3 20 | !default.mode2v3 21 | *.perspectivev3 22 | !default.perspectivev3 23 | xcuserdata 24 | *.xccheckout 25 | *.moved-aside 26 | DerivedData 27 | *.hmap 28 | *.ipa 29 | *.xcuserstate 30 | project.xcworkspace 31 | 32 | # Android/IJ 33 | # 34 | .classpath 35 | .cxx 36 | .gradle 37 | .idea 38 | .project 39 | .settings 40 | local.properties 41 | android.iml 42 | 43 | # Cocoapods 44 | # 45 | example/ios/Pods 46 | 47 | # Ruby 48 | example/vendor/ 49 | 50 | # node.js 51 | # 52 | node_modules/ 53 | npm-debug.log 54 | yarn-debug.log 55 | yarn-error.log 56 | 57 | # BUCK 58 | buck-out/ 59 | \.buckd/ 60 | android/app/libs 61 | android/keystores/debug.keystore 62 | 63 | # Expo 64 | .expo/* 65 | 66 | # generated by bob 67 | lib/ 68 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZViewExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "pods": "pod-install --quiet" 10 | }, 11 | "dependencies": { 12 | "react": "18.2.0", 13 | "react-native": "0.72.4", 14 | "react-native-screens": "^3.24.0" 15 | }, 16 | "devDependencies": { 17 | "@babel/core": "^7.20.0", 18 | "@babel/preset-env": "^7.20.0", 19 | "@babel/runtime": "^7.20.0", 20 | "@react-native/eslint-config": "^0.72.2", 21 | "@react-native/metro-config": "^0.72.11", 22 | "@tsconfig/react-native": "^3.0.0", 23 | "@types/react": "^18.0.24", 24 | "@types/react-test-renderer": "^18.0.0", 25 | "babel-plugin-module-resolver": "^4.1.0", 26 | "metro-react-native-babel-preset": "0.76.8", 27 | "prettier": "^2.4.1", 28 | "typescript": "4.8.4" 29 | }, 30 | "engines": { 31 | "node": ">=16" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Nishan 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 | SOFTWARE. 21 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "scale" : "1x", 46 | "size" : "1024x1024" 47 | } 48 | ], 49 | "info" : { 50 | "author" : "xcode", 51 | "version" : 1 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const escape = require('escape-string-regexp'); 3 | const exclusionList = require('metro-config/src/defaults/exclusionList'); 4 | const pak = require('../package.json'); 5 | 6 | const root = path.resolve(__dirname, '..'); 7 | 8 | const modules = Object.keys({ 9 | ...pak.peerDependencies, 10 | }); 11 | 12 | module.exports = { 13 | projectRoot: __dirname, 14 | watchFolders: [root], 15 | 16 | // We need to make sure that only one version is loaded for peerDependencies 17 | // So we block them at the root, and alias them to the versions in example's node_modules 18 | resolver: { 19 | blacklistRE: exclusionList( 20 | modules.map( 21 | (m) => 22 | new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`) 23 | ) 24 | ), 25 | 26 | extraNodeModules: modules.reduce((acc, name) => { 27 | acc[name] = path.join(__dirname, 'node_modules', name); 28 | return acc; 29 | }, {}), 30 | }, 31 | 32 | transformer: { 33 | getTransformOptions: async () => ({ 34 | transform: { 35 | experimentalImportSupport: false, 36 | inlineRequires: true, 37 | }, 38 | }), 39 | }, 40 | }; 41 | -------------------------------------------------------------------------------- /src/components/z-view.ios.tsx: -------------------------------------------------------------------------------- 1 | import { FullWindowOverlay } from 'react-native-screens'; 2 | import * as React from 'react'; 3 | import { View, useWindowDimensions } from 'react-native'; 4 | import type { ZViewProps } from './type'; 5 | 6 | export const ZView = (props: ZViewProps) => { 7 | const { left, top, children, bottom, right, touchable } = props; 8 | const { height, width } = useWindowDimensions(); 9 | const containerViewStyle = React.useMemo(() => { 10 | return { 11 | position: 'absolute', 12 | width, 13 | height, 14 | alignItems: 'flex-start', 15 | } as const; 16 | }, [width, height]); 17 | 18 | const innerContainerStyle = React.useMemo(() => { 19 | return { 20 | position: 'absolute', 21 | top, 22 | left, 23 | bottom, 24 | right, 25 | } as const; 26 | }, [top, left, bottom, right]); 27 | 28 | return ( 29 | // @ts-ignore 30 | 31 | 35 | 36 | {children} 37 | 38 | 39 | 40 | ); 41 | }; 42 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/zviewexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.zviewexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; 6 | import com.facebook.react.defaults.DefaultReactActivityDelegate; 7 | 8 | public class MainActivity extends ReactActivity { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule 12 | * rendering of the component. 13 | */ 14 | @Override 15 | protected String getMainComponentName() { 16 | return "ZViewExample"; 17 | } 18 | 19 | /** 20 | * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link 21 | * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React 22 | * (aka React 18) with two boolean flags. 23 | */ 24 | @Override 25 | protected ReactActivityDelegate createReactActivityDelegate() { 26 | return new DefaultReactActivityDelegate( 27 | this, 28 | getMainComponentName(), 29 | // If you opted-in for the New Architecture, we enable the Fabric Renderer. 30 | DefaultNewArchitectureEntryPoint.getFabricEnabled()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/components/z-view.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import type { ZViewProps } from './type'; 3 | 4 | import { requireNativeComponent, UIManager, Platform } from 'react-native'; 5 | 6 | const LINKING_ERROR = 7 | `The package 'react-native-z-view' doesn't seem to be linked. Make sure: \n\n` + 8 | Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + 9 | '- You rebuilt the app after installing the package\n' + 10 | '- You are not using Expo Go\n'; 11 | 12 | const ComponentName = 'ZView'; 13 | 14 | const ZViewImpl = 15 | UIManager.getViewManagerConfig(ComponentName) != null 16 | ? requireNativeComponent(ComponentName) 17 | : () => { 18 | throw new Error(LINKING_ERROR); 19 | }; 20 | 21 | export let ZViewRootViewGroup = 22 | requireNativeComponent('ZViewRootViewGroup'); 23 | 24 | const absoluteStyle = { 25 | position: 'absolute', 26 | }; 27 | 28 | export const ZView = (props: ZViewProps) => { 29 | const { children, touchable, top, left, bottom, right } = props; 30 | 31 | const coordinates = React.useMemo( 32 | () => ({ 33 | top, 34 | left, 35 | right, 36 | bottom, 37 | }), 38 | [top, left, bottom, right] 39 | ); 40 | 41 | return ( 42 | 48 | {children} 49 | 50 | ); 51 | }; 52 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativezview/ZViewManager.java: -------------------------------------------------------------------------------- 1 | package com.reactnativezview; 2 | 3 | import androidx.annotation.NonNull; 4 | import androidx.annotation.Nullable; 5 | 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.bridge.ReadableMap; 8 | import com.facebook.react.uimanager.ThemedReactContext; 9 | import com.facebook.react.uimanager.annotations.ReactProp; 10 | import com.facebook.react.views.view.ReactViewGroup; 11 | import com.facebook.react.views.view.ReactViewManager; 12 | 13 | public class ZViewManager extends ReactViewManager { 14 | public static final String REACT_CLASS = "ZView"; 15 | ReactApplicationContext mCallerContext; 16 | 17 | public ZViewManager(ReactApplicationContext reactContext) { 18 | mCallerContext = reactContext; 19 | } 20 | 21 | @Override 22 | public String getName() { 23 | return REACT_CLASS; 24 | } 25 | 26 | @Override 27 | @ReactProp(name="pointerEvents") 28 | public void setPointerEvents(ReactViewGroup view, @Nullable String pointerEventsStr) { 29 | super.setPointerEvents(view, pointerEventsStr); 30 | } 31 | 32 | @ReactProp(name="touchable", defaultBoolean = true) 33 | public void setTouchable(ZView view, boolean touchable) { 34 | view.setTouchable(touchable); 35 | } 36 | 37 | @ReactProp(name="coordinates") 38 | public void setCoordinates(ZView view, ReadableMap coords) { 39 | view.setCoords(coords); 40 | } 41 | 42 | @NonNull 43 | @Override 44 | public ZView createViewInstance(ThemedReactContext context) { 45 | return new ZView(context); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ZViewExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(CURRENT_PROJECT_VERSION) 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativezview/ZViewRootViewGroupManager.java: -------------------------------------------------------------------------------- 1 | package com.reactnativezview; 2 | 3 | 4 | import androidx.annotation.NonNull; 5 | import androidx.annotation.Nullable; 6 | 7 | import com.facebook.react.bridge.ReactApplicationContext; 8 | import com.facebook.react.uimanager.ThemedReactContext; 9 | import com.facebook.react.uimanager.UIManagerHelper; 10 | import com.facebook.react.uimanager.annotations.ReactProp; 11 | import com.facebook.react.uimanager.events.EventDispatcher; 12 | import com.facebook.react.views.view.ReactViewGroup; 13 | import com.facebook.react.views.view.ReactViewManager; 14 | 15 | public class ZViewRootViewGroupManager extends ReactViewManager { 16 | public static final String REACT_CLASS = "ZViewRootViewGroup"; 17 | ReactApplicationContext mCallerContext; 18 | 19 | public ZViewRootViewGroupManager(ReactApplicationContext reactContext) { 20 | mCallerContext = reactContext; 21 | } 22 | 23 | @Override 24 | public String getName() { 25 | return REACT_CLASS; 26 | } 27 | 28 | @Override 29 | @ReactProp(name="pointerEvents") 30 | public void setPointerEvents(ReactViewGroup view, @Nullable String pointerEventsStr) { 31 | super.setPointerEvents(view, pointerEventsStr); 32 | } 33 | 34 | @Override 35 | protected void addEventEmitters(@NonNull ThemedReactContext reactContext, @NonNull ReactViewGroup view) { 36 | super.addEventEmitters(reactContext, view); 37 | final EventDispatcher dispatcher = 38 | UIManagerHelper.getEventDispatcherForReactTag(mCallerContext, view.getId()); 39 | ((ZViewRootViewGroup) view).setEventDispatcher(dispatcher); 40 | } 41 | 42 | @NonNull 43 | @Override 44 | public ZViewRootViewGroup createViewInstance(ThemedReactContext context) { 45 | return new ZViewRootViewGroup(context); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/rn_edit_text_material.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 21 | 22 | 23 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.182.0 29 | 30 | # Use this property to specify which architecture you want to build. 31 | # You can also override it from the CLI using 32 | # ./gradlew -PreactNativeArchitectures=x86_64 33 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 34 | 35 | # Use this property to enable support to the new architecture. 36 | # This will allow you to use TurboModules and the Fabric render in 37 | # your application. You should enable this flag either if you want 38 | # to write custom TurboModules/Fabric components OR use libraries that 39 | # are providing them. 40 | newArchEnabled=false 41 | 42 | # Use this property to enable or disable the Hermes JS engine. 43 | # If set to false, you will be using JSC instead. 44 | hermesEnabled=true 45 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/zviewexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.zviewexample; 2 | 3 | import android.app.Application; 4 | import com.facebook.react.PackageList; 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; 9 | import com.facebook.react.defaults.DefaultReactNativeHost; 10 | import com.facebook.soloader.SoLoader; 11 | import java.util.List; 12 | 13 | public class MainApplication extends Application implements ReactApplication { 14 | 15 | private final ReactNativeHost mReactNativeHost = 16 | new DefaultReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | @SuppressWarnings("UnnecessaryLocalVariable") 25 | List packages = new PackageList(this).getPackages(); 26 | // Packages that cannot be autolinked yet can be added manually here, for example: 27 | // packages.add(new MyReactNativePackage()); 28 | return packages; 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | 36 | @Override 37 | protected boolean isNewArchEnabled() { 38 | return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; 39 | } 40 | 41 | @Override 42 | protected Boolean isHermesEnabled() { 43 | return BuildConfig.IS_HERMES_ENABLED; 44 | } 45 | }; 46 | 47 | @Override 48 | public ReactNativeHost getReactNativeHost() { 49 | return mReactNativeHost; 50 | } 51 | 52 | @Override 53 | public void onCreate() { 54 | super.onCreate(); 55 | SoLoader.init(this, /* native exopackage */ false); 56 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { 57 | // If you opted-in for the New Architecture, we load the native entry point for this app. 58 | DefaultNewArchitectureEntryPoint.load(); 59 | } 60 | ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /example/ios/ZViewExampleTests/ZViewExampleTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface ZViewExampleTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation ZViewExampleTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction( 38 | ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 39 | if (level >= RCTLogLevelError) { 40 | redboxError = message; 41 | } 42 | }); 43 | #endif 44 | 45 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 46 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 48 | 49 | foundElement = [self findSubviewInView:vc.view 50 | matching:^BOOL(UIView *view) { 51 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 52 | return YES; 53 | } 54 | return NO; 55 | }]; 56 | } 57 | 58 | #ifdef DEBUG 59 | RCTSetLogFunction(RCTDefaultLogFunction); 60 | #endif 61 | 62 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 63 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Resolve react_native_pods.rb with node to allow for hoisting 2 | require Pod::Executable.execute_command('node', ['-p', 3 | 'require.resolve( 4 | "react-native/scripts/react_native_pods.rb", 5 | {paths: [process.argv[1]]}, 6 | )', __dir__]).strip 7 | 8 | platform :ios, min_ios_version_supported 9 | prepare_react_native_project! 10 | 11 | # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set. 12 | # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded 13 | # 14 | # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js` 15 | # ```js 16 | # module.exports = { 17 | # dependencies: { 18 | # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}), 19 | # ``` 20 | flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled 21 | 22 | linkage = ENV['USE_FRAMEWORKS'] 23 | if linkage != nil 24 | Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green 25 | use_frameworks! :linkage => linkage.to_sym 26 | end 27 | 28 | target 'ZViewExample' do 29 | config = use_native_modules! 30 | 31 | # Flags change depending on the env values. 32 | flags = get_default_flags() 33 | 34 | use_react_native!( 35 | :path => config[:reactNativePath], 36 | # Hermes is now enabled by default. Disable by setting this flag to false. 37 | :hermes_enabled => flags[:hermes_enabled], 38 | :fabric_enabled => flags[:fabric_enabled], 39 | # Enables Flipper. 40 | # 41 | # Note that if you have use_frameworks! enabled, Flipper will not work and 42 | # you should disable the next line. 43 | :flipper_configuration => flipper_config, 44 | # An absolute path to your application root. 45 | :app_path => "#{Pod::Config.instance.installation_root}/.." 46 | ) 47 | 48 | target 'ZViewExampleTests' do 49 | inherit! :complete 50 | # Pods for testing 51 | end 52 | 53 | post_install do |installer| 54 | # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 55 | react_native_post_install( 56 | installer, 57 | config[:reactNativePath], 58 | :mac_catalyst_enabled => false 59 | ) 60 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 61 | end 62 | end 63 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativezview/ZViewRootViewGroup.java: -------------------------------------------------------------------------------- 1 | package com.reactnativezview; 2 | 3 | 4 | import android.content.Context; 5 | import android.view.MotionEvent; 6 | import android.view.View; 7 | 8 | import com.facebook.react.uimanager.JSTouchDispatcher; 9 | import com.facebook.react.uimanager.RootView; 10 | import com.facebook.react.uimanager.ThemedReactContext; 11 | import com.facebook.react.uimanager.events.EventDispatcher; 12 | import com.facebook.react.views.view.ReactViewGroup; 13 | 14 | class ZViewRootViewGroup extends ReactViewGroup implements RootView { 15 | private EventDispatcher mEventDispatcher; 16 | private final JSTouchDispatcher mJSTouchDispatcher = new JSTouchDispatcher(this); 17 | 18 | public ZViewRootViewGroup(Context context) { 19 | super(context); 20 | } 21 | 22 | public void setEventDispatcher(EventDispatcher eventDispatcher) { 23 | this.mEventDispatcher = eventDispatcher; 24 | } 25 | 26 | public void handleException(Throwable t) { 27 | this.getReactContext().getReactApplicationContext().handleException(new RuntimeException(t)); 28 | } 29 | 30 | private ThemedReactContext getReactContext() { 31 | return (ThemedReactContext)this.getContext(); 32 | } 33 | 34 | public boolean onInterceptTouchEvent(MotionEvent event) { 35 | mJSTouchDispatcher.handleTouchEvent(event, mEventDispatcher); 36 | return super.onInterceptTouchEvent(event); 37 | } 38 | 39 | public boolean onTouchEvent(MotionEvent event) { 40 | mJSTouchDispatcher.handleTouchEvent(event, mEventDispatcher); 41 | super.onTouchEvent(event); 42 | // In case when there is no children interested in handling touch event, we return true from 43 | // the root view in order to receive subsequent events related to that gesture 44 | return true; 45 | } 46 | 47 | public void onChildStartedNativeGesture(MotionEvent ev) { 48 | this.onChildStartedNativeGesture((View)null, ev); 49 | } 50 | 51 | public void onChildStartedNativeGesture(View childView, MotionEvent ev) { 52 | this.mJSTouchDispatcher.onChildStartedNativeGesture(ev, this.mEventDispatcher); 53 | } 54 | 55 | public void onChildEndedNativeGesture(View childView, MotionEvent ev) { 56 | this.mJSTouchDispatcher.onChildEndedNativeGesture(ev, this.mEventDispatcher); 57 | } 58 | 59 | public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) { 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2.1 2 | 3 | executors: 4 | default: 5 | docker: 6 | - image: circleci/node:16 7 | working_directory: ~/project 8 | 9 | commands: 10 | attach_project: 11 | steps: 12 | - attach_workspace: 13 | at: ~/project 14 | 15 | jobs: 16 | install-dependencies: 17 | executor: default 18 | steps: 19 | - checkout 20 | - attach_project 21 | - restore_cache: 22 | keys: 23 | - dependencies-{{ checksum "package.json" }} 24 | - dependencies- 25 | - restore_cache: 26 | keys: 27 | - dependencies-example-{{ checksum "example/package.json" }} 28 | - dependencies-example- 29 | - run: 30 | name: Install dependencies 31 | command: | 32 | yarn install --cwd example --frozen-lockfile 33 | yarn install --frozen-lockfile 34 | - save_cache: 35 | key: dependencies-{{ checksum "package.json" }} 36 | paths: node_modules 37 | - save_cache: 38 | key: dependencies-example-{{ checksum "example/package.json" }} 39 | paths: example/node_modules 40 | - persist_to_workspace: 41 | root: . 42 | paths: . 43 | 44 | lint: 45 | executor: default 46 | steps: 47 | - attach_project 48 | - run: 49 | name: Lint files 50 | command: | 51 | yarn lint 52 | 53 | typescript: 54 | executor: default 55 | steps: 56 | - attach_project 57 | - run: 58 | name: Typecheck files 59 | command: | 60 | yarn typescript 61 | 62 | unit-tests: 63 | executor: default 64 | steps: 65 | - attach_project 66 | - run: 67 | name: Run unit tests 68 | command: | 69 | yarn test --coverage 70 | - store_artifacts: 71 | path: coverage 72 | destination: coverage 73 | 74 | build-package: 75 | executor: default 76 | steps: 77 | - attach_project 78 | - run: 79 | name: Build package 80 | command: | 81 | yarn prepare 82 | 83 | workflows: 84 | build-and-test: 85 | jobs: 86 | - install-dependencies 87 | - lint: 88 | requires: 89 | - install-dependencies 90 | - typescript: 91 | requires: 92 | - install-dependencies 93 | - unit-tests: 94 | requires: 95 | - install-dependencies 96 | - build-package: 97 | requires: 98 | - install-dependencies 99 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-z-view 2 | 3 | Show a view on top of all the views (including native modals). It can be used like an overlay view. 4 | 5 | ## Installation 6 | 7 | ```sh 8 | npm install react-native-z-view react-native-screens 9 | ``` 10 | 11 | > Note: react-native-screens is required for iOS. 12 | 13 | ## Usage 14 | 15 | ```jsx 16 | import { ZView } from 'react-native-z-view' 17 | 18 | 19 | 20 | This will be shown on top of all the views! 21 | 22 | 23 | ``` 24 | 25 | ## Props 26 | 27 | - `top` - To adjust top value. Similar to `top` in position fixed. Accepts percentage and point values. 28 | - `left` - To adjust left value. Similar to `left` in position fixed. Accepts percentage and point values. 29 | - `bottom` - To adjust bottom value. Similar to `bottom` in position fixed. Accepts percentage and point values. 30 | - `right` - To adjust right value. Similar to `right` in position fixed. Accepts percentage and point values. 31 | - `touchable` (default: `true`) - Setting it to false makes the entire ZView non-touchable which allows passing touch events to the behind view of ZView itself. 32 | 33 | ## Examples 34 | 35 | ### Adjust Position 36 | 37 | ```jsx 38 | 39 | 40 | This will be shown on top of all the views! 41 | 42 | 43 | ``` 44 | 45 | ### Full Size Overlay 46 | 47 | ```jsx 48 | import { Dimensions } from 'react-native' 49 | 50 | const { width, height } = Dimensions.get('screen') 51 | 52 | 53 | 60 | Full size overlay view 61 | 62 | 63 | ``` 64 | 65 | ## Why? 66 | 67 | - React Native's Modal is great for modal usecases. It blocks the touch of behind views (which is expected from a Modal), so it is not a great solution for custom Toast, ToolTip or Popover that allow behind view touches. 68 | - Multiple Modals don't work unless nested on iOS in react native. I have made a [PR](https://github.com/facebook/react-native/pull/31498) for the same. 69 | - This component solves the above issues but it is not a replacement for RN's Modal component. Use this component when you face above issues. 70 | - This component makes sure to appear on top of Native Modal on Android and iOS so it can be used in place of a custom Portal like solution. 71 | 72 | ## Contributing 73 | 74 | See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. 75 | 76 | ## License 77 | 78 | MIT 79 | 80 | --- 81 | 82 | Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob) 83 | -------------------------------------------------------------------------------- /example/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%"=="" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%"=="" set DIRNAME=. 29 | @rem This is normally unused 30 | set APP_BASE_NAME=%~n0 31 | set APP_HOME=%DIRNAME% 32 | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 | 39 | @rem Find java.exe 40 | if defined JAVA_HOME goto findJavaFromJavaHome 41 | 42 | set JAVA_EXE=java.exe 43 | %JAVA_EXE% -version >NUL 2>&1 44 | if %ERRORLEVEL% equ 0 goto execute 45 | 46 | echo. 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 48 | echo. 49 | echo Please set the JAVA_HOME variable in your environment to match the 50 | echo location of your Java installation. 51 | 52 | goto fail 53 | 54 | :findJavaFromJavaHome 55 | set JAVA_HOME=%JAVA_HOME:"=% 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 | 58 | if exist "%JAVA_EXE%" goto execute 59 | 60 | echo. 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 62 | echo. 63 | echo Please set the JAVA_HOME variable in your environment to match the 64 | echo location of your Java installation. 65 | 66 | goto fail 67 | 68 | :execute 69 | @rem Setup the command line 70 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 | 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if %ERRORLEVEL% equ 0 goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | set EXIT_CODE=%ERRORLEVEL% 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 | exit /b %EXIT_CODE% 88 | 89 | :mainEnd 90 | if "%OS%"=="Windows_NT" endlocal 91 | 92 | :omega 93 | -------------------------------------------------------------------------------- /example/App.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | import React from 'react'; 9 | import type { PropsWithChildren } from 'react'; 10 | import { 11 | SafeAreaView, 12 | ScrollView, 13 | StatusBar, 14 | StyleSheet, 15 | Text, 16 | useColorScheme, 17 | View, 18 | } from 'react-native'; 19 | 20 | import { 21 | Colors, 22 | DebugInstructions, 23 | Header, 24 | LearnMoreLinks, 25 | ReloadInstructions, 26 | } from 'react-native/Libraries/NewAppScreen'; 27 | 28 | type SectionProps = PropsWithChildren<{ 29 | title: string; 30 | }>; 31 | 32 | function Section({ children, title }: SectionProps): JSX.Element { 33 | const isDarkMode = useColorScheme() === 'dark'; 34 | return ( 35 | 36 | 44 | {title} 45 | 46 | 54 | {children} 55 | 56 | 57 | ); 58 | } 59 | 60 | function App(): JSX.Element { 61 | const isDarkMode = useColorScheme() === 'dark'; 62 | 63 | const backgroundStyle = { 64 | backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, 65 | }; 66 | 67 | return ( 68 | 69 | 73 | 77 |

78 | 83 |
84 | Edit App.tsx to change this 85 | screen and then come back to see your edits. 86 |
87 |
88 | 89 |
90 |
91 | 92 |
93 |
94 | Read the docs to discover what to do next: 95 |
96 | 97 |
98 | 99 | 100 | ); 101 | } 102 | 103 | const styles = StyleSheet.create({ 104 | sectionContainer: { 105 | marginTop: 32, 106 | paddingHorizontal: 24, 107 | }, 108 | sectionTitle: { 109 | fontSize: 24, 110 | fontWeight: '600', 111 | }, 112 | sectionDescription: { 113 | marginTop: 8, 114 | fontSize: 18, 115 | fontWeight: '400', 116 | }, 117 | highlight: { 118 | fontWeight: '700', 119 | }, 120 | }); 121 | 122 | export default App; 123 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli). 2 | 3 | # Getting Started 4 | 5 | >**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding. 6 | 7 | ## Step 1: Start the Metro Server 8 | 9 | First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native. 10 | 11 | To start Metro, run the following command from the _root_ of your React Native project: 12 | 13 | ```bash 14 | # using npm 15 | npm start 16 | 17 | # OR using Yarn 18 | yarn start 19 | ``` 20 | 21 | ## Step 2: Start your Application 22 | 23 | Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app: 24 | 25 | ### For Android 26 | 27 | ```bash 28 | # using npm 29 | npm run android 30 | 31 | # OR using Yarn 32 | yarn android 33 | ``` 34 | 35 | ### For iOS 36 | 37 | ```bash 38 | # using npm 39 | npm run ios 40 | 41 | # OR using Yarn 42 | yarn ios 43 | ``` 44 | 45 | If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly. 46 | 47 | This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively. 48 | 49 | ## Step 3: Modifying your App 50 | 51 | Now that you have successfully run the app, let's modify it. 52 | 53 | 1. Open `App.tsx` in your text editor of choice and edit some lines. 54 | 2. For **Android**: Press the R key twice or select **"Reload"** from the **Developer Menu** (Ctrl + M (on Window and Linux) or Cmd ⌘ + M (on macOS)) to see your changes! 55 | 56 | For **iOS**: Hit Cmd ⌘ + R in your iOS Simulator to reload the app and see your changes! 57 | 58 | ## Congratulations! :tada: 59 | 60 | You've successfully run and modified your React Native App. :partying_face: 61 | 62 | ### Now what? 63 | 64 | - If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps). 65 | - If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started). 66 | 67 | # Troubleshooting 68 | 69 | If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page. 70 | 71 | # Learn More 72 | 73 | To learn more about React Native, take a look at the following resources: 74 | 75 | - [React Native Website](https://reactnative.dev) - learn more about React Native. 76 | - [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment. 77 | - [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**. 78 | - [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts. 79 | - [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native. 80 | -------------------------------------------------------------------------------- /example/android/app/src/debug/java/com/zviewexample/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.zviewexample; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 21 | import com.facebook.react.ReactInstanceEventListener; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | /** 28 | * Class responsible of loading Flipper inside your React Native application. This is the debug 29 | * flavor of it. Here you can add your own plugins and customize the Flipper setup. 30 | */ 31 | public class ReactNativeFlipper { 32 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 33 | if (FlipperUtils.shouldEnableFlipper(context)) { 34 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 35 | 36 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 37 | client.addPlugin(new DatabasesFlipperPlugin(context)); 38 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 39 | client.addPlugin(CrashReporterPlugin.getInstance()); 40 | 41 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 42 | NetworkingModule.setCustomClientBuilder( 43 | new NetworkingModule.CustomClientBuilder() { 44 | @Override 45 | public void apply(OkHttpClient.Builder builder) { 46 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 47 | } 48 | }); 49 | client.addPlugin(networkFlipperPlugin); 50 | client.start(); 51 | 52 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 53 | // Hence we run if after all native modules have been initialized 54 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 55 | if (reactContext == null) { 56 | reactInstanceManager.addReactInstanceEventListener( 57 | new ReactInstanceEventListener() { 58 | @Override 59 | public void onReactContextInitialized(ReactContext reactContext) { 60 | reactInstanceManager.removeReactInstanceEventListener(this); 61 | reactContext.runOnNativeModulesQueueThread( 62 | new Runnable() { 63 | @Override 64 | public void run() { 65 | client.addPlugin(new FrescoFlipperPlugin()); 66 | } 67 | }); 68 | } 69 | }); 70 | } else { 71 | client.addPlugin(new FrescoFlipperPlugin()); 72 | } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /example/ios/ZViewExample.xcodeproj/xcshareddata/xcschemes/ZViewExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.5.3' 9 | } 10 | } 11 | 12 | def isNewArchitectureEnabled() { 13 | return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true" 14 | } 15 | 16 | apply plugin: 'com.android.library' 17 | 18 | if (isNewArchitectureEnabled()) { 19 | apply plugin: 'com.facebook.react' 20 | } 21 | 22 | def getExtOrDefault(name) { 23 | return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ZView_' + name] 24 | } 25 | 26 | def getExtOrIntegerDefault(name) { 27 | return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ZView_' + name]).toInteger() 28 | } 29 | 30 | android { 31 | compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') 32 | 33 | defaultConfig { 34 | minSdkVersion getExtOrIntegerDefault('minSdkVersion') 35 | targetSdkVersion getExtOrIntegerDefault('targetSdkVersion') 36 | buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() 37 | } 38 | buildTypes { 39 | release { 40 | minifyEnabled false 41 | } 42 | } 43 | 44 | lintOptions { 45 | disable 'GradleCompatible' 46 | } 47 | 48 | compileOptions { 49 | sourceCompatibility JavaVersion.VERSION_1_8 50 | targetCompatibility JavaVersion.VERSION_1_8 51 | } 52 | } 53 | 54 | repositories { 55 | mavenCentral() 56 | google() 57 | 58 | def found = false 59 | def defaultDir = null 60 | def androidSourcesName = 'React Native sources' 61 | 62 | if (rootProject.ext.has('reactNativeAndroidRoot')) { 63 | defaultDir = rootProject.ext.get('reactNativeAndroidRoot') 64 | } else { 65 | defaultDir = new File( 66 | projectDir, 67 | '/../../../node_modules/react-native/android' 68 | ) 69 | } 70 | 71 | if (defaultDir.exists()) { 72 | maven { 73 | url defaultDir.toString() 74 | name androidSourcesName 75 | } 76 | 77 | logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}") 78 | found = true 79 | } else { 80 | def parentDir = rootProject.projectDir 81 | 82 | 1.upto(5, { 83 | if (found) return true 84 | parentDir = parentDir.parentFile 85 | 86 | def androidSourcesDir = new File( 87 | parentDir, 88 | 'node_modules/react-native' 89 | ) 90 | 91 | def androidPrebuiltBinaryDir = new File( 92 | parentDir, 93 | 'node_modules/react-native/android' 94 | ) 95 | 96 | if (androidPrebuiltBinaryDir.exists()) { 97 | maven { 98 | url androidPrebuiltBinaryDir.toString() 99 | name androidSourcesName 100 | } 101 | 102 | logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}") 103 | found = true 104 | } else if (androidSourcesDir.exists()) { 105 | maven { 106 | url androidSourcesDir.toString() 107 | name androidSourcesName 108 | } 109 | 110 | logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}") 111 | found = true 112 | } 113 | }) 114 | } 115 | 116 | if (!found) { 117 | throw new GradleException( 118 | "${project.name}: unable to locate React Native android sources. " + 119 | "Ensure you have you installed React Native as a dependency in your project and try again." 120 | ) 121 | } 122 | } 123 | 124 | 125 | dependencies { 126 | //noinspection GradleDynamicVersion 127 | implementation "com.facebook.react:react-native:+" 128 | // From node_modules 129 | } 130 | 131 | if (isNewArchitectureEnabled()) { 132 | react { 133 | jsRootDir = file("../src/") 134 | libraryName = "ZView" 135 | codegenJavaPackageName = "com.reactnativezview" 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /example/ios/ZViewExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-z-view", 3 | "version": "0.2.4", 4 | "description": "test", 5 | "main": "lib/commonjs/index", 6 | "module": "lib/module/index", 7 | "types": "lib/typescript/index.d.ts", 8 | "react-native": "src/index", 9 | "source": "src/index", 10 | "files": [ 11 | "src", 12 | "lib", 13 | "android", 14 | "ios", 15 | "cpp", 16 | "*.podspec", 17 | "!lib/typescript/example", 18 | "!ios/build", 19 | "!android/build", 20 | "!android/gradle", 21 | "!android/gradlew", 22 | "!android/gradlew.bat", 23 | "!android/local.properties", 24 | "!**/__tests__", 25 | "!**/__fixtures__", 26 | "!**/__mocks__", 27 | "!**/.*" 28 | ], 29 | "scripts": { 30 | "test": "jest", 31 | "typescript": "tsc --noEmit", 32 | "lint": "eslint \"**/*.{js,ts,tsx}\"", 33 | "prepare": "bob build", 34 | "release": "release-it", 35 | "example": "yarn --cwd example", 36 | "bootstrap": "yarn example && yarn install && yarn example pods" 37 | }, 38 | "keywords": [ 39 | "react-native", 40 | "ios", 41 | "android" 42 | ], 43 | "repository": "https://github.com/intergalacticspacehighway/react-native-z-view", 44 | "author": "Nishan (https://github.com/intergalacticspacehighway)", 45 | "license": "MIT", 46 | "bugs": { 47 | "url": "https://github.com/intergalacticspacehighway/react-native-z-view/issues" 48 | }, 49 | "homepage": "https://github.com/intergalacticspacehighway/react-native-z-view#readme", 50 | "publishConfig": { 51 | "registry": "https://registry.npmjs.org/" 52 | }, 53 | "devDependencies": { 54 | "@arkweid/lefthook": "^0.7.7", 55 | "@commitlint/config-conventional": "^17.0.2", 56 | "@react-native-community/eslint-config": "^3.0.2", 57 | "@release-it/conventional-changelog": "^5.0.0", 58 | "@types/jest": "^28.1.2", 59 | "@types/react": "~17.0.21", 60 | "@types/react-native": "0.68.0", 61 | "commitlint": "^17.0.2", 62 | "eslint": "^8.4.1", 63 | "eslint-config-prettier": "^8.5.0", 64 | "eslint-plugin-prettier": "^4.0.0", 65 | "jest": "^28.1.1", 66 | "pod-install": "^0.1.0", 67 | "prettier": "^2.0.5", 68 | "react": "18.2.0", 69 | "react-native": "0.72.4", 70 | "react-native-builder-bob": "^0.18.3", 71 | "release-it": "^15.0.0", 72 | "typescript": "^4.5.2", 73 | "react-native-screens": "^3.24.0" 74 | }, 75 | "resolutions": { 76 | "@types/react": "17.0.21" 77 | }, 78 | "peerDependencies": { 79 | "react": "*", 80 | "react-native": "*", 81 | "react-native-screens": "*" 82 | }, 83 | "jest": { 84 | "preset": "react-native", 85 | "modulePathIgnorePatterns": [ 86 | "/example/node_modules", 87 | "/lib/" 88 | ] 89 | }, 90 | "commitlint": { 91 | "extends": [ 92 | "@commitlint/config-conventional" 93 | ] 94 | }, 95 | "release-it": { 96 | "git": { 97 | "commitMessage": "chore: release ${version}", 98 | "tagName": "v${version}" 99 | }, 100 | "npm": { 101 | "publish": true 102 | }, 103 | "github": { 104 | "release": true 105 | }, 106 | "plugins": { 107 | "@release-it/conventional-changelog": { 108 | "preset": "angular" 109 | } 110 | } 111 | }, 112 | "eslintConfig": { 113 | "root": true, 114 | "extends": [ 115 | "@react-native-community", 116 | "prettier" 117 | ], 118 | "rules": { 119 | "prettier/prettier": [ 120 | "error", 121 | { 122 | "quoteProps": "consistent", 123 | "singleQuote": true, 124 | "tabWidth": 2, 125 | "trailingComma": "es5", 126 | "useTabs": false 127 | } 128 | ] 129 | } 130 | }, 131 | "eslintIgnore": [ 132 | "node_modules/", 133 | "lib/" 134 | ], 135 | "prettier": { 136 | "quoteProps": "consistent", 137 | "singleQuote": true, 138 | "tabWidth": 2, 139 | "trailingComma": "es5", 140 | "useTabs": false 141 | }, 142 | "react-native-builder-bob": { 143 | "source": "src", 144 | "output": "lib", 145 | "targets": [ 146 | "commonjs", 147 | "module", 148 | [ 149 | "typescript", 150 | { 151 | "project": "tsconfig.build.json" 152 | } 153 | ] 154 | ] 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "com.facebook.react" 3 | 4 | /** 5 | * This is the configuration block to customize your React Native Android app. 6 | * By default you don't need to apply any configuration, just uncomment the lines you need. 7 | */ 8 | react { 9 | /* Folders */ 10 | // The root of your project, i.e. where "package.json" lives. Default is '..' 11 | // root = file("../") 12 | // The folder where the react-native NPM package is. Default is ../node_modules/react-native 13 | // reactNativeDir = file("../node_modules/react-native") 14 | // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen 15 | // codegenDir = file("../node_modules/@react-native/codegen") 16 | // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js 17 | // cliFile = file("../node_modules/react-native/cli.js") 18 | 19 | /* Variants */ 20 | // The list of variants to that are debuggable. For those we're going to 21 | // skip the bundling of the JS bundle and the assets. By default is just 'debug'. 22 | // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. 23 | // debuggableVariants = ["liteDebug", "prodDebug"] 24 | 25 | /* Bundling */ 26 | // A list containing the node command and its flags. Default is just 'node'. 27 | // nodeExecutableAndArgs = ["node"] 28 | // 29 | // The command to run when bundling. By default is 'bundle' 30 | // bundleCommand = "ram-bundle" 31 | // 32 | // The path to the CLI configuration file. Default is empty. 33 | // bundleConfig = file(../rn-cli.config.js) 34 | // 35 | // The name of the generated asset file containing your JS bundle 36 | // bundleAssetName = "MyApplication.android.bundle" 37 | // 38 | // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' 39 | // entryFile = file("../js/MyApplication.android.js") 40 | // 41 | // A list of extra flags to pass to the 'bundle' commands. 42 | // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle 43 | // extraPackagerArgs = [] 44 | 45 | /* Hermes Commands */ 46 | // The hermes compiler command to run. By default it is 'hermesc' 47 | // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" 48 | // 49 | // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" 50 | // hermesFlags = ["-O", "-output-source-map"] 51 | } 52 | 53 | /** 54 | * Set this to true to Run Proguard on Release builds to minify the Java bytecode. 55 | */ 56 | def enableProguardInReleaseBuilds = false 57 | 58 | /** 59 | * The preferred build flavor of JavaScriptCore (JSC) 60 | * 61 | * For example, to use the international variant, you can use: 62 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 63 | * 64 | * The international variant includes ICU i18n library and necessary data 65 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 66 | * give correct results when using with locales other than en-US. Note that 67 | * this variant is about 6MiB larger per architecture than default. 68 | */ 69 | def jscFlavor = 'org.webkit:android-jsc:+' 70 | 71 | android { 72 | ndkVersion rootProject.ext.ndkVersion 73 | 74 | compileSdkVersion rootProject.ext.compileSdkVersion 75 | 76 | namespace "com.zviewexample" 77 | defaultConfig { 78 | applicationId "com.zviewexample" 79 | minSdkVersion rootProject.ext.minSdkVersion 80 | targetSdkVersion rootProject.ext.targetSdkVersion 81 | versionCode 1 82 | versionName "1.0" 83 | } 84 | signingConfigs { 85 | debug { 86 | storeFile file('debug.keystore') 87 | storePassword 'android' 88 | keyAlias 'androiddebugkey' 89 | keyPassword 'android' 90 | } 91 | } 92 | buildTypes { 93 | debug { 94 | signingConfig signingConfigs.debug 95 | } 96 | release { 97 | // Caution! In production, you need to generate your own keystore file. 98 | // see https://reactnative.dev/docs/signed-apk-android. 99 | signingConfig signingConfigs.debug 100 | minifyEnabled enableProguardInReleaseBuilds 101 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 102 | } 103 | } 104 | } 105 | 106 | dependencies { 107 | // The version of react-native is set by the React Native Gradle Plugin 108 | implementation("com.facebook.react:react-android") 109 | 110 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") 111 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 112 | exclude group:'com.squareup.okhttp3', module:'okhttp' 113 | } 114 | 115 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") 116 | if (hermesEnabled.toBoolean()) { 117 | implementation("com.facebook.react:hermes-android") 118 | } else { 119 | implementation jscFlavor 120 | } 121 | } 122 | 123 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 124 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativezview/ZView.java: -------------------------------------------------------------------------------- 1 | package com.reactnativezview; 2 | 3 | import android.content.Context; 4 | import android.graphics.PixelFormat; 5 | import android.util.DisplayMetrics; 6 | import android.view.Gravity; 7 | import android.view.View; 8 | import android.view.WindowManager; 9 | 10 | import androidx.annotation.Nullable; 11 | 12 | import com.facebook.react.bridge.Dynamic; 13 | import com.facebook.react.bridge.ReadableMap; 14 | import com.facebook.react.bridge.ReadableType; 15 | import com.facebook.react.uimanager.DisplayMetricsHolder; 16 | import com.facebook.react.uimanager.PixelUtil; 17 | import com.facebook.react.views.view.ReactViewGroup; 18 | 19 | public class ZView extends ReactViewGroup { 20 | @Nullable 21 | private ZViewRootViewGroup mHostView; 22 | 23 | private WindowManager windowManager; 24 | 25 | private boolean touchable = true; 26 | 27 | @Nullable 28 | private ReadableMap coords; 29 | 30 | public ZView(Context context) { 31 | super(context); 32 | windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); 33 | } 34 | 35 | @Override 36 | public void addView(View child, int index, LayoutParams params) { 37 | mHostView = (ZViewRootViewGroup) child; 38 | WindowManager.LayoutParams windowParams = new WindowManager.LayoutParams( 39 | WindowManager.LayoutParams.WRAP_CONTENT, 40 | WindowManager.LayoutParams.WRAP_CONTENT, 41 | WindowManager.LayoutParams.TYPE_APPLICATION, 42 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 43 | | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 44 | | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 45 | | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN, 46 | PixelFormat.TRANSLUCENT); 47 | 48 | windowParams.gravity = Gravity.TOP | Gravity.LEFT; 49 | windowParams.x = 0; 50 | windowParams.y = 0; 51 | windowManager.addView(mHostView, windowParams); 52 | updateTouchable(); 53 | updateXAndY(); 54 | } 55 | 56 | private void updateTouchable() { 57 | if (this.mHostView != null) { 58 | WindowManager.LayoutParams existingParams = (WindowManager.LayoutParams) this.mHostView.getLayoutParams(); 59 | if (touchable) { 60 | existingParams.flags &= ~WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 61 | } else { 62 | existingParams.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 63 | } 64 | windowManager.updateViewLayout(this.mHostView, existingParams); 65 | } 66 | } 67 | 68 | @Override 69 | protected void onLayout(boolean changed, int left, int top, int right, int bottom) { 70 | super.onLayout(changed, left, top, right, bottom); 71 | int width = right - left; 72 | int height = bottom - top; 73 | if (mHostView != null) { 74 | WindowManager.LayoutParams existingParams = (WindowManager.LayoutParams) this.mHostView.getLayoutParams(); 75 | existingParams.width = width; 76 | existingParams.height = height; 77 | windowManager.updateViewLayout(mHostView, existingParams); 78 | updateXAndY(); 79 | } 80 | 81 | } 82 | 83 | 84 | public void removeView(View child) { 85 | // ZView will always have a single child 86 | mHostView = null; 87 | } 88 | 89 | public void removeViewAt(int index) { 90 | // ZView will always have a single child 91 | mHostView = null; 92 | } 93 | 94 | public void setCoords(ReadableMap coords) { 95 | this.coords = coords; 96 | updateXAndY(); 97 | } 98 | 99 | public void setTouchable(boolean touchable) { 100 | this.touchable = touchable; 101 | updateTouchable(); 102 | } 103 | 104 | private void updateXAndY() { 105 | if (mHostView != null) { 106 | int decorWidth = this.mHostView.getWidth(); 107 | int decorHeight = this.mHostView.getHeight(); 108 | DisplayMetrics displayMetrics = DisplayMetricsHolder.getScreenDisplayMetrics(); 109 | int screenWidth = displayMetrics.widthPixels; 110 | int screenHeight = displayMetrics.heightPixels; 111 | int top = 0; 112 | int left = 0; 113 | if (coords != null) { 114 | if (coords.hasKey("top")) { 115 | Dynamic topDynamic = coords.getDynamic("top"); 116 | if (topDynamic.getType() == ReadableType.Number) { 117 | top = (int) PixelUtil.toPixelFromDIP(coords.getInt("top")); 118 | } else if (topDynamic.getType() == ReadableType.String && topDynamic.asString().endsWith("%")) { 119 | int topPer = Integer.parseInt(topDynamic.asString().replace("%", "")); 120 | top = (int) ((topPer/100.0) * screenHeight); 121 | } 122 | } else if (coords.hasKey("bottom")){ 123 | Dynamic bottomDynamic = coords.getDynamic("bottom"); 124 | if (bottomDynamic.getType() == ReadableType.Number) { 125 | top = screenHeight - decorHeight - (int) PixelUtil.toPixelFromDIP(coords.getInt("bottom")); 126 | } else if (bottomDynamic.getType() == ReadableType.String && bottomDynamic.asString().endsWith("%")) { 127 | int bottomPer = Integer.parseInt(bottomDynamic.asString().replace("%", "")); 128 | top = screenHeight - (int) (bottomPer/100.0 * screenHeight) - decorHeight; 129 | } 130 | } 131 | 132 | if (coords.hasKey("left")) { 133 | Dynamic leftDynamic = coords.getDynamic("left"); 134 | if (leftDynamic.getType() == ReadableType.Number) { 135 | left = (int) PixelUtil.toPixelFromDIP(coords.getInt("left")); 136 | } else if (leftDynamic.getType() == ReadableType.String && leftDynamic.asString().endsWith("%")) { 137 | int leftPer = Integer.parseInt(leftDynamic.asString().replace("%", "")); 138 | left = (int) ((leftPer / 100.0) * screenWidth); 139 | } 140 | } else if (coords.hasKey("right")){ 141 | Dynamic rightDynamic = coords.getDynamic("right"); 142 | if (rightDynamic.getType() == ReadableType.Number) { 143 | left = screenWidth - decorWidth - (int) PixelUtil.toPixelFromDIP(coords.getInt("right")); 144 | } else if (rightDynamic.getType() == ReadableType.String && rightDynamic.asString().endsWith("%")) { 145 | int rightPer = Integer.parseInt(rightDynamic.asString().replace("%", "")); 146 | left = screenWidth - (int) (rightPer/100.0 * screenWidth) - decorWidth; 147 | } 148 | } 149 | } 150 | 151 | WindowManager.LayoutParams existingParams = (WindowManager.LayoutParams) mHostView.getLayoutParams(); 152 | existingParams.x = left; 153 | existingParams.y = top; 154 | windowManager.updateViewLayout(mHostView, existingParams); 155 | } 156 | } 157 | 158 | @Override 159 | protected void onDetachedFromWindow() { 160 | super.onDetachedFromWindow(); 161 | if (mHostView != null) { 162 | windowManager.removeView(this.mHostView); 163 | mHostView = null; 164 | } 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | # 21 | # Gradle start up script for POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | # This is normally unused 84 | # shellcheck disable=SC2034 85 | APP_BASE_NAME=${0##*/} 86 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. 147 | # shellcheck disable=SC3045 148 | MAX_FD=$( ulimit -H -n ) || 149 | warn "Could not query maximum file descriptor limit" 150 | esac 151 | case $MAX_FD in #( 152 | '' | soft) :;; #( 153 | *) 154 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. 155 | # shellcheck disable=SC3045 156 | ulimit -n "$MAX_FD" || 157 | warn "Could not set maximum file descriptor limit to $MAX_FD" 158 | esac 159 | fi 160 | 161 | # Collect all arguments for the java command, stacking in reverse order: 162 | # * args from the command line 163 | # * the main class name 164 | # * -classpath 165 | # * -D...appname settings 166 | # * --module-path (only if needed) 167 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 168 | 169 | # For Cygwin or MSYS, switch paths to Windows format before running java 170 | if "$cygwin" || "$msys" ; then 171 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 172 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 173 | 174 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 175 | 176 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 177 | for arg do 178 | if 179 | case $arg in #( 180 | -*) false ;; # don't mess with options #( 181 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 182 | [ -e "$t" ] ;; #( 183 | *) false ;; 184 | esac 185 | then 186 | arg=$( cygpath --path --ignore --mixed "$arg" ) 187 | fi 188 | # Roll the args list around exactly as many times as the number of 189 | # args, so each arg winds up back in the position where it started, but 190 | # possibly modified. 191 | # 192 | # NB: a `for` loop captures its iteration list before it begins, so 193 | # changing the positional parameters here affects neither the number of 194 | # iterations, nor the values presented in `arg`. 195 | shift # remove old arg 196 | set -- "$@" "$arg" # push replacement arg 197 | done 198 | fi 199 | 200 | # Collect all arguments for the java command; 201 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 202 | # shell script including quotes and variable substitutions, so put them in 203 | # double quotes to make sure that they get re-expanded; and 204 | # * put everything else in single quotes, so that it's not re-expanded. 205 | 206 | set -- \ 207 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 208 | -classpath "$CLASSPATH" \ 209 | org.gradle.wrapper.GradleWrapperMain \ 210 | "$@" 211 | 212 | # Stop when "xargs" is not available. 213 | if ! command -v xargs >/dev/null 2>&1 214 | then 215 | die "xargs is not available" 216 | fi 217 | 218 | # Use "xargs" to parse quoted args. 219 | # 220 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 221 | # 222 | # In Bash we could simply go: 223 | # 224 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 225 | # set -- "${ARGS[@]}" "$@" 226 | # 227 | # but POSIX shell has neither arrays nor command substitution, so instead we 228 | # post-process each arg (as a line of input to sed) to backslash-escape any 229 | # character that might be a shell metacharacter, then use eval to reverse 230 | # that process (while maintaining the separation between arguments), and wrap 231 | # the whole thing up as a single "set" statement. 232 | # 233 | # This will of course break if any of these variables contains a newline or 234 | # an unmatched quote. 235 | # 236 | 237 | eval "set -- $( 238 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 239 | xargs -n1 | 240 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 241 | tr '\n' ' ' 242 | )" '"$@"' 243 | 244 | exec "$JAVACMD" "$@" 245 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. 4 | 5 | ## Development workflow 6 | 7 | To get started with the project, run `yarn` in the root directory to install the required dependencies for each package: 8 | 9 | ```sh 10 | yarn 11 | ``` 12 | 13 | > While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development. 14 | 15 | While developing, you can run the [example app](/example/) to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app. 16 | 17 | To start the packager: 18 | 19 | ```sh 20 | yarn example start 21 | ``` 22 | 23 | To run the example app on Android: 24 | 25 | ```sh 26 | yarn example android 27 | ``` 28 | 29 | To run the example app on iOS: 30 | 31 | ```sh 32 | yarn example ios 33 | ``` 34 | 35 | 36 | Make sure your code passes TypeScript and ESLint. Run the following to verify: 37 | 38 | ```sh 39 | yarn typescript 40 | yarn lint 41 | ``` 42 | 43 | To fix formatting errors, run the following: 44 | 45 | ```sh 46 | yarn lint --fix 47 | ``` 48 | 49 | Remember to add tests for your change if possible. Run the unit tests by: 50 | 51 | ```sh 52 | yarn test 53 | ``` 54 | To edit the Objective-C files, open `example/ios/ZViewExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-z-view`. 55 | 56 | To edit the Kotlin files, open `example/android` in Android studio and find the source files at `reactnativezview` under `Android`. 57 | ### Commit message convention 58 | 59 | We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages: 60 | 61 | - `fix`: bug fixes, e.g. fix crash due to deprecated method. 62 | - `feat`: new features, e.g. add new method to the module. 63 | - `refactor`: code refactor, e.g. migrate from class components to hooks. 64 | - `docs`: changes into documentation, e.g. add usage example for the module.. 65 | - `test`: adding or updating tests, e.g. add integration tests using detox. 66 | - `chore`: tooling changes, e.g. change CI config. 67 | 68 | Our pre-commit hooks verify that your commit message matches this format when committing. 69 | 70 | ### Linting and tests 71 | 72 | [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/) 73 | 74 | We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing. 75 | 76 | Our pre-commit hooks verify that the linter and tests pass when committing. 77 | 78 | ### Publishing to npm 79 | 80 | We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc. 81 | 82 | To publish new versions, run the following: 83 | 84 | ```sh 85 | yarn release 86 | ``` 87 | 88 | ### Scripts 89 | 90 | The `package.json` file contains various scripts for common tasks: 91 | 92 | - `yarn bootstrap`: setup project by installing all dependencies and pods. 93 | - `yarn typescript`: type-check files with TypeScript. 94 | - `yarn lint`: lint files with ESLint. 95 | - `yarn test`: run unit tests with Jest. 96 | - `yarn example start`: start the Metro server for the example app. 97 | - `yarn example android`: run the example app on Android. 98 | - `yarn example ios`: run the example app on iOS. 99 | 100 | ### Sending a pull request 101 | 102 | > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github). 103 | 104 | When you're sending a pull request: 105 | 106 | - Prefer small pull requests focused on one change. 107 | - Verify that linters and tests are passing. 108 | - Review the documentation to make sure it looks good. 109 | - Follow the pull request template when opening a pull request. 110 | - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue. 111 | 112 | ## Code of Conduct 113 | 114 | ### Our Pledge 115 | 116 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 117 | 118 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 119 | 120 | ### Our Standards 121 | 122 | Examples of behavior that contributes to a positive environment for our community include: 123 | 124 | - Demonstrating empathy and kindness toward other people 125 | - Being respectful of differing opinions, viewpoints, and experiences 126 | - Giving and gracefully accepting constructive feedback 127 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 128 | - Focusing on what is best not just for us as individuals, but for the overall community 129 | 130 | Examples of unacceptable behavior include: 131 | 132 | - The use of sexualized language or imagery, and sexual attention or 133 | advances of any kind 134 | - Trolling, insulting or derogatory comments, and personal or political attacks 135 | - Public or private harassment 136 | - Publishing others' private information, such as a physical or email 137 | address, without their explicit permission 138 | - Other conduct which could reasonably be considered inappropriate in a 139 | professional setting 140 | 141 | ### Enforcement Responsibilities 142 | 143 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 144 | 145 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 146 | 147 | ### Scope 148 | 149 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 150 | 151 | ### Enforcement 152 | 153 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly. 154 | 155 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 156 | 157 | ### Enforcement Guidelines 158 | 159 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: 160 | 161 | #### 1. Correction 162 | 163 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 164 | 165 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. 166 | 167 | #### 2. Warning 168 | 169 | **Community Impact**: A violation through a single incident or series of actions. 170 | 171 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. 172 | 173 | #### 3. Temporary Ban 174 | 175 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. 176 | 177 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. 178 | 179 | #### 4. Permanent Ban 180 | 181 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 182 | 183 | **Consequence**: A permanent ban from any sort of public interaction within the community. 184 | 185 | ### Attribution 186 | 187 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, 188 | available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 189 | 190 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). 191 | 192 | [homepage]: https://www.contributor-covenant.org 193 | 194 | For answers to common questions about this code of conduct, see the FAQ at 195 | https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. 196 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost (1.76.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.72.4) 6 | - FBReactNativeSpec (0.72.4): 7 | - RCT-Folly (= 2021.07.22.00) 8 | - RCTRequired (= 0.72.4) 9 | - RCTTypeSafety (= 0.72.4) 10 | - React-Core (= 0.72.4) 11 | - React-jsi (= 0.72.4) 12 | - ReactCommon/turbomodule/core (= 0.72.4) 13 | - Flipper (0.182.0): 14 | - Flipper-Folly (~> 2.6) 15 | - Flipper-Boost-iOSX (1.76.0.1.11) 16 | - Flipper-DoubleConversion (3.2.0.1) 17 | - Flipper-Fmt (7.1.7) 18 | - Flipper-Folly (2.6.10): 19 | - Flipper-Boost-iOSX 20 | - Flipper-DoubleConversion 21 | - Flipper-Fmt (= 7.1.7) 22 | - Flipper-Glog 23 | - libevent (~> 2.1.12) 24 | - OpenSSL-Universal (= 1.1.1100) 25 | - Flipper-Glog (0.5.0.5) 26 | - Flipper-PeerTalk (0.0.4) 27 | - FlipperKit (0.182.0): 28 | - FlipperKit/Core (= 0.182.0) 29 | - FlipperKit/Core (0.182.0): 30 | - Flipper (~> 0.182.0) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - SocketRocket (~> 0.6.0) 36 | - FlipperKit/CppBridge (0.182.0): 37 | - Flipper (~> 0.182.0) 38 | - FlipperKit/FBCxxFollyDynamicConvert (0.182.0): 39 | - Flipper-Folly (~> 2.6) 40 | - FlipperKit/FBDefines (0.182.0) 41 | - FlipperKit/FKPortForwarding (0.182.0): 42 | - CocoaAsyncSocket (~> 7.6) 43 | - Flipper-PeerTalk (~> 0.0.4) 44 | - FlipperKit/FlipperKitHighlightOverlay (0.182.0) 45 | - FlipperKit/FlipperKitLayoutHelpers (0.182.0): 46 | - FlipperKit/Core 47 | - FlipperKit/FlipperKitHighlightOverlay 48 | - FlipperKit/FlipperKitLayoutTextSearchable 49 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.182.0): 50 | - FlipperKit/Core 51 | - FlipperKit/FlipperKitHighlightOverlay 52 | - FlipperKit/FlipperKitLayoutHelpers 53 | - YogaKit (~> 1.18) 54 | - FlipperKit/FlipperKitLayoutPlugin (0.182.0): 55 | - FlipperKit/Core 56 | - FlipperKit/FlipperKitHighlightOverlay 57 | - FlipperKit/FlipperKitLayoutHelpers 58 | - FlipperKit/FlipperKitLayoutIOSDescriptors 59 | - FlipperKit/FlipperKitLayoutTextSearchable 60 | - YogaKit (~> 1.18) 61 | - FlipperKit/FlipperKitLayoutTextSearchable (0.182.0) 62 | - FlipperKit/FlipperKitNetworkPlugin (0.182.0): 63 | - FlipperKit/Core 64 | - FlipperKit/FlipperKitReactPlugin (0.182.0): 65 | - FlipperKit/Core 66 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.182.0): 67 | - FlipperKit/Core 68 | - FlipperKit/SKIOSNetworkPlugin (0.182.0): 69 | - FlipperKit/Core 70 | - FlipperKit/FlipperKitNetworkPlugin 71 | - fmt (6.2.1) 72 | - glog (0.3.5) 73 | - hermes-engine (0.72.4): 74 | - hermes-engine/Pre-built (= 0.72.4) 75 | - hermes-engine/Pre-built (0.72.4) 76 | - libevent (2.1.12) 77 | - OpenSSL-Universal (1.1.1100) 78 | - RCT-Folly (2021.07.22.00): 79 | - boost 80 | - DoubleConversion 81 | - fmt (~> 6.2.1) 82 | - glog 83 | - RCT-Folly/Default (= 2021.07.22.00) 84 | - RCT-Folly/Default (2021.07.22.00): 85 | - boost 86 | - DoubleConversion 87 | - fmt (~> 6.2.1) 88 | - glog 89 | - RCT-Folly/Futures (2021.07.22.00): 90 | - boost 91 | - DoubleConversion 92 | - fmt (~> 6.2.1) 93 | - glog 94 | - libevent 95 | - RCTRequired (0.72.4) 96 | - RCTTypeSafety (0.72.4): 97 | - FBLazyVector (= 0.72.4) 98 | - RCTRequired (= 0.72.4) 99 | - React-Core (= 0.72.4) 100 | - React (0.72.4): 101 | - React-Core (= 0.72.4) 102 | - React-Core/DevSupport (= 0.72.4) 103 | - React-Core/RCTWebSocket (= 0.72.4) 104 | - React-RCTActionSheet (= 0.72.4) 105 | - React-RCTAnimation (= 0.72.4) 106 | - React-RCTBlob (= 0.72.4) 107 | - React-RCTImage (= 0.72.4) 108 | - React-RCTLinking (= 0.72.4) 109 | - React-RCTNetwork (= 0.72.4) 110 | - React-RCTSettings (= 0.72.4) 111 | - React-RCTText (= 0.72.4) 112 | - React-RCTVibration (= 0.72.4) 113 | - React-callinvoker (0.72.4) 114 | - React-Codegen (0.72.4): 115 | - DoubleConversion 116 | - FBReactNativeSpec 117 | - glog 118 | - hermes-engine 119 | - RCT-Folly 120 | - RCTRequired 121 | - RCTTypeSafety 122 | - React-Core 123 | - React-jsi 124 | - React-jsiexecutor 125 | - React-NativeModulesApple 126 | - React-rncore 127 | - ReactCommon/turbomodule/bridging 128 | - ReactCommon/turbomodule/core 129 | - React-Core (0.72.4): 130 | - glog 131 | - hermes-engine 132 | - RCT-Folly (= 2021.07.22.00) 133 | - React-Core/Default (= 0.72.4) 134 | - React-cxxreact 135 | - React-hermes 136 | - React-jsi 137 | - React-jsiexecutor 138 | - React-perflogger 139 | - React-runtimeexecutor 140 | - React-utils 141 | - SocketRocket (= 0.6.1) 142 | - Yoga 143 | - React-Core/CoreModulesHeaders (0.72.4): 144 | - glog 145 | - hermes-engine 146 | - RCT-Folly (= 2021.07.22.00) 147 | - React-Core/Default 148 | - React-cxxreact 149 | - React-hermes 150 | - React-jsi 151 | - React-jsiexecutor 152 | - React-perflogger 153 | - React-runtimeexecutor 154 | - React-utils 155 | - SocketRocket (= 0.6.1) 156 | - Yoga 157 | - React-Core/Default (0.72.4): 158 | - glog 159 | - hermes-engine 160 | - RCT-Folly (= 2021.07.22.00) 161 | - React-cxxreact 162 | - React-hermes 163 | - React-jsi 164 | - React-jsiexecutor 165 | - React-perflogger 166 | - React-runtimeexecutor 167 | - React-utils 168 | - SocketRocket (= 0.6.1) 169 | - Yoga 170 | - React-Core/DevSupport (0.72.4): 171 | - glog 172 | - hermes-engine 173 | - RCT-Folly (= 2021.07.22.00) 174 | - React-Core/Default (= 0.72.4) 175 | - React-Core/RCTWebSocket (= 0.72.4) 176 | - React-cxxreact 177 | - React-hermes 178 | - React-jsi 179 | - React-jsiexecutor 180 | - React-jsinspector (= 0.72.4) 181 | - React-perflogger 182 | - React-runtimeexecutor 183 | - React-utils 184 | - SocketRocket (= 0.6.1) 185 | - Yoga 186 | - React-Core/RCTActionSheetHeaders (0.72.4): 187 | - glog 188 | - hermes-engine 189 | - RCT-Folly (= 2021.07.22.00) 190 | - React-Core/Default 191 | - React-cxxreact 192 | - React-hermes 193 | - React-jsi 194 | - React-jsiexecutor 195 | - React-perflogger 196 | - React-runtimeexecutor 197 | - React-utils 198 | - SocketRocket (= 0.6.1) 199 | - Yoga 200 | - React-Core/RCTAnimationHeaders (0.72.4): 201 | - glog 202 | - hermes-engine 203 | - RCT-Folly (= 2021.07.22.00) 204 | - React-Core/Default 205 | - React-cxxreact 206 | - React-hermes 207 | - React-jsi 208 | - React-jsiexecutor 209 | - React-perflogger 210 | - React-runtimeexecutor 211 | - React-utils 212 | - SocketRocket (= 0.6.1) 213 | - Yoga 214 | - React-Core/RCTBlobHeaders (0.72.4): 215 | - glog 216 | - hermes-engine 217 | - RCT-Folly (= 2021.07.22.00) 218 | - React-Core/Default 219 | - React-cxxreact 220 | - React-hermes 221 | - React-jsi 222 | - React-jsiexecutor 223 | - React-perflogger 224 | - React-runtimeexecutor 225 | - React-utils 226 | - SocketRocket (= 0.6.1) 227 | - Yoga 228 | - React-Core/RCTImageHeaders (0.72.4): 229 | - glog 230 | - hermes-engine 231 | - RCT-Folly (= 2021.07.22.00) 232 | - React-Core/Default 233 | - React-cxxreact 234 | - React-hermes 235 | - React-jsi 236 | - React-jsiexecutor 237 | - React-perflogger 238 | - React-runtimeexecutor 239 | - React-utils 240 | - SocketRocket (= 0.6.1) 241 | - Yoga 242 | - React-Core/RCTLinkingHeaders (0.72.4): 243 | - glog 244 | - hermes-engine 245 | - RCT-Folly (= 2021.07.22.00) 246 | - React-Core/Default 247 | - React-cxxreact 248 | - React-hermes 249 | - React-jsi 250 | - React-jsiexecutor 251 | - React-perflogger 252 | - React-runtimeexecutor 253 | - React-utils 254 | - SocketRocket (= 0.6.1) 255 | - Yoga 256 | - React-Core/RCTNetworkHeaders (0.72.4): 257 | - glog 258 | - hermes-engine 259 | - RCT-Folly (= 2021.07.22.00) 260 | - React-Core/Default 261 | - React-cxxreact 262 | - React-hermes 263 | - React-jsi 264 | - React-jsiexecutor 265 | - React-perflogger 266 | - React-runtimeexecutor 267 | - React-utils 268 | - SocketRocket (= 0.6.1) 269 | - Yoga 270 | - React-Core/RCTSettingsHeaders (0.72.4): 271 | - glog 272 | - hermes-engine 273 | - RCT-Folly (= 2021.07.22.00) 274 | - React-Core/Default 275 | - React-cxxreact 276 | - React-hermes 277 | - React-jsi 278 | - React-jsiexecutor 279 | - React-perflogger 280 | - React-runtimeexecutor 281 | - React-utils 282 | - SocketRocket (= 0.6.1) 283 | - Yoga 284 | - React-Core/RCTTextHeaders (0.72.4): 285 | - glog 286 | - hermes-engine 287 | - RCT-Folly (= 2021.07.22.00) 288 | - React-Core/Default 289 | - React-cxxreact 290 | - React-hermes 291 | - React-jsi 292 | - React-jsiexecutor 293 | - React-perflogger 294 | - React-runtimeexecutor 295 | - React-utils 296 | - SocketRocket (= 0.6.1) 297 | - Yoga 298 | - React-Core/RCTVibrationHeaders (0.72.4): 299 | - glog 300 | - hermes-engine 301 | - RCT-Folly (= 2021.07.22.00) 302 | - React-Core/Default 303 | - React-cxxreact 304 | - React-hermes 305 | - React-jsi 306 | - React-jsiexecutor 307 | - React-perflogger 308 | - React-runtimeexecutor 309 | - React-utils 310 | - SocketRocket (= 0.6.1) 311 | - Yoga 312 | - React-Core/RCTWebSocket (0.72.4): 313 | - glog 314 | - hermes-engine 315 | - RCT-Folly (= 2021.07.22.00) 316 | - React-Core/Default (= 0.72.4) 317 | - React-cxxreact 318 | - React-hermes 319 | - React-jsi 320 | - React-jsiexecutor 321 | - React-perflogger 322 | - React-runtimeexecutor 323 | - React-utils 324 | - SocketRocket (= 0.6.1) 325 | - Yoga 326 | - React-CoreModules (0.72.4): 327 | - RCT-Folly (= 2021.07.22.00) 328 | - RCTTypeSafety (= 0.72.4) 329 | - React-Codegen (= 0.72.4) 330 | - React-Core/CoreModulesHeaders (= 0.72.4) 331 | - React-jsi (= 0.72.4) 332 | - React-RCTBlob 333 | - React-RCTImage (= 0.72.4) 334 | - ReactCommon/turbomodule/core (= 0.72.4) 335 | - SocketRocket (= 0.6.1) 336 | - React-cxxreact (0.72.4): 337 | - boost (= 1.76.0) 338 | - DoubleConversion 339 | - glog 340 | - hermes-engine 341 | - RCT-Folly (= 2021.07.22.00) 342 | - React-callinvoker (= 0.72.4) 343 | - React-debug (= 0.72.4) 344 | - React-jsi (= 0.72.4) 345 | - React-jsinspector (= 0.72.4) 346 | - React-logger (= 0.72.4) 347 | - React-perflogger (= 0.72.4) 348 | - React-runtimeexecutor (= 0.72.4) 349 | - React-debug (0.72.4) 350 | - React-hermes (0.72.4): 351 | - DoubleConversion 352 | - glog 353 | - hermes-engine 354 | - RCT-Folly (= 2021.07.22.00) 355 | - RCT-Folly/Futures (= 2021.07.22.00) 356 | - React-cxxreact (= 0.72.4) 357 | - React-jsi 358 | - React-jsiexecutor (= 0.72.4) 359 | - React-jsinspector (= 0.72.4) 360 | - React-perflogger (= 0.72.4) 361 | - React-jsi (0.72.4): 362 | - boost (= 1.76.0) 363 | - DoubleConversion 364 | - glog 365 | - hermes-engine 366 | - RCT-Folly (= 2021.07.22.00) 367 | - React-jsiexecutor (0.72.4): 368 | - DoubleConversion 369 | - glog 370 | - hermes-engine 371 | - RCT-Folly (= 2021.07.22.00) 372 | - React-cxxreact (= 0.72.4) 373 | - React-jsi (= 0.72.4) 374 | - React-perflogger (= 0.72.4) 375 | - React-jsinspector (0.72.4) 376 | - React-logger (0.72.4): 377 | - glog 378 | - React-NativeModulesApple (0.72.4): 379 | - hermes-engine 380 | - React-callinvoker 381 | - React-Core 382 | - React-cxxreact 383 | - React-jsi 384 | - React-runtimeexecutor 385 | - ReactCommon/turbomodule/bridging 386 | - ReactCommon/turbomodule/core 387 | - React-perflogger (0.72.4) 388 | - React-RCTActionSheet (0.72.4): 389 | - React-Core/RCTActionSheetHeaders (= 0.72.4) 390 | - React-RCTAnimation (0.72.4): 391 | - RCT-Folly (= 2021.07.22.00) 392 | - RCTTypeSafety (= 0.72.4) 393 | - React-Codegen (= 0.72.4) 394 | - React-Core/RCTAnimationHeaders (= 0.72.4) 395 | - React-jsi (= 0.72.4) 396 | - ReactCommon/turbomodule/core (= 0.72.4) 397 | - React-RCTAppDelegate (0.72.4): 398 | - RCT-Folly 399 | - RCTRequired 400 | - RCTTypeSafety 401 | - React-Core 402 | - React-CoreModules 403 | - React-hermes 404 | - React-NativeModulesApple 405 | - React-RCTImage 406 | - React-RCTNetwork 407 | - React-runtimescheduler 408 | - ReactCommon/turbomodule/core 409 | - React-RCTBlob (0.72.4): 410 | - hermes-engine 411 | - RCT-Folly (= 2021.07.22.00) 412 | - React-Codegen (= 0.72.4) 413 | - React-Core/RCTBlobHeaders (= 0.72.4) 414 | - React-Core/RCTWebSocket (= 0.72.4) 415 | - React-jsi (= 0.72.4) 416 | - React-RCTNetwork (= 0.72.4) 417 | - ReactCommon/turbomodule/core (= 0.72.4) 418 | - React-RCTImage (0.72.4): 419 | - RCT-Folly (= 2021.07.22.00) 420 | - RCTTypeSafety (= 0.72.4) 421 | - React-Codegen (= 0.72.4) 422 | - React-Core/RCTImageHeaders (= 0.72.4) 423 | - React-jsi (= 0.72.4) 424 | - React-RCTNetwork (= 0.72.4) 425 | - ReactCommon/turbomodule/core (= 0.72.4) 426 | - React-RCTLinking (0.72.4): 427 | - React-Codegen (= 0.72.4) 428 | - React-Core/RCTLinkingHeaders (= 0.72.4) 429 | - React-jsi (= 0.72.4) 430 | - ReactCommon/turbomodule/core (= 0.72.4) 431 | - React-RCTNetwork (0.72.4): 432 | - RCT-Folly (= 2021.07.22.00) 433 | - RCTTypeSafety (= 0.72.4) 434 | - React-Codegen (= 0.72.4) 435 | - React-Core/RCTNetworkHeaders (= 0.72.4) 436 | - React-jsi (= 0.72.4) 437 | - ReactCommon/turbomodule/core (= 0.72.4) 438 | - React-RCTSettings (0.72.4): 439 | - RCT-Folly (= 2021.07.22.00) 440 | - RCTTypeSafety (= 0.72.4) 441 | - React-Codegen (= 0.72.4) 442 | - React-Core/RCTSettingsHeaders (= 0.72.4) 443 | - React-jsi (= 0.72.4) 444 | - ReactCommon/turbomodule/core (= 0.72.4) 445 | - React-RCTText (0.72.4): 446 | - React-Core/RCTTextHeaders (= 0.72.4) 447 | - React-RCTVibration (0.72.4): 448 | - RCT-Folly (= 2021.07.22.00) 449 | - React-Codegen (= 0.72.4) 450 | - React-Core/RCTVibrationHeaders (= 0.72.4) 451 | - React-jsi (= 0.72.4) 452 | - ReactCommon/turbomodule/core (= 0.72.4) 453 | - React-rncore (0.72.4) 454 | - React-runtimeexecutor (0.72.4): 455 | - React-jsi (= 0.72.4) 456 | - React-runtimescheduler (0.72.4): 457 | - glog 458 | - hermes-engine 459 | - RCT-Folly (= 2021.07.22.00) 460 | - React-callinvoker 461 | - React-debug 462 | - React-jsi 463 | - React-runtimeexecutor 464 | - React-utils (0.72.4): 465 | - glog 466 | - RCT-Folly (= 2021.07.22.00) 467 | - React-debug 468 | - ReactCommon/turbomodule/bridging (0.72.4): 469 | - DoubleConversion 470 | - glog 471 | - hermes-engine 472 | - RCT-Folly (= 2021.07.22.00) 473 | - React-callinvoker (= 0.72.4) 474 | - React-cxxreact (= 0.72.4) 475 | - React-jsi (= 0.72.4) 476 | - React-logger (= 0.72.4) 477 | - React-perflogger (= 0.72.4) 478 | - ReactCommon/turbomodule/core (0.72.4): 479 | - DoubleConversion 480 | - glog 481 | - hermes-engine 482 | - RCT-Folly (= 2021.07.22.00) 483 | - React-callinvoker (= 0.72.4) 484 | - React-cxxreact (= 0.72.4) 485 | - React-jsi (= 0.72.4) 486 | - React-logger (= 0.72.4) 487 | - React-perflogger (= 0.72.4) 488 | - RNScreens (3.24.0): 489 | - React-Core 490 | - React-RCTImage 491 | - SocketRocket (0.6.1) 492 | - Yoga (1.14.0) 493 | - YogaKit (1.18.1): 494 | - Yoga (~> 1.14) 495 | 496 | DEPENDENCIES: 497 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) 498 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 499 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 500 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 501 | - Flipper (= 0.182.0) 502 | - Flipper-Boost-iOSX (= 1.76.0.1.11) 503 | - Flipper-DoubleConversion (= 3.2.0.1) 504 | - Flipper-Fmt (= 7.1.7) 505 | - Flipper-Folly (= 2.6.10) 506 | - Flipper-Glog (= 0.5.0.5) 507 | - Flipper-PeerTalk (= 0.0.4) 508 | - FlipperKit (= 0.182.0) 509 | - FlipperKit/Core (= 0.182.0) 510 | - FlipperKit/CppBridge (= 0.182.0) 511 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.182.0) 512 | - FlipperKit/FBDefines (= 0.182.0) 513 | - FlipperKit/FKPortForwarding (= 0.182.0) 514 | - FlipperKit/FlipperKitHighlightOverlay (= 0.182.0) 515 | - FlipperKit/FlipperKitLayoutPlugin (= 0.182.0) 516 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.182.0) 517 | - FlipperKit/FlipperKitNetworkPlugin (= 0.182.0) 518 | - FlipperKit/FlipperKitReactPlugin (= 0.182.0) 519 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.182.0) 520 | - FlipperKit/SKIOSNetworkPlugin (= 0.182.0) 521 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 522 | - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) 523 | - libevent (~> 2.1.12) 524 | - OpenSSL-Universal (= 1.1.1100) 525 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 526 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 527 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 528 | - React (from `../node_modules/react-native/`) 529 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 530 | - React-Codegen (from `build/generated/ios`) 531 | - React-Core (from `../node_modules/react-native/`) 532 | - React-Core/DevSupport (from `../node_modules/react-native/`) 533 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 534 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 535 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 536 | - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`) 537 | - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`) 538 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 539 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 540 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 541 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`) 542 | - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`) 543 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 544 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 545 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 546 | - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`) 547 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 548 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 549 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 550 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 551 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 552 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 553 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 554 | - React-rncore (from `../node_modules/react-native/ReactCommon`) 555 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 556 | - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`) 557 | - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) 558 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 559 | - RNScreens (from `../node_modules/react-native-screens`) 560 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 561 | 562 | SPEC REPOS: 563 | trunk: 564 | - CocoaAsyncSocket 565 | - Flipper 566 | - Flipper-Boost-iOSX 567 | - Flipper-DoubleConversion 568 | - Flipper-Fmt 569 | - Flipper-Folly 570 | - Flipper-Glog 571 | - Flipper-PeerTalk 572 | - FlipperKit 573 | - fmt 574 | - libevent 575 | - OpenSSL-Universal 576 | - SocketRocket 577 | - YogaKit 578 | 579 | EXTERNAL SOURCES: 580 | boost: 581 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" 582 | DoubleConversion: 583 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 584 | FBLazyVector: 585 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 586 | FBReactNativeSpec: 587 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 588 | glog: 589 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 590 | hermes-engine: 591 | :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" 592 | :tag: hermes-2023-08-07-RNv0.72.4-813b2def12bc9df02654b3e3653ae4a68d0572e0 593 | RCT-Folly: 594 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 595 | RCTRequired: 596 | :path: "../node_modules/react-native/Libraries/RCTRequired" 597 | RCTTypeSafety: 598 | :path: "../node_modules/react-native/Libraries/TypeSafety" 599 | React: 600 | :path: "../node_modules/react-native/" 601 | React-callinvoker: 602 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 603 | React-Codegen: 604 | :path: build/generated/ios 605 | React-Core: 606 | :path: "../node_modules/react-native/" 607 | React-CoreModules: 608 | :path: "../node_modules/react-native/React/CoreModules" 609 | React-cxxreact: 610 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 611 | React-debug: 612 | :path: "../node_modules/react-native/ReactCommon/react/debug" 613 | React-hermes: 614 | :path: "../node_modules/react-native/ReactCommon/hermes" 615 | React-jsi: 616 | :path: "../node_modules/react-native/ReactCommon/jsi" 617 | React-jsiexecutor: 618 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 619 | React-jsinspector: 620 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 621 | React-logger: 622 | :path: "../node_modules/react-native/ReactCommon/logger" 623 | React-NativeModulesApple: 624 | :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios" 625 | React-perflogger: 626 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 627 | React-RCTActionSheet: 628 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 629 | React-RCTAnimation: 630 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 631 | React-RCTAppDelegate: 632 | :path: "../node_modules/react-native/Libraries/AppDelegate" 633 | React-RCTBlob: 634 | :path: "../node_modules/react-native/Libraries/Blob" 635 | React-RCTImage: 636 | :path: "../node_modules/react-native/Libraries/Image" 637 | React-RCTLinking: 638 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 639 | React-RCTNetwork: 640 | :path: "../node_modules/react-native/Libraries/Network" 641 | React-RCTSettings: 642 | :path: "../node_modules/react-native/Libraries/Settings" 643 | React-RCTText: 644 | :path: "../node_modules/react-native/Libraries/Text" 645 | React-RCTVibration: 646 | :path: "../node_modules/react-native/Libraries/Vibration" 647 | React-rncore: 648 | :path: "../node_modules/react-native/ReactCommon" 649 | React-runtimeexecutor: 650 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 651 | React-runtimescheduler: 652 | :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler" 653 | React-utils: 654 | :path: "../node_modules/react-native/ReactCommon/react/utils" 655 | ReactCommon: 656 | :path: "../node_modules/react-native/ReactCommon" 657 | RNScreens: 658 | :path: "../node_modules/react-native-screens" 659 | Yoga: 660 | :path: "../node_modules/react-native/ReactCommon/yoga" 661 | 662 | SPEC CHECKSUMS: 663 | boost: 57d2868c099736d80fcd648bf211b4431e51a558 664 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 665 | DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 666 | FBLazyVector: 5d4a3b7f411219a45a6d952f77d2c0a6c9989da5 667 | FBReactNativeSpec: 3fc2d478e1c4b08276f9dd9128f80ec6d5d85c1f 668 | Flipper: 6edb735e6c3e332975d1b17956bcc584eccf5818 669 | Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c 670 | Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30 671 | Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b 672 | Flipper-Folly: 584845625005ff068a6ebf41f857f468decd26b3 673 | Flipper-Glog: 70c50ce58ddaf67dc35180db05f191692570f446 674 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 675 | FlipperKit: 2efad7007d6745a3f95e4034d547be637f89d3f6 676 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 677 | glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b 678 | hermes-engine: 81191603c4eaa01f5e4ae5737a9efcf64756c7b2 679 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 680 | OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c 681 | RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 682 | RCTRequired: c0569ecc035894e4a68baecb30fe6a7ea6e399f9 683 | RCTTypeSafety: e90354072c21236e0bcf1699011e39acd25fea2f 684 | React: a1be3c6dc0a6e949ccd3e659781aa47bbae1868f 685 | React-callinvoker: 1020b33f6cb1a1824f9ca2a86609fbce2a73c6ed 686 | React-Codegen: a0a26badf098d4a779acda922caf74f6ecabed28 687 | React-Core: 52075b80f10c26f62219d7b5d13d7d8089f027b3 688 | React-CoreModules: 21abab85d7ad9038ce2b1c33d39e3baaf7dc9244 689 | React-cxxreact: 4ad1cc861e32fb533dad6ff7a4ea25680fa1c994 690 | React-debug: 17366a3d5c5d2f5fc04f09101a4af38cb42b54ae 691 | React-hermes: 37377d0a56aa0cf55c65248271866ce3268cde3f 692 | React-jsi: 6de8b0ccc6b765b58e4eee9ee38049dbeaf5c221 693 | React-jsiexecutor: c7f826e40fa9cab5d37cab6130b1af237332b594 694 | React-jsinspector: aaed4cf551c4a1c98092436518c2d267b13a673f 695 | React-logger: da1ebe05ae06eb6db4b162202faeafac4b435e77 696 | React-NativeModulesApple: edb5ace14f73f4969df6e7b1f3e41bef0012740f 697 | React-perflogger: 496a1a3dc6737f964107cb3ddae7f9e265ddda58 698 | React-RCTActionSheet: 02904b932b50e680f4e26e7a686b33ebf7ef3c00 699 | React-RCTAnimation: 88feaf0a85648fb8fd497ce749829774910276d6 700 | React-RCTAppDelegate: 5792ac0f0feccb584765fdd7aa81ea320c4d9b0b 701 | React-RCTBlob: 0dbc9e2a13d241b37d46b53e54630cbad1f0e141 702 | React-RCTImage: b111645ab901f8e59fc68fbe31f5731bdbeef087 703 | React-RCTLinking: 3d719727b4c098aad3588aa3559361ee0579f5de 704 | React-RCTNetwork: b44d3580be05d74556ba4efbf53570f17e38f734 705 | React-RCTSettings: c0c54b330442c29874cd4dae6e94190dc11a6f6f 706 | React-RCTText: 9b9f5589d9b649d7246c3f336e116496df28cfe6 707 | React-RCTVibration: 691c67f3beaf1d084ceed5eb5c1dddd9afa8591e 708 | React-rncore: 142268f6c92e296dc079aadda3fade778562f9e4 709 | React-runtimeexecutor: d465ba0c47ef3ed8281143f59605cacc2244d5c7 710 | React-runtimescheduler: 4941cc1b3cf08b792fbf666342c9fc95f1969035 711 | React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a 712 | ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d 713 | RNScreens: b21dc57dfa2b710c30ec600786a3fc223b1b92e7 714 | SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 715 | Yoga: 3efc43e0d48686ce2e8c60f99d4e6bd349aff981 716 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 717 | 718 | PODFILE CHECKSUM: 20727f8c8ba4cd0222e7ac35a8cb9054de2e61a1 719 | 720 | COCOAPODS: 1.12.1 721 | -------------------------------------------------------------------------------- /example/ios/ZViewExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ZViewExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ZViewExampleTests.m */; }; 11 | 0C80B921A6F3F58F76C31292 /* libPods-ZViewExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-ZViewExample.a */; }; 12 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 15 | 7699B88040F8A987B510C191 /* libPods-ZViewExample-ZViewExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ZViewExample-ZViewExampleTests.a */; }; 16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 25 | remoteInfo = ZViewExample; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 00E356EE1AD99517003FC87E /* ZViewExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZViewExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 00E356F21AD99517003FC87E /* ZViewExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZViewExampleTests.m; sourceTree = ""; }; 33 | 13B07F961A680F5B00A75B9A /* ZViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ZViewExample/AppDelegate.h; sourceTree = ""; }; 35 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = ZViewExample/AppDelegate.mm; sourceTree = ""; }; 36 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ZViewExample/Images.xcassets; sourceTree = ""; }; 37 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ZViewExample/Info.plist; sourceTree = ""; }; 38 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ZViewExample/main.m; sourceTree = ""; }; 39 | 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ZViewExample-ZViewExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ZViewExample-ZViewExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 3B4392A12AC88292D35C810B /* Pods-ZViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZViewExample.debug.xcconfig"; path = "Target Support Files/Pods-ZViewExample/Pods-ZViewExample.debug.xcconfig"; sourceTree = ""; }; 41 | 5709B34CF0A7D63546082F79 /* Pods-ZViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZViewExample.release.xcconfig"; path = "Target Support Files/Pods-ZViewExample/Pods-ZViewExample.release.xcconfig"; sourceTree = ""; }; 42 | 5B7EB9410499542E8C5724F5 /* Pods-ZViewExample-ZViewExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZViewExample-ZViewExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests.debug.xcconfig"; sourceTree = ""; }; 43 | 5DCACB8F33CDC322A6C60F78 /* libPods-ZViewExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ZViewExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ZViewExample/LaunchScreen.storyboard; sourceTree = ""; }; 45 | 89C6BE57DB24E9ADA2F236DE /* Pods-ZViewExample-ZViewExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ZViewExample-ZViewExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests.release.xcconfig"; sourceTree = ""; }; 46 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 7699B88040F8A987B510C191 /* libPods-ZViewExample-ZViewExampleTests.a in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 0C80B921A6F3F58F76C31292 /* libPods-ZViewExample.a in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 00E356EF1AD99517003FC87E /* ZViewExampleTests */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 00E356F21AD99517003FC87E /* ZViewExampleTests.m */, 73 | 00E356F01AD99517003FC87E /* Supporting Files */, 74 | ); 75 | path = ZViewExampleTests; 76 | sourceTree = ""; 77 | }; 78 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 00E356F11AD99517003FC87E /* Info.plist */, 82 | ); 83 | name = "Supporting Files"; 84 | sourceTree = ""; 85 | }; 86 | 13B07FAE1A68108700A75B9A /* ZViewExample */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 90 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */, 91 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 92 | 13B07FB61A68108700A75B9A /* Info.plist */, 93 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 94 | 13B07FB71A68108700A75B9A /* main.m */, 95 | ); 96 | name = ZViewExample; 97 | sourceTree = ""; 98 | }; 99 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 103 | 5DCACB8F33CDC322A6C60F78 /* libPods-ZViewExample.a */, 104 | 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ZViewExample-ZViewExampleTests.a */, 105 | ); 106 | name = Frameworks; 107 | sourceTree = ""; 108 | }; 109 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | ); 113 | name = Libraries; 114 | sourceTree = ""; 115 | }; 116 | 83CBB9F61A601CBA00E9B192 = { 117 | isa = PBXGroup; 118 | children = ( 119 | 13B07FAE1A68108700A75B9A /* ZViewExample */, 120 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 121 | 00E356EF1AD99517003FC87E /* ZViewExampleTests */, 122 | 83CBBA001A601CBA00E9B192 /* Products */, 123 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 124 | BBD78D7AC51CEA395F1C20DB /* Pods */, 125 | ); 126 | indentWidth = 2; 127 | sourceTree = ""; 128 | tabWidth = 2; 129 | usesTabs = 0; 130 | }; 131 | 83CBBA001A601CBA00E9B192 /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 13B07F961A680F5B00A75B9A /* ZViewExample.app */, 135 | 00E356EE1AD99517003FC87E /* ZViewExampleTests.xctest */, 136 | ); 137 | name = Products; 138 | sourceTree = ""; 139 | }; 140 | BBD78D7AC51CEA395F1C20DB /* Pods */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 3B4392A12AC88292D35C810B /* Pods-ZViewExample.debug.xcconfig */, 144 | 5709B34CF0A7D63546082F79 /* Pods-ZViewExample.release.xcconfig */, 145 | 5B7EB9410499542E8C5724F5 /* Pods-ZViewExample-ZViewExampleTests.debug.xcconfig */, 146 | 89C6BE57DB24E9ADA2F236DE /* Pods-ZViewExample-ZViewExampleTests.release.xcconfig */, 147 | ); 148 | path = Pods; 149 | sourceTree = ""; 150 | }; 151 | /* End PBXGroup section */ 152 | 153 | /* Begin PBXNativeTarget section */ 154 | 00E356ED1AD99517003FC87E /* ZViewExampleTests */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ZViewExampleTests" */; 157 | buildPhases = ( 158 | A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */, 159 | 00E356EA1AD99517003FC87E /* Sources */, 160 | 00E356EB1AD99517003FC87E /* Frameworks */, 161 | 00E356EC1AD99517003FC87E /* Resources */, 162 | C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */, 163 | F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 169 | ); 170 | name = ZViewExampleTests; 171 | productName = ZViewExampleTests; 172 | productReference = 00E356EE1AD99517003FC87E /* ZViewExampleTests.xctest */; 173 | productType = "com.apple.product-type.bundle.unit-test"; 174 | }; 175 | 13B07F861A680F5B00A75B9A /* ZViewExample */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ZViewExample" */; 178 | buildPhases = ( 179 | C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */, 180 | FD10A7F022414F080027D42C /* Start Packager */, 181 | 13B07F871A680F5B00A75B9A /* Sources */, 182 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 183 | 13B07F8E1A680F5B00A75B9A /* Resources */, 184 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 185 | 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */, 186 | E235C05ADACE081382539298 /* [CP] Copy Pods Resources */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | ); 192 | name = ZViewExample; 193 | productName = ZViewExample; 194 | productReference = 13B07F961A680F5B00A75B9A /* ZViewExample.app */; 195 | productType = "com.apple.product-type.application"; 196 | }; 197 | /* End PBXNativeTarget section */ 198 | 199 | /* Begin PBXProject section */ 200 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 201 | isa = PBXProject; 202 | attributes = { 203 | LastUpgradeCheck = 1210; 204 | TargetAttributes = { 205 | 00E356ED1AD99517003FC87E = { 206 | CreatedOnToolsVersion = 6.2; 207 | TestTargetID = 13B07F861A680F5B00A75B9A; 208 | }; 209 | 13B07F861A680F5B00A75B9A = { 210 | LastSwiftMigration = 1120; 211 | }; 212 | }; 213 | }; 214 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ZViewExample" */; 215 | compatibilityVersion = "Xcode 12.0"; 216 | developmentRegion = en; 217 | hasScannedForEncodings = 0; 218 | knownRegions = ( 219 | en, 220 | Base, 221 | ); 222 | mainGroup = 83CBB9F61A601CBA00E9B192; 223 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 224 | projectDirPath = ""; 225 | projectRoot = ""; 226 | targets = ( 227 | 13B07F861A680F5B00A75B9A /* ZViewExample */, 228 | 00E356ED1AD99517003FC87E /* ZViewExampleTests */, 229 | ); 230 | }; 231 | /* End PBXProject section */ 232 | 233 | /* Begin PBXResourcesBuildPhase section */ 234 | 00E356EC1AD99517003FC87E /* Resources */ = { 235 | isa = PBXResourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | }; 241 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 242 | isa = PBXResourcesBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 246 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXResourcesBuildPhase section */ 251 | 252 | /* Begin PBXShellScriptBuildPhase section */ 253 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 254 | isa = PBXShellScriptBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | ); 258 | inputPaths = ( 259 | "$(SRCROOT)/.xcode.env.local", 260 | "$(SRCROOT)/.xcode.env", 261 | ); 262 | name = "Bundle React Native code and images"; 263 | outputPaths = ( 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | shellPath = /bin/sh; 267 | shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; 268 | }; 269 | 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { 270 | isa = PBXShellScriptBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | inputFileListPaths = ( 275 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample/Pods-ZViewExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", 276 | ); 277 | name = "[CP] Embed Pods Frameworks"; 278 | outputFileListPaths = ( 279 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample/Pods-ZViewExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ZViewExample/Pods-ZViewExample-frameworks.sh\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = { 287 | isa = PBXShellScriptBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | ); 291 | inputFileListPaths = ( 292 | ); 293 | inputPaths = ( 294 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 295 | "${PODS_ROOT}/Manifest.lock", 296 | ); 297 | name = "[CP] Check Pods Manifest.lock"; 298 | outputFileListPaths = ( 299 | ); 300 | outputPaths = ( 301 | "$(DERIVED_FILE_DIR)/Pods-ZViewExample-ZViewExampleTests-checkManifestLockResult.txt", 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | shellPath = /bin/sh; 305 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 306 | showEnvVarsInLog = 0; 307 | }; 308 | C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = { 309 | isa = PBXShellScriptBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | inputFileListPaths = ( 314 | ); 315 | inputPaths = ( 316 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 317 | "${PODS_ROOT}/Manifest.lock", 318 | ); 319 | name = "[CP] Check Pods Manifest.lock"; 320 | outputFileListPaths = ( 321 | ); 322 | outputPaths = ( 323 | "$(DERIVED_FILE_DIR)/Pods-ZViewExample-checkManifestLockResult.txt", 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | shellPath = /bin/sh; 327 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 328 | showEnvVarsInLog = 0; 329 | }; 330 | C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */ = { 331 | isa = PBXShellScriptBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | ); 335 | inputFileListPaths = ( 336 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 337 | ); 338 | name = "[CP] Embed Pods Frameworks"; 339 | outputFileListPaths = ( 340 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | shellPath = /bin/sh; 344 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests-frameworks.sh\"\n"; 345 | showEnvVarsInLog = 0; 346 | }; 347 | E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = { 348 | isa = PBXShellScriptBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | ); 352 | inputFileListPaths = ( 353 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample/Pods-ZViewExample-resources-${CONFIGURATION}-input-files.xcfilelist", 354 | ); 355 | name = "[CP] Copy Pods Resources"; 356 | outputFileListPaths = ( 357 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample/Pods-ZViewExample-resources-${CONFIGURATION}-output-files.xcfilelist", 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | shellPath = /bin/sh; 361 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ZViewExample/Pods-ZViewExample-resources.sh\"\n"; 362 | showEnvVarsInLog = 0; 363 | }; 364 | F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */ = { 365 | isa = PBXShellScriptBuildPhase; 366 | buildActionMask = 2147483647; 367 | files = ( 368 | ); 369 | inputFileListPaths = ( 370 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", 371 | ); 372 | name = "[CP] Copy Pods Resources"; 373 | outputFileListPaths = ( 374 | "${PODS_ROOT}/Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | shellPath = /bin/sh; 378 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ZViewExample-ZViewExampleTests/Pods-ZViewExample-ZViewExampleTests-resources.sh\"\n"; 379 | showEnvVarsInLog = 0; 380 | }; 381 | FD10A7F022414F080027D42C /* Start Packager */ = { 382 | isa = PBXShellScriptBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | ); 386 | inputFileListPaths = ( 387 | ); 388 | inputPaths = ( 389 | ); 390 | name = "Start Packager"; 391 | outputFileListPaths = ( 392 | ); 393 | outputPaths = ( 394 | ); 395 | runOnlyForDeploymentPostprocessing = 0; 396 | shellPath = /bin/sh; 397 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 398 | showEnvVarsInLog = 0; 399 | }; 400 | /* End PBXShellScriptBuildPhase section */ 401 | 402 | /* Begin PBXSourcesBuildPhase section */ 403 | 00E356EA1AD99517003FC87E /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | 00E356F31AD99517003FC87E /* ZViewExampleTests.m in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | 13B07F871A680F5B00A75B9A /* Sources */ = { 412 | isa = PBXSourcesBuildPhase; 413 | buildActionMask = 2147483647; 414 | files = ( 415 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, 416 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 417 | ); 418 | runOnlyForDeploymentPostprocessing = 0; 419 | }; 420 | /* End PBXSourcesBuildPhase section */ 421 | 422 | /* Begin PBXTargetDependency section */ 423 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 424 | isa = PBXTargetDependency; 425 | target = 13B07F861A680F5B00A75B9A /* ZViewExample */; 426 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 427 | }; 428 | /* End PBXTargetDependency section */ 429 | 430 | /* Begin XCBuildConfiguration section */ 431 | 00E356F61AD99517003FC87E /* Debug */ = { 432 | isa = XCBuildConfiguration; 433 | baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-ZViewExample-ZViewExampleTests.debug.xcconfig */; 434 | buildSettings = { 435 | BUNDLE_LOADER = "$(TEST_HOST)"; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | INFOPLIST_FILE = ZViewExampleTests/Info.plist; 441 | IPHONEOS_DEPLOYMENT_TARGET = 12.4; 442 | LD_RUNPATH_SEARCH_PATHS = ( 443 | "$(inherited)", 444 | "@executable_path/Frameworks", 445 | "@loader_path/Frameworks", 446 | ); 447 | OTHER_LDFLAGS = ( 448 | "-ObjC", 449 | "-lc++", 450 | "$(inherited)", 451 | ); 452 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZViewExample.app/ZViewExample"; 455 | }; 456 | name = Debug; 457 | }; 458 | 00E356F71AD99517003FC87E /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-ZViewExample-ZViewExampleTests.release.xcconfig */; 461 | buildSettings = { 462 | BUNDLE_LOADER = "$(TEST_HOST)"; 463 | COPY_PHASE_STRIP = NO; 464 | INFOPLIST_FILE = ZViewExampleTests/Info.plist; 465 | IPHONEOS_DEPLOYMENT_TARGET = 12.4; 466 | LD_RUNPATH_SEARCH_PATHS = ( 467 | "$(inherited)", 468 | "@executable_path/Frameworks", 469 | "@loader_path/Frameworks", 470 | ); 471 | OTHER_LDFLAGS = ( 472 | "-ObjC", 473 | "-lc++", 474 | "$(inherited)", 475 | ); 476 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 477 | PRODUCT_NAME = "$(TARGET_NAME)"; 478 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZViewExample.app/ZViewExample"; 479 | }; 480 | name = Release; 481 | }; 482 | 13B07F941A680F5B00A75B9A /* Debug */ = { 483 | isa = XCBuildConfiguration; 484 | baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-ZViewExample.debug.xcconfig */; 485 | buildSettings = { 486 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 487 | CLANG_ENABLE_MODULES = YES; 488 | CURRENT_PROJECT_VERSION = 1; 489 | ENABLE_BITCODE = NO; 490 | INFOPLIST_FILE = ZViewExample/Info.plist; 491 | LD_RUNPATH_SEARCH_PATHS = ( 492 | "$(inherited)", 493 | "@executable_path/Frameworks", 494 | ); 495 | MARKETING_VERSION = 1.0; 496 | OTHER_LDFLAGS = ( 497 | "$(inherited)", 498 | "-ObjC", 499 | "-lc++", 500 | ); 501 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 502 | PRODUCT_NAME = ZViewExample; 503 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 504 | SWIFT_VERSION = 5.0; 505 | VERSIONING_SYSTEM = "apple-generic"; 506 | }; 507 | name = Debug; 508 | }; 509 | 13B07F951A680F5B00A75B9A /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-ZViewExample.release.xcconfig */; 512 | buildSettings = { 513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 514 | CLANG_ENABLE_MODULES = YES; 515 | CURRENT_PROJECT_VERSION = 1; 516 | INFOPLIST_FILE = ZViewExample/Info.plist; 517 | LD_RUNPATH_SEARCH_PATHS = ( 518 | "$(inherited)", 519 | "@executable_path/Frameworks", 520 | ); 521 | MARKETING_VERSION = 1.0; 522 | OTHER_LDFLAGS = ( 523 | "$(inherited)", 524 | "-ObjC", 525 | "-lc++", 526 | ); 527 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 528 | PRODUCT_NAME = ZViewExample; 529 | SWIFT_VERSION = 5.0; 530 | VERSIONING_SYSTEM = "apple-generic"; 531 | }; 532 | name = Release; 533 | }; 534 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | buildSettings = { 537 | ALWAYS_SEARCH_USER_PATHS = NO; 538 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 539 | CLANG_CXX_LANGUAGE_STANDARD = "c++17"; 540 | CLANG_CXX_LIBRARY = "libc++"; 541 | CLANG_ENABLE_MODULES = YES; 542 | CLANG_ENABLE_OBJC_ARC = YES; 543 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 544 | CLANG_WARN_BOOL_CONVERSION = YES; 545 | CLANG_WARN_COMMA = YES; 546 | CLANG_WARN_CONSTANT_CONVERSION = YES; 547 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 548 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 549 | CLANG_WARN_EMPTY_BODY = YES; 550 | CLANG_WARN_ENUM_CONVERSION = YES; 551 | CLANG_WARN_INFINITE_RECURSION = YES; 552 | CLANG_WARN_INT_CONVERSION = YES; 553 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 554 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 555 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 556 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 557 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 558 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 559 | CLANG_WARN_STRICT_PROTOTYPES = YES; 560 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 561 | CLANG_WARN_UNREACHABLE_CODE = YES; 562 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 563 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 564 | COPY_PHASE_STRIP = NO; 565 | ENABLE_STRICT_OBJC_MSGSEND = YES; 566 | ENABLE_TESTABILITY = YES; 567 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; 568 | GCC_C_LANGUAGE_STANDARD = gnu99; 569 | GCC_DYNAMIC_NO_PIC = NO; 570 | GCC_NO_COMMON_BLOCKS = YES; 571 | GCC_OPTIMIZATION_LEVEL = 0; 572 | GCC_PREPROCESSOR_DEFINITIONS = ( 573 | "DEBUG=1", 574 | "$(inherited)", 575 | ); 576 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 577 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 578 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 579 | GCC_WARN_UNDECLARED_SELECTOR = YES; 580 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 581 | GCC_WARN_UNUSED_FUNCTION = YES; 582 | GCC_WARN_UNUSED_VARIABLE = YES; 583 | IPHONEOS_DEPLOYMENT_TARGET = 12.4; 584 | LD_RUNPATH_SEARCH_PATHS = ( 585 | /usr/lib/swift, 586 | "$(inherited)", 587 | ); 588 | LIBRARY_SEARCH_PATHS = ( 589 | "\"$(SDKROOT)/usr/lib/swift\"", 590 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 591 | "\"$(inherited)\"", 592 | ); 593 | MTL_ENABLE_DEBUG_INFO = YES; 594 | ONLY_ACTIVE_ARCH = YES; 595 | OTHER_CFLAGS = "$(inherited)"; 596 | OTHER_CPLUSPLUSFLAGS = ( 597 | "$(OTHER_CFLAGS)", 598 | "-DFOLLY_NO_CONFIG", 599 | "-DFOLLY_MOBILE=1", 600 | "-DFOLLY_USE_LIBCPP=1", 601 | ); 602 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; 603 | SDKROOT = iphoneos; 604 | }; 605 | name = Debug; 606 | }; 607 | 83CBBA211A601CBA00E9B192 /* Release */ = { 608 | isa = XCBuildConfiguration; 609 | buildSettings = { 610 | ALWAYS_SEARCH_USER_PATHS = NO; 611 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 612 | CLANG_CXX_LANGUAGE_STANDARD = "c++17"; 613 | CLANG_CXX_LIBRARY = "libc++"; 614 | CLANG_ENABLE_MODULES = YES; 615 | CLANG_ENABLE_OBJC_ARC = YES; 616 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 617 | CLANG_WARN_BOOL_CONVERSION = YES; 618 | CLANG_WARN_COMMA = YES; 619 | CLANG_WARN_CONSTANT_CONVERSION = YES; 620 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 621 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 622 | CLANG_WARN_EMPTY_BODY = YES; 623 | CLANG_WARN_ENUM_CONVERSION = YES; 624 | CLANG_WARN_INFINITE_RECURSION = YES; 625 | CLANG_WARN_INT_CONVERSION = YES; 626 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 627 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 628 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 629 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 630 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 631 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 632 | CLANG_WARN_STRICT_PROTOTYPES = YES; 633 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 634 | CLANG_WARN_UNREACHABLE_CODE = YES; 635 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 636 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 637 | COPY_PHASE_STRIP = YES; 638 | ENABLE_NS_ASSERTIONS = NO; 639 | ENABLE_STRICT_OBJC_MSGSEND = YES; 640 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; 641 | GCC_C_LANGUAGE_STANDARD = gnu99; 642 | GCC_NO_COMMON_BLOCKS = YES; 643 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 644 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 645 | GCC_WARN_UNDECLARED_SELECTOR = YES; 646 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 647 | GCC_WARN_UNUSED_FUNCTION = YES; 648 | GCC_WARN_UNUSED_VARIABLE = YES; 649 | IPHONEOS_DEPLOYMENT_TARGET = 12.4; 650 | LD_RUNPATH_SEARCH_PATHS = ( 651 | /usr/lib/swift, 652 | "$(inherited)", 653 | ); 654 | LIBRARY_SEARCH_PATHS = ( 655 | "\"$(SDKROOT)/usr/lib/swift\"", 656 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 657 | "\"$(inherited)\"", 658 | ); 659 | MTL_ENABLE_DEBUG_INFO = NO; 660 | OTHER_CFLAGS = "$(inherited)"; 661 | OTHER_CPLUSPLUSFLAGS = ( 662 | "$(OTHER_CFLAGS)", 663 | "-DFOLLY_NO_CONFIG", 664 | "-DFOLLY_MOBILE=1", 665 | "-DFOLLY_USE_LIBCPP=1", 666 | ); 667 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; 668 | SDKROOT = iphoneos; 669 | VALIDATE_PRODUCT = YES; 670 | }; 671 | name = Release; 672 | }; 673 | /* End XCBuildConfiguration section */ 674 | 675 | /* Begin XCConfigurationList section */ 676 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ZViewExampleTests" */ = { 677 | isa = XCConfigurationList; 678 | buildConfigurations = ( 679 | 00E356F61AD99517003FC87E /* Debug */, 680 | 00E356F71AD99517003FC87E /* Release */, 681 | ); 682 | defaultConfigurationIsVisible = 0; 683 | defaultConfigurationName = Release; 684 | }; 685 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ZViewExample" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | 13B07F941A680F5B00A75B9A /* Debug */, 689 | 13B07F951A680F5B00A75B9A /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ZViewExample" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | 83CBBA201A601CBA00E9B192 /* Debug */, 698 | 83CBBA211A601CBA00E9B192 /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | /* End XCConfigurationList section */ 704 | }; 705 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 706 | } 707 | --------------------------------------------------------------------------------