├── .gitignore ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── LICENSE ├── README.md ├── android ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── lklima │ └── video │ └── manager │ ├── RNVideoManagerModule.java │ └── RNVideoManagerPackage.java ├── example ├── .buckconfig ├── .gitattributes ├── .gitignore ├── App.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MainApplication.java │ │ │ │ ├── RNVideoManagerModule.java │ │ │ │ └── RNVideoManagerPackage.java │ │ │ └── res │ │ │ ├── drawable │ │ │ ├── splashscreen.xml │ │ │ └── splashscreen_image.png │ │ │ ├── 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 │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios │ ├── Podfile │ ├── Podfile.lock │ ├── Podfile.properties.json │ ├── example.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── example.xcscheme │ ├── example.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── example │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── SplashScreen.imageset │ │ │ ├── Contents.json │ │ │ └── splashscreen.png │ │ └── SplashScreenBackground.imageset │ │ │ ├── Contents.json │ │ │ └── background.png │ │ ├── Info.plist │ │ ├── SplashScreen.storyboard │ │ ├── Supporting │ │ └── Expo.plist │ │ └── main.m ├── metro.config.js ├── package.json ├── src │ └── Main │ │ ├── components │ │ └── PlayModal │ │ │ ├── index.js │ │ │ └── styles.js │ │ ├── index.js │ │ └── styles.js └── yarn.lock ├── index.ts ├── ios ├── RNVideoManager.h ├── RNVideoManager.m └── RNVideoManager.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ └── RNVideoManager.xcscheme ├── lib ├── RNVideoManager.ts └── index.ts ├── package.json ├── react-native-video-manager.podspec ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | *.hprof 33 | 34 | # node.js 35 | # 36 | node_modules/ 37 | npm-debug.log 38 | yarn-error.log 39 | 40 | # BUCK 41 | buck-out/ 42 | \.buckd/ 43 | *.keystore 44 | !debug.keystore 45 | 46 | # Bundle artifacts 47 | *.jsbundle 48 | 49 | # CocoaPods 50 | /ios/Pods/ 51 | 52 | # Expo 53 | .expo/ 54 | web-build/ 55 | dist/ 56 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | ## Development workflow 4 | 5 | ### Install dependencies 6 | 7 | Use yarn to install development dependencies. 8 | 9 | ```sh 10 | yarn 11 | ``` 12 | 13 | If you don't have expo-cli installed: 14 | 15 | ```sh 16 | npm install -g expo-cli 17 | ``` 18 | 19 | Move to the `example` directory and install dependencies there too. 20 | 21 | ```sh 22 | cd example 23 | yarn 24 | ``` 25 | 26 | ```sh 27 | cd ios && pod install && cd .. 28 | ``` 29 | 30 | ### Example app 31 | 32 | Start the example app to test your changes. You can use one of the following commands from the example root, depending on the platform you want to use. 33 | 34 | From the `example` directory: 35 | 36 | #### iOS 37 | 38 | ```sh 39 | yarn ios 40 | ``` 41 | 42 | for running in device 43 | 44 | ```sh 45 | yarn device 46 | ``` 47 | 48 | I also recommend opening `example/ios/exmaple.xcworkspace` in Xcode if you need to make changes to native code. 49 | 50 | #### Android 51 | 52 | ```sh 53 | yarn android 54 | ``` 55 | 56 | I also recommend opening `example/android` in Android Studio if you need to make changes to native code. 57 | 58 | ### Open a pull request! 59 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 4 | 5 | ### Current Behavior 6 | 7 | 8 | 9 | 10 | ### Expected Behavior 11 | 12 | 13 | 14 | 15 | ### Your Environment 16 | 17 | 18 | 19 | | software | version | 20 | | -------------------------- | ------- | 21 | | react-native-video-manager | 22 | | react-native | 23 | | node | 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Lucas Lima 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-video-manager 2 | 3 | [![npm](https://img.shields.io/npm/v/react-native-video-manager)](https://www.npmjs.com/package/react-native-video-manager) ![Supports Android, iOS](https://img.shields.io/badge/platforms-android%20%7C%20ios-lightgrey.svg) ![MIT License](https://img.shields.io/npm/l/react-native-safe-area-context.svg) 4 | 5 | Module cross platform to merge multiple videos. 6 | 7 | This tool based on [`react-native-video-editor`](https://www.npmjs.com/package/react-native-video-editor), with working example, support to newer React Native versions, and more improvements. 8 | 9 | ## Installation 10 | 11 | ```sh 12 | yarn add react-native-video-manager 13 | ``` 14 | 15 | or 16 | 17 | ```sh 18 | npm install react-native-video-manager 19 | ``` 20 | 21 | You then need to link the native parts of the library for the platforms you are using. 22 | 23 | - **iOS Platform:** 24 | 25 | `$ npx pod-install` 26 | 27 | - **Android Platform:** 28 | 29 | `no additional steps required` 30 | 31 | ## Usage 32 | 33 | ```js 34 | import { VideoManager } from "react-native-video-manager"; 35 | 36 | // ... 37 | const videos = ["file:///video1.mp4", "file:///video2.mp4"]; 38 | 39 | try { 40 | const { uri } = await VideoManager.merge(videos); 41 | 42 | console.log("merged video path", uri); 43 | } catch (error) { 44 | console.log(error); 45 | } 46 | // ... 47 | ``` 48 | 49 | You can also check a complete example in `/example` folder. 50 | 51 | ## Contributing 52 | 53 | See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. 54 | 55 | ## License 56 | 57 | MIT 58 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | apply plugin: 'com.android.library' 3 | 4 | def safeExtGet(prop, fallback) { 5 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback 6 | } 7 | 8 | android { 9 | compileSdkVersion safeExtGet('compileSdkVersion', 29) 10 | buildToolsVersion safeExtGet('buildToolsVersion', "29.0.3") 11 | 12 | defaultConfig { 13 | minSdkVersion safeExtGet('minSdkVersion', 16) 14 | targetSdkVersion safeExtGet('targetSdkVersion', 29) 15 | versionCode 1 16 | versionName "1.0" 17 | ndk { 18 | abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 19 | } 20 | } 21 | lintOptions { 22 | warning 'InvalidPackage' 23 | } 24 | } 25 | 26 | dependencies { 27 | implementation 'com.facebook.react:react-native:+' 28 | implementation 'com.googlecode.mp4parser:isoparser:1.1.21' 29 | } 30 | 31 | allprojects { 32 | repositories { 33 | mavenLocal() 34 | jcenter() 35 | } 36 | } -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/src/main/java/com/lklima/video/manager/RNVideoManagerModule.java: -------------------------------------------------------------------------------- 1 | 2 | package com.lklima.video.manager; 3 | 4 | import com.coremedia.iso.boxes.Container; 5 | import com.facebook.react.bridge.ReactApplicationContext; 6 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 7 | import com.facebook.react.bridge.ReactMethod; 8 | import com.facebook.react.bridge.Promise; 9 | 10 | import android.util.Log; 11 | import com.facebook.react.bridge.ReadableArray; 12 | 13 | import com.googlecode.mp4parser.authoring.Movie; 14 | import com.googlecode.mp4parser.authoring.Track; 15 | import com.googlecode.mp4parser.authoring.container.mp4.MovieCreator; 16 | import com.googlecode.mp4parser.authoring.tracks.AppendTrack; 17 | import com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder; 18 | 19 | import java.io.FileNotFoundException; 20 | import java.io.IOException; 21 | import java.io.RandomAccessFile; 22 | import java.nio.channels.FileChannel; 23 | import java.util.ArrayList; 24 | import java.util.LinkedList; 25 | import java.util.List; 26 | 27 | public class RNVideoManagerModule extends ReactContextBaseJavaModule { 28 | 29 | private final ReactApplicationContext reactContext; 30 | 31 | public RNVideoManagerModule(ReactApplicationContext reactContext) { 32 | super(reactContext); 33 | this.reactContext = reactContext; 34 | } 35 | 36 | @ReactMethod 37 | public void merge(ReadableArray videoFiles, Promise promise) { 38 | 39 | List inMovies = new ArrayList(); 40 | 41 | for (int i = 0; i < videoFiles.size(); i++) { 42 | String videoUrl = videoFiles.getString(i).replaceFirst("file://", ""); 43 | 44 | try { 45 | inMovies.add(MovieCreator.build(videoUrl)); 46 | } catch (IOException e) { 47 | promise.reject(e.getMessage()); 48 | e.printStackTrace(); 49 | } 50 | } 51 | 52 | List videoTracks = new LinkedList(); 53 | List audioTracks = new LinkedList(); 54 | 55 | for (Movie m : inMovies) { 56 | for (Track t : m.getTracks()) { 57 | if (t.getHandler().equals("soun")) { 58 | audioTracks.add(t); 59 | } 60 | if (t.getHandler().equals("vide")) { 61 | videoTracks.add(t); 62 | } 63 | } 64 | } 65 | 66 | Movie result = new Movie(); 67 | 68 | if (!audioTracks.isEmpty()) { 69 | try { 70 | result.addTrack(new AppendTrack(audioTracks.toArray(new Track[audioTracks.size()]))); 71 | } catch (IOException e) { 72 | promise.reject(e.getMessage()); 73 | e.printStackTrace(); 74 | } 75 | } 76 | if (!videoTracks.isEmpty()) { 77 | try { 78 | result.addTrack(new AppendTrack(videoTracks.toArray(new Track[videoTracks.size()]))); 79 | } catch (IOException e) { 80 | promise.reject(e.getMessage()); 81 | e.printStackTrace(); 82 | } 83 | } 84 | 85 | Container out = new DefaultMp4Builder().build(result); 86 | FileChannel fc = null; 87 | 88 | try { 89 | 90 | Long tsLong = System.currentTimeMillis()/1000; 91 | String ts = tsLong.toString(); 92 | 93 | String outputVideo = reactContext.getApplicationContext().getCacheDir().getAbsolutePath()+"output_"+ts+".mp4"; 94 | 95 | fc = new RandomAccessFile(String.format(outputVideo), "rw").getChannel(); 96 | 97 | Log.d("VIDEO", String.valueOf(fc)); 98 | out.writeContainer(fc); 99 | fc.close(); 100 | promise.resolve(outputVideo); 101 | } catch (FileNotFoundException e) { 102 | e.printStackTrace(); 103 | promise.reject(e.getMessage()); 104 | } catch (IOException e) { 105 | e.printStackTrace(); 106 | promise.reject(e.getMessage()); 107 | } 108 | 109 | } 110 | 111 | @Override 112 | public String getName() { 113 | return "RNVideoManager"; 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /android/src/main/java/com/lklima/video/manager/RNVideoManagerPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package com.lklima.video.manager; 3 | 4 | import java.util.Arrays; 5 | import java.util.Collections; 6 | import java.util.List; 7 | 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.bridge.NativeModule; 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.uimanager.ViewManager; 12 | import com.facebook.react.bridge.JavaScriptModule; 13 | 14 | public class RNVideoManagerPackage implements ReactPackage { 15 | @Override 16 | public List createNativeModules(ReactApplicationContext reactContext) { 17 | return Arrays.asList(new RNVideoManagerModule(reactContext)); 18 | } 19 | 20 | @Override 21 | public List createViewManagers(ReactApplicationContext reactContext) { 22 | return Collections.emptyList(); 23 | } 24 | } -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | *.hprof 33 | 34 | # node.js 35 | # 36 | node_modules/ 37 | npm-debug.log 38 | yarn-error.log 39 | 40 | # BUCK 41 | buck-out/ 42 | \.buckd/ 43 | *.keystore 44 | !debug.keystore 45 | 46 | # Bundle artifacts 47 | *.jsbundle 48 | 49 | # CocoaPods 50 | /ios/Pods/ 51 | 52 | # Expo 53 | .expo/ 54 | web-build/ 55 | dist/ 56 | -------------------------------------------------------------------------------- /example/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | import Main from "./src/Main"; 4 | 5 | export default function App() { 6 | return
; 7 | } 8 | -------------------------------------------------------------------------------- /example/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.example", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.example", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes", 82 | cliPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/cli.js", 83 | hermesCommand: new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/%OS-BIN%/hermesc", 84 | composeSourceMapsPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/scripts/compose-source-maps.js", 85 | ] 86 | 87 | apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../react.gradle") 88 | 89 | /** 90 | * Set this to true to create two separate APKs instead of one: 91 | * - An APK that only works on ARM devices 92 | * - An APK that only works on x86 devices 93 | * The advantage is the size of the APK is reduced by about 4MB. 94 | * Upload all the APKs to the Play Store and people will download 95 | * the correct one based on the CPU architecture of their device. 96 | */ 97 | def enableSeparateBuildPerCPUArchitecture = false 98 | 99 | /** 100 | * Run Proguard to shrink the Java bytecode in release builds. 101 | */ 102 | def enableProguardInReleaseBuilds = false 103 | 104 | /** 105 | * The preferred build flavor of JavaScriptCore. 106 | * 107 | * For example, to use the international variant, you can use: 108 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 109 | * 110 | * The international variant includes ICU i18n library and necessary data 111 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 112 | * give correct results when using with locales other than en-US. Note that 113 | * this variant is about 6MiB larger per architecture than default. 114 | */ 115 | def jscFlavor = 'org.webkit:android-jsc:+' 116 | 117 | /** 118 | * Whether to enable the Hermes VM. 119 | * 120 | * This should be set on project.ext.react and mirrored here. If it is not set 121 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 122 | * and the benefits of using Hermes will therefore be sharply reduced. 123 | */ 124 | def enableHermes = project.ext.react.get("enableHermes", false); 125 | 126 | android { 127 | compileSdkVersion rootProject.ext.compileSdkVersion 128 | 129 | compileOptions { 130 | sourceCompatibility JavaVersion.VERSION_1_8 131 | targetCompatibility JavaVersion.VERSION_1_8 132 | } 133 | 134 | defaultConfig { 135 | applicationId "com.example" 136 | minSdkVersion rootProject.ext.minSdkVersion 137 | targetSdkVersion rootProject.ext.targetSdkVersion 138 | versionCode 1 139 | versionName "1.0" 140 | } 141 | splits { 142 | abi { 143 | reset() 144 | enable enableSeparateBuildPerCPUArchitecture 145 | universalApk false // If true, also generate a universal APK 146 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 147 | } 148 | } 149 | signingConfigs { 150 | debug { 151 | storeFile file('debug.keystore') 152 | storePassword 'android' 153 | keyAlias 'androiddebugkey' 154 | keyPassword 'android' 155 | } 156 | } 157 | buildTypes { 158 | debug { 159 | signingConfig signingConfigs.debug 160 | } 161 | release { 162 | // Caution! In production, you need to generate your own keystore file. 163 | // see https://reactnative.dev/docs/signed-apk-android. 164 | signingConfig signingConfigs.debug 165 | minifyEnabled enableProguardInReleaseBuilds 166 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 167 | } 168 | } 169 | 170 | // applicationVariants are e.g. debug, release 171 | applicationVariants.all { variant -> 172 | variant.outputs.each { output -> 173 | // For each separate APK per architecture, set a unique version code as described here: 174 | // https://developer.android.com/studio/build/configure-apk-splits.html 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | 191 | def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true"; 192 | def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true"; 193 | def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true"; 194 | 195 | // If your app supports Android versions before Ice Cream Sandwich (API level 14) 196 | // All fresco packages should use the same version 197 | if (isGifEnabled || isWebpEnabled) { 198 | implementation 'com.facebook.fresco:fresco:2.0.0' 199 | implementation 'com.facebook.fresco:imagepipeline-okhttp3:2.0.0' 200 | } 201 | 202 | if (isGifEnabled) { 203 | // For animated gif support 204 | implementation 'com.facebook.fresco:animated-gif:2.0.0' 205 | } 206 | 207 | if (isWebpEnabled) { 208 | // For webp support 209 | implementation 'com.facebook.fresco:webpsupport:2.0.0' 210 | if (isWebpAnimatedEnabled) { 211 | // Animated webp support 212 | implementation 'com.facebook.fresco:animated-webp:2.0.0' 213 | } 214 | } 215 | 216 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 217 | implementation 'com.googlecode.mp4parser:isoparser:1.1.21' 218 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 219 | exclude group:'com.facebook.fbjni' 220 | } 221 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 222 | exclude group:'com.facebook.flipper' 223 | exclude group:'com.squareup.okhttp3', module:'okhttp' 224 | } 225 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 226 | exclude group:'com.facebook.flipper' 227 | } 228 | 229 | if (enableHermes) { 230 | debugImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim(), "../android/hermes-debug.aar")) 231 | releaseImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim(), "../android/hermes-release.aar")) 232 | } else { 233 | implementation jscFlavor 234 | } 235 | } 236 | 237 | // Run this once to be able to run the application with BUCK 238 | // puts all compile dependencies into folder libs for BUCK to use 239 | task copyDownloadableDepsToLibs(type: Copy) { 240 | from configurations.compile 241 | into 'libs' 242 | } 243 | 244 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); 245 | applyNativeModulesAppBuildGradle(project) 246 | -------------------------------------------------------------------------------- /example/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/debug.keystore -------------------------------------------------------------------------------- /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/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/debug/java/com/example/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its 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.example; 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.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 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 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 32 | client.addPlugin(new ReactFlipperPlugin()); 33 | client.addPlugin(new DatabasesFlipperPlugin(context)); 34 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 35 | client.addPlugin(CrashReporterPlugin.getInstance()); 36 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 37 | NetworkingModule.setCustomClientBuilder( 38 | new NetworkingModule.CustomClientBuilder() { 39 | @Override 40 | public void apply(OkHttpClient.Builder builder) { 41 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 42 | } 43 | }); 44 | client.addPlugin(networkFlipperPlugin); 45 | client.start(); 46 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 47 | // Hence we run if after all native modules have been initialized 48 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 49 | if (reactContext == null) { 50 | reactInstanceManager.addReactInstanceEventListener( 51 | new ReactInstanceManager.ReactInstanceEventListener() { 52 | @Override 53 | public void onReactContextInitialized(ReactContext reactContext) { 54 | reactInstanceManager.removeReactInstanceEventListener(this); 55 | reactContext.runOnNativeModulesQueueThread( 56 | new Runnable() { 57 | @Override 58 | public void run() { 59 | client.addPlugin(new FrescoFlipperPlugin()); 60 | } 61 | }); 62 | } 63 | }); 64 | } else { 65 | client.addPlugin(new FrescoFlipperPlugin()); 66 | } 67 | } 68 | } 69 | } -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import android.os.Build; 4 | import android.os.Bundle; 5 | 6 | import com.facebook.react.ReactActivity; 7 | import com.facebook.react.ReactActivityDelegate; 8 | import com.facebook.react.ReactRootView; 9 | 10 | import expo.modules.ReactActivityDelegateWrapper; 11 | 12 | public class MainActivity extends ReactActivity { 13 | @Override 14 | protected void onCreate(Bundle savedInstanceState) { 15 | // Set the theme to AppTheme BEFORE onCreate to support 16 | // coloring the background, status bar, and navigation bar. 17 | // This is required for expo-splash-screen. 18 | setTheme(R.style.AppTheme); 19 | super.onCreate(null); 20 | } 21 | 22 | /** 23 | * Returns the name of the main component registered from JavaScript. 24 | * This is used to schedule rendering of the component. 25 | */ 26 | @Override 27 | protected String getMainComponentName() { 28 | return "main"; 29 | } 30 | 31 | @Override 32 | protected ReactActivityDelegate createReactActivityDelegate() { 33 | return new ReactActivityDelegateWrapper(this, 34 | new ReactActivityDelegate(this, getMainComponentName()) 35 | ); 36 | } 37 | 38 | /** 39 | * Align the back button behavior with Android S 40 | * where moving root activities to background instead of finishing activities. 41 | * @see onBackPressed 42 | */ 43 | @Override 44 | public void invokeDefaultOnBackPressed() { 45 | if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) { 46 | if (!moveTaskToBack(false)) { 47 | // For non-root activities, use the default implementation to finish them. 48 | super.invokeDefaultOnBackPressed(); 49 | } 50 | return; 51 | } 52 | 53 | // Use the default back button implementation on Android S 54 | // because it's doing more than {@link Activity#moveTaskToBack} in fact. 55 | super.invokeDefaultOnBackPressed(); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import android.content.res.Configuration; 6 | import androidx.annotation.NonNull; 7 | 8 | import com.facebook.react.PackageList; 9 | import com.facebook.react.ReactApplication; 10 | import com.facebook.react.ReactInstanceManager; 11 | import com.facebook.react.ReactNativeHost; 12 | import com.facebook.react.ReactPackage; 13 | import com.facebook.soloader.SoLoader; 14 | 15 | import expo.modules.ApplicationLifecycleDispatcher; 16 | import expo.modules.ReactNativeHostWrapper; 17 | 18 | import com.facebook.react.bridge.JSIModulePackage; 19 | 20 | import java.lang.reflect.InvocationTargetException; 21 | import java.util.List; 22 | 23 | public class MainApplication extends Application implements ReactApplication { 24 | private final ReactNativeHost mReactNativeHost = new ReactNativeHostWrapper( 25 | this, 26 | new ReactNativeHost(this) { 27 | @Override 28 | public boolean getUseDeveloperSupport() { 29 | return BuildConfig.DEBUG; 30 | } 31 | 32 | @Override 33 | protected List getPackages() { 34 | @SuppressWarnings("UnnecessaryLocalVariable") 35 | List packages = new PackageList(this).getPackages(); 36 | // Packages that cannot be autolinked yet can be added manually here, for example: 37 | // packages.add(new MyReactNativePackage()); 38 | // packages.add(new RNVideoManagerPackage()); 39 | return packages; 40 | } 41 | 42 | @Override 43 | protected String getJSMainModuleName() { 44 | return "index"; 45 | } 46 | }); 47 | 48 | @Override 49 | public ReactNativeHost getReactNativeHost() { 50 | return mReactNativeHost; 51 | } 52 | 53 | @Override 54 | public void onCreate() { 55 | super.onCreate(); 56 | SoLoader.init(this, /* native exopackage */ false); 57 | 58 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 59 | ApplicationLifecycleDispatcher.onApplicationCreate(this); 60 | } 61 | 62 | @Override 63 | public void onConfigurationChanged(@NonNull Configuration newConfig) { 64 | super.onConfigurationChanged(newConfig); 65 | ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig); 66 | } 67 | 68 | /** 69 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 70 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 71 | * 72 | * @param context 73 | * @param reactInstanceManager 74 | */ 75 | private static void initializeFlipper( 76 | Context context, ReactInstanceManager reactInstanceManager) { 77 | if (BuildConfig.DEBUG) { 78 | try { 79 | /* 80 | We use reflection here to pick up the class that initializes Flipper, 81 | since Flipper library is not available in release mode 82 | */ 83 | Class aClass = Class.forName("com.example.ReactNativeFlipper"); 84 | aClass 85 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 86 | .invoke(null, context, reactInstanceManager); 87 | } catch (ClassNotFoundException e) { 88 | e.printStackTrace(); 89 | } catch (NoSuchMethodException e) { 90 | e.printStackTrace(); 91 | } catch (IllegalAccessException e) { 92 | e.printStackTrace(); 93 | } catch (InvocationTargetException e) { 94 | e.printStackTrace(); 95 | } 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/RNVideoManagerModule.java: -------------------------------------------------------------------------------- 1 | 2 | package com.example; 3 | 4 | import com.coremedia.iso.boxes.Container; 5 | import com.facebook.react.bridge.ReactApplicationContext; 6 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 7 | import com.facebook.react.bridge.ReactMethod; 8 | import com.facebook.react.bridge.Callback; 9 | 10 | import android.util.Log; 11 | import com.facebook.react.bridge.ReadableArray; 12 | 13 | import com.googlecode.mp4parser.authoring.Movie; 14 | import com.googlecode.mp4parser.authoring.Track; 15 | import com.googlecode.mp4parser.authoring.container.mp4.MovieCreator; 16 | import com.googlecode.mp4parser.authoring.tracks.AppendTrack; 17 | import com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder; 18 | 19 | import java.io.FileNotFoundException; 20 | import java.io.IOException; 21 | import java.io.RandomAccessFile; 22 | import java.nio.channels.FileChannel; 23 | import java.util.ArrayList; 24 | import java.util.LinkedList; 25 | import java.util.List; 26 | 27 | public class RNVideoManagerModule extends ReactContextBaseJavaModule { 28 | 29 | private final ReactApplicationContext reactContext; 30 | 31 | public RNVideoManagerModule(ReactApplicationContext reactContext) { 32 | super(reactContext); 33 | this.reactContext = reactContext; 34 | } 35 | 36 | @ReactMethod 37 | public void merge(ReadableArray videoFiles, Callback errorCallback, Callback successCallback) { 38 | 39 | List inMovies = new ArrayList(); 40 | 41 | for (int i = 0; i < videoFiles.size(); i++) { 42 | String videoUrl = videoFiles.getString(i).replaceFirst("file://", ""); 43 | 44 | try { 45 | inMovies.add(MovieCreator.build(videoUrl)); 46 | } catch (IOException e) { 47 | errorCallback.invoke(e.getMessage()); 48 | e.printStackTrace(); 49 | } 50 | } 51 | 52 | List videoTracks = new LinkedList(); 53 | List audioTracks = new LinkedList(); 54 | 55 | for (Movie m : inMovies) { 56 | for (Track t : m.getTracks()) { 57 | if (t.getHandler().equals("soun")) { 58 | audioTracks.add(t); 59 | } 60 | if (t.getHandler().equals("vide")) { 61 | videoTracks.add(t); 62 | } 63 | } 64 | } 65 | 66 | Movie result = new Movie(); 67 | 68 | if (!audioTracks.isEmpty()) { 69 | try { 70 | result.addTrack(new AppendTrack(audioTracks.toArray(new Track[audioTracks.size()]))); 71 | } catch (IOException e) { 72 | errorCallback.invoke(e.getMessage()); 73 | e.printStackTrace(); 74 | } 75 | } 76 | if (!videoTracks.isEmpty()) { 77 | try { 78 | result.addTrack(new AppendTrack(videoTracks.toArray(new Track[videoTracks.size()]))); 79 | } catch (IOException e) { 80 | errorCallback.invoke(e.getMessage()); 81 | e.printStackTrace(); 82 | } 83 | } 84 | 85 | Container out = new DefaultMp4Builder().build(result); 86 | FileChannel fc = null; 87 | 88 | try { 89 | 90 | Long tsLong = System.currentTimeMillis()/1000; 91 | String ts = tsLong.toString(); 92 | 93 | String outputVideo = reactContext.getApplicationContext().getCacheDir().getAbsolutePath()+"output_"+ts+".mp4"; 94 | 95 | fc = new RandomAccessFile(String.format(outputVideo), "rw").getChannel(); 96 | 97 | Log.d("VIDEO", String.valueOf(fc)); 98 | out.writeContainer(fc); 99 | fc.close(); 100 | successCallback.invoke("", outputVideo); 101 | } catch (FileNotFoundException e) { 102 | e.printStackTrace(); 103 | errorCallback.invoke(e.getMessage()); 104 | } catch (IOException e) { 105 | e.printStackTrace(); 106 | errorCallback.invoke(e.getMessage()); 107 | } 108 | 109 | } 110 | 111 | @Override 112 | public String getName() { 113 | return "RNVideoManager"; 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/RNVideoManagerPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package com.example; 3 | 4 | import java.util.Arrays; 5 | import java.util.Collections; 6 | import java.util.List; 7 | 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.bridge.NativeModule; 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.uimanager.ViewManager; 12 | import com.facebook.react.bridge.JavaScriptModule; 13 | 14 | public class RNVideoManagerPackage implements ReactPackage { 15 | @Override 16 | public List createNativeModules(ReactApplicationContext reactContext) { 17 | return Arrays.asList(new RNVideoManagerModule(reactContext)); 18 | } 19 | 20 | @Override 21 | public List createViewManagers(ReactApplicationContext reactContext) { 22 | return Collections.emptyList(); 23 | } 24 | } -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/splashscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/drawable/splashscreen_image.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | example 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /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 = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 30 8 | targetSdkVersion = 30 9 | } 10 | repositories { 11 | google() 12 | mavenCentral() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.1.0") 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../android")) 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist")) 33 | } 34 | maven { 35 | // expo-camera bundles a custom com.google.android:cameraview 36 | url "$rootDir/../node_modules/expo-camera/android/maven" 37 | } 38 | 39 | google() 40 | mavenCentral() 41 | jcenter() 42 | maven { url 'https://www.jitpack.io' } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /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: -Xmx10248m -XX:MaxPermSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 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 | 25 | # Automatically convert third-party libraries to use AndroidX 26 | android.enableJetifier=true 27 | 28 | # Version of flipper SDK to use with React Native 29 | FLIPPER_VERSION=0.54.0 30 | 31 | # The hosted JavaScript engine 32 | # Supported values: expo.jsEngine = "hermes" | "jsc" 33 | expo.jsEngine=jsc 34 | 35 | # Enable GIF support in React Native images (~200 B increase) 36 | expo.gif.enabled=true 37 | # Enable webp support in React Native images (~85 KB increase) 38 | expo.webp.enabled=true 39 | # Enable animated webp support (~3.4 MB increase) 40 | # Disabled by default because iOS doesn't support animated webp 41 | expo.webp.animated=false -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or 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 UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /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 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'example' 2 | 3 | apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle"); 4 | useExpoModules() 5 | 6 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); 7 | applyNativeModulesSettingsGradle(settings) 8 | 9 | include ':app' 10 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "name": "example", 4 | "slug": "example", 5 | "version": "1.0.0", 6 | "assetBundlePatterns": [ 7 | "**/*" 8 | ] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function(api) { 2 | api.cache(true); 3 | return { 4 | presets: ['babel-preset-expo'] 5 | }; 6 | }; 7 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | import { registerRootComponent } from 'expo'; 2 | 3 | import App from './App'; 4 | 5 | // registerRootComponent calls AppRegistry.registerComponent('main', () => App); 6 | // It also ensures that whether you load the app in Expo Go or in a native build, 7 | // the environment is set up appropriately 8 | registerRootComponent(App); 9 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") 2 | require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods") 3 | require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules") 4 | 5 | platform :ios, '12.0' 6 | 7 | require 'json' 8 | podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {} 9 | 10 | target 'example' do 11 | use_expo_modules! 12 | config = use_native_modules! 13 | 14 | use_react_native!( 15 | :path => config[:reactNativePath], 16 | :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes' 17 | ) 18 | 19 | # Uncomment to opt-in to using Flipper 20 | # 21 | # if !ENV['CI'] 22 | # use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1') 23 | # end 24 | 25 | post_install do |installer| 26 | react_native_post_install(installer) 27 | 28 | # Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64 29 | # Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933 30 | installer.pods_project.targets.each do |target| 31 | if (target.name&.eql?('FBReactNativeSpec')) 32 | target.build_phases.each do |build_phase| 33 | if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs')) 34 | target.build_phases.move(build_phase, 0) 35 | end 36 | end 37 | end 38 | end 39 | end 40 | 41 | post_integrate do |installer| 42 | begin 43 | expo_patch_react_imports!(installer) 44 | rescue => e 45 | Pod::UI.warn e 46 | end 47 | end 48 | 49 | end 50 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - EXApplication (4.0.2): 5 | - ExpoModulesCore 6 | - EXAV (10.2.1): 7 | - ExpoModulesCore 8 | - ReactCommon/turbomodule/core 9 | - EXCamera (12.1.2): 10 | - ExpoModulesCore 11 | - EXConstants (13.0.2): 12 | - ExpoModulesCore 13 | - EXFileSystem (13.1.4): 14 | - ExpoModulesCore 15 | - EXFont (10.0.5): 16 | - ExpoModulesCore 17 | - EXKeepAwake (10.0.2): 18 | - ExpoModulesCore 19 | - Expo (44.0.6): 20 | - ExpoModulesCore 21 | - ExpoModulesCore (0.6.5): 22 | - React-Core 23 | - ReactCommon/turbomodule/core 24 | - EXSplashScreen (0.14.2): 25 | - ExpoModulesCore 26 | - React-Core 27 | - EXVideoThumbnails (6.1.1): 28 | - ExpoModulesCore 29 | - FBLazyVector (0.64.3) 30 | - FBReactNativeSpec (0.64.3): 31 | - RCT-Folly (= 2020.01.13.00) 32 | - RCTRequired (= 0.64.3) 33 | - RCTTypeSafety (= 0.64.3) 34 | - React-Core (= 0.64.3) 35 | - React-jsi (= 0.64.3) 36 | - ReactCommon/turbomodule/core (= 0.64.3) 37 | - glog (0.3.5) 38 | - RCT-Folly (2020.01.13.00): 39 | - boost-for-react-native 40 | - DoubleConversion 41 | - glog 42 | - RCT-Folly/Default (= 2020.01.13.00) 43 | - RCT-Folly/Default (2020.01.13.00): 44 | - boost-for-react-native 45 | - DoubleConversion 46 | - glog 47 | - RCTRequired (0.64.3) 48 | - RCTTypeSafety (0.64.3): 49 | - FBLazyVector (= 0.64.3) 50 | - RCT-Folly (= 2020.01.13.00) 51 | - RCTRequired (= 0.64.3) 52 | - React-Core (= 0.64.3) 53 | - React (0.64.3): 54 | - React-Core (= 0.64.3) 55 | - React-Core/DevSupport (= 0.64.3) 56 | - React-Core/RCTWebSocket (= 0.64.3) 57 | - React-RCTActionSheet (= 0.64.3) 58 | - React-RCTAnimation (= 0.64.3) 59 | - React-RCTBlob (= 0.64.3) 60 | - React-RCTImage (= 0.64.3) 61 | - React-RCTLinking (= 0.64.3) 62 | - React-RCTNetwork (= 0.64.3) 63 | - React-RCTSettings (= 0.64.3) 64 | - React-RCTText (= 0.64.3) 65 | - React-RCTVibration (= 0.64.3) 66 | - React-callinvoker (0.64.3) 67 | - React-Core (0.64.3): 68 | - glog 69 | - RCT-Folly (= 2020.01.13.00) 70 | - React-Core/Default (= 0.64.3) 71 | - React-cxxreact (= 0.64.3) 72 | - React-jsi (= 0.64.3) 73 | - React-jsiexecutor (= 0.64.3) 74 | - React-perflogger (= 0.64.3) 75 | - Yoga 76 | - React-Core/CoreModulesHeaders (0.64.3): 77 | - glog 78 | - RCT-Folly (= 2020.01.13.00) 79 | - React-Core/Default 80 | - React-cxxreact (= 0.64.3) 81 | - React-jsi (= 0.64.3) 82 | - React-jsiexecutor (= 0.64.3) 83 | - React-perflogger (= 0.64.3) 84 | - Yoga 85 | - React-Core/Default (0.64.3): 86 | - glog 87 | - RCT-Folly (= 2020.01.13.00) 88 | - React-cxxreact (= 0.64.3) 89 | - React-jsi (= 0.64.3) 90 | - React-jsiexecutor (= 0.64.3) 91 | - React-perflogger (= 0.64.3) 92 | - Yoga 93 | - React-Core/DevSupport (0.64.3): 94 | - glog 95 | - RCT-Folly (= 2020.01.13.00) 96 | - React-Core/Default (= 0.64.3) 97 | - React-Core/RCTWebSocket (= 0.64.3) 98 | - React-cxxreact (= 0.64.3) 99 | - React-jsi (= 0.64.3) 100 | - React-jsiexecutor (= 0.64.3) 101 | - React-jsinspector (= 0.64.3) 102 | - React-perflogger (= 0.64.3) 103 | - Yoga 104 | - React-Core/RCTActionSheetHeaders (0.64.3): 105 | - glog 106 | - RCT-Folly (= 2020.01.13.00) 107 | - React-Core/Default 108 | - React-cxxreact (= 0.64.3) 109 | - React-jsi (= 0.64.3) 110 | - React-jsiexecutor (= 0.64.3) 111 | - React-perflogger (= 0.64.3) 112 | - Yoga 113 | - React-Core/RCTAnimationHeaders (0.64.3): 114 | - glog 115 | - RCT-Folly (= 2020.01.13.00) 116 | - React-Core/Default 117 | - React-cxxreact (= 0.64.3) 118 | - React-jsi (= 0.64.3) 119 | - React-jsiexecutor (= 0.64.3) 120 | - React-perflogger (= 0.64.3) 121 | - Yoga 122 | - React-Core/RCTBlobHeaders (0.64.3): 123 | - glog 124 | - RCT-Folly (= 2020.01.13.00) 125 | - React-Core/Default 126 | - React-cxxreact (= 0.64.3) 127 | - React-jsi (= 0.64.3) 128 | - React-jsiexecutor (= 0.64.3) 129 | - React-perflogger (= 0.64.3) 130 | - Yoga 131 | - React-Core/RCTImageHeaders (0.64.3): 132 | - glog 133 | - RCT-Folly (= 2020.01.13.00) 134 | - React-Core/Default 135 | - React-cxxreact (= 0.64.3) 136 | - React-jsi (= 0.64.3) 137 | - React-jsiexecutor (= 0.64.3) 138 | - React-perflogger (= 0.64.3) 139 | - Yoga 140 | - React-Core/RCTLinkingHeaders (0.64.3): 141 | - glog 142 | - RCT-Folly (= 2020.01.13.00) 143 | - React-Core/Default 144 | - React-cxxreact (= 0.64.3) 145 | - React-jsi (= 0.64.3) 146 | - React-jsiexecutor (= 0.64.3) 147 | - React-perflogger (= 0.64.3) 148 | - Yoga 149 | - React-Core/RCTNetworkHeaders (0.64.3): 150 | - glog 151 | - RCT-Folly (= 2020.01.13.00) 152 | - React-Core/Default 153 | - React-cxxreact (= 0.64.3) 154 | - React-jsi (= 0.64.3) 155 | - React-jsiexecutor (= 0.64.3) 156 | - React-perflogger (= 0.64.3) 157 | - Yoga 158 | - React-Core/RCTSettingsHeaders (0.64.3): 159 | - glog 160 | - RCT-Folly (= 2020.01.13.00) 161 | - React-Core/Default 162 | - React-cxxreact (= 0.64.3) 163 | - React-jsi (= 0.64.3) 164 | - React-jsiexecutor (= 0.64.3) 165 | - React-perflogger (= 0.64.3) 166 | - Yoga 167 | - React-Core/RCTTextHeaders (0.64.3): 168 | - glog 169 | - RCT-Folly (= 2020.01.13.00) 170 | - React-Core/Default 171 | - React-cxxreact (= 0.64.3) 172 | - React-jsi (= 0.64.3) 173 | - React-jsiexecutor (= 0.64.3) 174 | - React-perflogger (= 0.64.3) 175 | - Yoga 176 | - React-Core/RCTVibrationHeaders (0.64.3): 177 | - glog 178 | - RCT-Folly (= 2020.01.13.00) 179 | - React-Core/Default 180 | - React-cxxreact (= 0.64.3) 181 | - React-jsi (= 0.64.3) 182 | - React-jsiexecutor (= 0.64.3) 183 | - React-perflogger (= 0.64.3) 184 | - Yoga 185 | - React-Core/RCTWebSocket (0.64.3): 186 | - glog 187 | - RCT-Folly (= 2020.01.13.00) 188 | - React-Core/Default (= 0.64.3) 189 | - React-cxxreact (= 0.64.3) 190 | - React-jsi (= 0.64.3) 191 | - React-jsiexecutor (= 0.64.3) 192 | - React-perflogger (= 0.64.3) 193 | - Yoga 194 | - React-CoreModules (0.64.3): 195 | - FBReactNativeSpec (= 0.64.3) 196 | - RCT-Folly (= 2020.01.13.00) 197 | - RCTTypeSafety (= 0.64.3) 198 | - React-Core/CoreModulesHeaders (= 0.64.3) 199 | - React-jsi (= 0.64.3) 200 | - React-RCTImage (= 0.64.3) 201 | - ReactCommon/turbomodule/core (= 0.64.3) 202 | - React-cxxreact (0.64.3): 203 | - boost-for-react-native (= 1.63.0) 204 | - DoubleConversion 205 | - glog 206 | - RCT-Folly (= 2020.01.13.00) 207 | - React-callinvoker (= 0.64.3) 208 | - React-jsi (= 0.64.3) 209 | - React-jsinspector (= 0.64.3) 210 | - React-perflogger (= 0.64.3) 211 | - React-runtimeexecutor (= 0.64.3) 212 | - React-jsi (0.64.3): 213 | - boost-for-react-native (= 1.63.0) 214 | - DoubleConversion 215 | - glog 216 | - RCT-Folly (= 2020.01.13.00) 217 | - React-jsi/Default (= 0.64.3) 218 | - React-jsi/Default (0.64.3): 219 | - boost-for-react-native (= 1.63.0) 220 | - DoubleConversion 221 | - glog 222 | - RCT-Folly (= 2020.01.13.00) 223 | - React-jsiexecutor (0.64.3): 224 | - DoubleConversion 225 | - glog 226 | - RCT-Folly (= 2020.01.13.00) 227 | - React-cxxreact (= 0.64.3) 228 | - React-jsi (= 0.64.3) 229 | - React-perflogger (= 0.64.3) 230 | - React-jsinspector (0.64.3) 231 | - react-native-video-manager (0.1.2): 232 | - React-Core 233 | - React-perflogger (0.64.3) 234 | - React-RCTActionSheet (0.64.3): 235 | - React-Core/RCTActionSheetHeaders (= 0.64.3) 236 | - React-RCTAnimation (0.64.3): 237 | - FBReactNativeSpec (= 0.64.3) 238 | - RCT-Folly (= 2020.01.13.00) 239 | - RCTTypeSafety (= 0.64.3) 240 | - React-Core/RCTAnimationHeaders (= 0.64.3) 241 | - React-jsi (= 0.64.3) 242 | - ReactCommon/turbomodule/core (= 0.64.3) 243 | - React-RCTBlob (0.64.3): 244 | - FBReactNativeSpec (= 0.64.3) 245 | - RCT-Folly (= 2020.01.13.00) 246 | - React-Core/RCTBlobHeaders (= 0.64.3) 247 | - React-Core/RCTWebSocket (= 0.64.3) 248 | - React-jsi (= 0.64.3) 249 | - React-RCTNetwork (= 0.64.3) 250 | - ReactCommon/turbomodule/core (= 0.64.3) 251 | - React-RCTImage (0.64.3): 252 | - FBReactNativeSpec (= 0.64.3) 253 | - RCT-Folly (= 2020.01.13.00) 254 | - RCTTypeSafety (= 0.64.3) 255 | - React-Core/RCTImageHeaders (= 0.64.3) 256 | - React-jsi (= 0.64.3) 257 | - React-RCTNetwork (= 0.64.3) 258 | - ReactCommon/turbomodule/core (= 0.64.3) 259 | - React-RCTLinking (0.64.3): 260 | - FBReactNativeSpec (= 0.64.3) 261 | - React-Core/RCTLinkingHeaders (= 0.64.3) 262 | - React-jsi (= 0.64.3) 263 | - ReactCommon/turbomodule/core (= 0.64.3) 264 | - React-RCTNetwork (0.64.3): 265 | - FBReactNativeSpec (= 0.64.3) 266 | - RCT-Folly (= 2020.01.13.00) 267 | - RCTTypeSafety (= 0.64.3) 268 | - React-Core/RCTNetworkHeaders (= 0.64.3) 269 | - React-jsi (= 0.64.3) 270 | - ReactCommon/turbomodule/core (= 0.64.3) 271 | - React-RCTSettings (0.64.3): 272 | - FBReactNativeSpec (= 0.64.3) 273 | - RCT-Folly (= 2020.01.13.00) 274 | - RCTTypeSafety (= 0.64.3) 275 | - React-Core/RCTSettingsHeaders (= 0.64.3) 276 | - React-jsi (= 0.64.3) 277 | - ReactCommon/turbomodule/core (= 0.64.3) 278 | - React-RCTText (0.64.3): 279 | - React-Core/RCTTextHeaders (= 0.64.3) 280 | - React-RCTVibration (0.64.3): 281 | - FBReactNativeSpec (= 0.64.3) 282 | - RCT-Folly (= 2020.01.13.00) 283 | - React-Core/RCTVibrationHeaders (= 0.64.3) 284 | - React-jsi (= 0.64.3) 285 | - ReactCommon/turbomodule/core (= 0.64.3) 286 | - React-runtimeexecutor (0.64.3): 287 | - React-jsi (= 0.64.3) 288 | - ReactCommon/turbomodule/core (0.64.3): 289 | - DoubleConversion 290 | - glog 291 | - RCT-Folly (= 2020.01.13.00) 292 | - React-callinvoker (= 0.64.3) 293 | - React-Core (= 0.64.3) 294 | - React-cxxreact (= 0.64.3) 295 | - React-jsi (= 0.64.3) 296 | - React-perflogger (= 0.64.3) 297 | - Yoga (1.14.0) 298 | 299 | DEPENDENCIES: 300 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 301 | - EXApplication (from `../node_modules/expo-application/ios`) 302 | - EXAV (from `../node_modules/expo-av/ios`) 303 | - EXCamera (from `../node_modules/expo-camera/ios`) 304 | - EXConstants (from `../node_modules/expo-constants/ios`) 305 | - EXFileSystem (from `../node_modules/expo-file-system/ios`) 306 | - EXFont (from `../node_modules/expo-font/ios`) 307 | - EXKeepAwake (from `../node_modules/expo-keep-awake/ios`) 308 | - Expo (from `../node_modules/expo/ios`) 309 | - ExpoModulesCore (from `../node_modules/expo-modules-core/ios`) 310 | - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`) 311 | - EXVideoThumbnails (from `../node_modules/expo-video-thumbnails/ios`) 312 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 313 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 314 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 315 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 316 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 317 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 318 | - React (from `../node_modules/react-native/`) 319 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 320 | - React-Core (from `../node_modules/react-native/`) 321 | - React-Core/DevSupport (from `../node_modules/react-native/`) 322 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 323 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 324 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 325 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 326 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 327 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 328 | - react-native-video-manager (from `../node_modules/react-native-video-manager`) 329 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 330 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 331 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 332 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 333 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 334 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 335 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 336 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 337 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 338 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 339 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 340 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 341 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 342 | 343 | SPEC REPOS: 344 | trunk: 345 | - boost-for-react-native 346 | 347 | EXTERNAL SOURCES: 348 | DoubleConversion: 349 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 350 | EXApplication: 351 | :path: "../node_modules/expo-application/ios" 352 | EXAV: 353 | :path: "../node_modules/expo-av/ios" 354 | EXCamera: 355 | :path: "../node_modules/expo-camera/ios" 356 | EXConstants: 357 | :path: "../node_modules/expo-constants/ios" 358 | EXFileSystem: 359 | :path: "../node_modules/expo-file-system/ios" 360 | EXFont: 361 | :path: "../node_modules/expo-font/ios" 362 | EXKeepAwake: 363 | :path: "../node_modules/expo-keep-awake/ios" 364 | Expo: 365 | :path: "../node_modules/expo/ios" 366 | ExpoModulesCore: 367 | :path: "../node_modules/expo-modules-core/ios" 368 | EXSplashScreen: 369 | :path: "../node_modules/expo-splash-screen/ios" 370 | EXVideoThumbnails: 371 | :path: "../node_modules/expo-video-thumbnails/ios" 372 | FBLazyVector: 373 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 374 | FBReactNativeSpec: 375 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 376 | glog: 377 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 378 | RCT-Folly: 379 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 380 | RCTRequired: 381 | :path: "../node_modules/react-native/Libraries/RCTRequired" 382 | RCTTypeSafety: 383 | :path: "../node_modules/react-native/Libraries/TypeSafety" 384 | React: 385 | :path: "../node_modules/react-native/" 386 | React-callinvoker: 387 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 388 | React-Core: 389 | :path: "../node_modules/react-native/" 390 | React-CoreModules: 391 | :path: "../node_modules/react-native/React/CoreModules" 392 | React-cxxreact: 393 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 394 | React-jsi: 395 | :path: "../node_modules/react-native/ReactCommon/jsi" 396 | React-jsiexecutor: 397 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 398 | React-jsinspector: 399 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 400 | react-native-video-manager: 401 | :path: "../node_modules/react-native-video-manager" 402 | React-perflogger: 403 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 404 | React-RCTActionSheet: 405 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 406 | React-RCTAnimation: 407 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 408 | React-RCTBlob: 409 | :path: "../node_modules/react-native/Libraries/Blob" 410 | React-RCTImage: 411 | :path: "../node_modules/react-native/Libraries/Image" 412 | React-RCTLinking: 413 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 414 | React-RCTNetwork: 415 | :path: "../node_modules/react-native/Libraries/Network" 416 | React-RCTSettings: 417 | :path: "../node_modules/react-native/Libraries/Settings" 418 | React-RCTText: 419 | :path: "../node_modules/react-native/Libraries/Text" 420 | React-RCTVibration: 421 | :path: "../node_modules/react-native/Libraries/Vibration" 422 | React-runtimeexecutor: 423 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 424 | ReactCommon: 425 | :path: "../node_modules/react-native/ReactCommon" 426 | Yoga: 427 | :path: "../node_modules/react-native/ReactCommon/yoga" 428 | 429 | SPEC CHECKSUMS: 430 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 431 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de 432 | EXApplication: 54fe5bd6268d697771645e8f1aef8b806a65247a 433 | EXAV: b9ed0c201092244c46aa78f907f5c66176bed236 434 | EXCamera: 4a0d00d6d1e4703c31a75514d8bc804a2eab27bd 435 | EXConstants: 88bf79622fbd9b476c96d8ec57fe97ca44fe8e3c 436 | EXFileSystem: 08a3033ac372b6346becf07839e1ccef26fb1058 437 | EXFont: 2597c10ac85a69d348d44d7873eccf5a7576ef5e 438 | EXKeepAwake: bf48d7f740a5cd2befed6cf9a49911d385c6c47d 439 | Expo: 534e51e607aba8229293297da5585f4b26f50fa1 440 | ExpoModulesCore: 32c0ccb47f477d330ee93db72505380adf0de09a 441 | EXSplashScreen: 21669e598804ee810547dbb6692c8deb5dd8dbf3 442 | EXVideoThumbnails: 813d6aad70f81f1b3af01f1436e18ff88871206c 443 | FBLazyVector: c71c5917ec0ad2de41d5d06a5855f6d5eda06971 444 | FBReactNativeSpec: 99812ff3575fc6e92b8e245356c34a0b8a575fff 445 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 446 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c 447 | RCTRequired: d34bf57e17cb6e3b2681f4809b13843c021feb6c 448 | RCTTypeSafety: 8dab4933124ed39bb0c1d88d74d61b1eb950f28f 449 | React: ef700aeb19afabff83a9cc5799ac955a9c6b5e0f 450 | React-callinvoker: 5547633d44f3e114b17c03c660ccb5faefd9ed2d 451 | React-Core: 3858d60185d71567962468bf176d582e36e4e25b 452 | React-CoreModules: 29b3397adac0c04915cf93089328664868510717 453 | React-cxxreact: 7e6cc1f4cdfcd40e483dd228fa8a3d3e0ed16f4a 454 | React-jsi: a8b09c29521c798f1783348b37b511ba7b3dbeb3 455 | React-jsiexecutor: df6abc9fafbecb8e5b7a5fbc5e6d4bd017d594d5 456 | React-jsinspector: 34e23860273a23695342f58eed3ffd3ba10c31e0 457 | react-native-video-manager: 659633e7d5250f11933284616cafd9ff14a6d71c 458 | React-perflogger: cc76a4254d19640f1d8ad1c66fdee800414b805c 459 | React-RCTActionSheet: 7448f049318d8d7e8a9a1ebb742ada721757eea8 460 | React-RCTAnimation: fb9b3fa1a4a9f5e6ab01b3368693ce69860ba76a 461 | React-RCTBlob: a2e7056601c599c19884992f08ebacae810426f9 462 | React-RCTImage: 5a46c12327d0d6f6844a1fe38baa92a1e02847e8 463 | React-RCTLinking: 63dd8305591e1def35267557ed42918aec9eb30b 464 | React-RCTNetwork: d0516e39a5f736b2bff671c3e03804200161dcd3 465 | React-RCTSettings: a09566b14f1649f6c8a39ad1a174bb5c0631bb09 466 | React-RCTText: 04a2f0a281f715f0aed4f515717fafd64510e2c8 467 | React-RCTVibration: c7f845861e79eae13dc1e8217a3cf47a3945b504 468 | React-runtimeexecutor: 493d9abb8b23c3f84e19ae221eeba92cadcb70dc 469 | ReactCommon: 8fea6422328e2fc093e25c9fac67adbcf0f04fb4 470 | Yoga: e6ecf3fa25af9d4c87e94ad7d5d292eedef49749 471 | 472 | PODFILE CHECKSUM: ebdc6e5db8ebdbe02712527ccb621b4c23f2b62d 473 | 474 | COCOAPODS: 1.11.3 475 | -------------------------------------------------------------------------------- /example/ios/Podfile.properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo.jsEngine": "jsc" 3 | } 4 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 12 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 13 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; }; 14 | 96905EF65AED1B983A6B3ABC /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-example.a */; }; 15 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; }; 16 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 21 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; }; 23 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; }; 24 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; }; 25 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; }; 26 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; }; 27 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | 6C2E3173556A471DD304B334 /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = ""; }; 29 | 7A4D352CD337FB3A3BF06240 /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = ""; }; 30 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = example/SplashScreen.storyboard; sourceTree = ""; }; 31 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; }; 32 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 33 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-example/ExpoModulesProvider.swift"; sourceTree = ""; }; 34 | /* End PBXFileReference section */ 35 | 36 | /* Begin PBXFrameworksBuildPhase section */ 37 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 38 | isa = PBXFrameworksBuildPhase; 39 | buildActionMask = 2147483647; 40 | files = ( 41 | 96905EF65AED1B983A6B3ABC /* libPods-example.a in Frameworks */, 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 13B07FAE1A68108700A75B9A /* example */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | BB2F792B24A3F905000567C9 /* Supporting */, 52 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 53 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 54 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 55 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 56 | 13B07FB61A68108700A75B9A /* Info.plist */, 57 | 13B07FB71A68108700A75B9A /* main.m */, 58 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */, 59 | ); 60 | name = example; 61 | sourceTree = ""; 62 | }; 63 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 64 | isa = PBXGroup; 65 | children = ( 66 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 67 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-example.a */, 68 | ); 69 | name = Frameworks; 70 | sourceTree = ""; 71 | }; 72 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | ); 76 | name = Libraries; 77 | sourceTree = ""; 78 | }; 79 | 83CBB9F61A601CBA00E9B192 = { 80 | isa = PBXGroup; 81 | children = ( 82 | 13B07FAE1A68108700A75B9A /* example */, 83 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 84 | 83CBBA001A601CBA00E9B192 /* Products */, 85 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 86 | D65327D7A22EEC0BE12398D9 /* Pods */, 87 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */, 88 | ); 89 | indentWidth = 2; 90 | sourceTree = ""; 91 | tabWidth = 2; 92 | usesTabs = 0; 93 | }; 94 | 83CBBA001A601CBA00E9B192 /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 13B07F961A680F5B00A75B9A /* example.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 92DBD88DE9BF7D494EA9DA96 /* example */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */, 106 | ); 107 | name = example; 108 | sourceTree = ""; 109 | }; 110 | BB2F792B24A3F905000567C9 /* Supporting */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | BB2F792C24A3F905000567C9 /* Expo.plist */, 114 | ); 115 | name = Supporting; 116 | path = example/Supporting; 117 | sourceTree = ""; 118 | }; 119 | D65327D7A22EEC0BE12398D9 /* Pods */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 6C2E3173556A471DD304B334 /* Pods-example.debug.xcconfig */, 123 | 7A4D352CD337FB3A3BF06240 /* Pods-example.release.xcconfig */, 124 | ); 125 | path = Pods; 126 | sourceTree = ""; 127 | }; 128 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 92DBD88DE9BF7D494EA9DA96 /* example */, 132 | ); 133 | name = ExpoModulesProviders; 134 | sourceTree = ""; 135 | }; 136 | /* End PBXGroup section */ 137 | 138 | /* Begin PBXNativeTarget section */ 139 | 13B07F861A680F5B00A75B9A /* example */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */; 142 | buildPhases = ( 143 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */, 144 | FD10A7F022414F080027D42C /* Start Packager */, 145 | 13B07F871A680F5B00A75B9A /* Sources */, 146 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 147 | 13B07F8E1A680F5B00A75B9A /* Resources */, 148 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 149 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */, 150 | ); 151 | buildRules = ( 152 | ); 153 | dependencies = ( 154 | ); 155 | name = example; 156 | productName = example; 157 | productReference = 13B07F961A680F5B00A75B9A /* example.app */; 158 | productType = "com.apple.product-type.application"; 159 | }; 160 | /* End PBXNativeTarget section */ 161 | 162 | /* Begin PBXProject section */ 163 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 164 | isa = PBXProject; 165 | attributes = { 166 | LastUpgradeCheck = 1130; 167 | TargetAttributes = { 168 | 13B07F861A680F5B00A75B9A = { 169 | DevelopmentTeam = 6VRGUC6TLB; 170 | LastSwiftMigration = 1250; 171 | ProvisioningStyle = Automatic; 172 | }; 173 | }; 174 | }; 175 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */; 176 | compatibilityVersion = "Xcode 3.2"; 177 | developmentRegion = en; 178 | hasScannedForEncodings = 0; 179 | knownRegions = ( 180 | en, 181 | Base, 182 | ); 183 | mainGroup = 83CBB9F61A601CBA00E9B192; 184 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 185 | projectDirPath = ""; 186 | projectRoot = ""; 187 | targets = ( 188 | 13B07F861A680F5B00A75B9A /* example */, 189 | ); 190 | }; 191 | /* End PBXProject section */ 192 | 193 | /* Begin PBXResourcesBuildPhase section */ 194 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 195 | isa = PBXResourcesBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */, 199 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 200 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | /* End PBXResourcesBuildPhase section */ 205 | 206 | /* Begin PBXShellScriptBuildPhase section */ 207 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 208 | isa = PBXShellScriptBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | ); 212 | inputPaths = ( 213 | ); 214 | name = "Bundle React Native code and images"; 215 | outputPaths = ( 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | shellPath = /bin/sh; 219 | shellScript = "export NODE_BINARY=node\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\n`node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n"; 220 | }; 221 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = { 222 | isa = PBXShellScriptBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | ); 226 | inputFileListPaths = ( 227 | ); 228 | inputPaths = ( 229 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 230 | "${PODS_ROOT}/Manifest.lock", 231 | ); 232 | name = "[CP] Check Pods Manifest.lock"; 233 | outputFileListPaths = ( 234 | ); 235 | outputPaths = ( 236 | "$(DERIVED_FILE_DIR)/Pods-example-checkManifestLockResult.txt", 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | shellPath = /bin/sh; 240 | 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"; 241 | showEnvVarsInLog = 0; 242 | }; 243 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = { 244 | isa = PBXShellScriptBuildPhase; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | ); 248 | inputPaths = ( 249 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh", 250 | "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle", 251 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 252 | ); 253 | name = "[CP] Copy Pods Resources"; 254 | outputPaths = ( 255 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle", 256 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | shellPath = /bin/sh; 260 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\"\n"; 261 | showEnvVarsInLog = 0; 262 | }; 263 | FD10A7F022414F080027D42C /* Start Packager */ = { 264 | isa = PBXShellScriptBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | ); 268 | inputFileListPaths = ( 269 | ); 270 | inputPaths = ( 271 | ); 272 | name = "Start Packager"; 273 | outputFileListPaths = ( 274 | ); 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/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 `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | /* End PBXShellScriptBuildPhase section */ 283 | 284 | /* Begin PBXSourcesBuildPhase section */ 285 | 13B07F871A680F5B00A75B9A /* Sources */ = { 286 | isa = PBXSourcesBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 290 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 291 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXSourcesBuildPhase section */ 296 | 297 | /* Begin XCBuildConfiguration section */ 298 | 13B07F941A680F5B00A75B9A /* Debug */ = { 299 | isa = XCBuildConfiguration; 300 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-example.debug.xcconfig */; 301 | buildSettings = { 302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 303 | CLANG_ENABLE_MODULES = YES; 304 | CODE_SIGN_IDENTITY = "Apple Development"; 305 | CODE_SIGN_STYLE = Automatic; 306 | CURRENT_PROJECT_VERSION = 1; 307 | DEVELOPMENT_TEAM = 6VRGUC6TLB; 308 | ENABLE_BITCODE = NO; 309 | GCC_PREPROCESSOR_DEFINITIONS = ( 310 | "$(inherited)", 311 | "FB_SONARKIT_ENABLED=1", 312 | ); 313 | INFOPLIST_FILE = example/Info.plist; 314 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 315 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 316 | OTHER_LDFLAGS = ( 317 | "$(inherited)", 318 | "-ObjC", 319 | "-lc++", 320 | ); 321 | PRODUCT_BUNDLE_IDENTIFIER = org.name.example; 322 | PRODUCT_NAME = example; 323 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 324 | SWIFT_VERSION = 5.0; 325 | VERSIONING_SYSTEM = "apple-generic"; 326 | }; 327 | name = Debug; 328 | }; 329 | 13B07F951A680F5B00A75B9A /* Release */ = { 330 | isa = XCBuildConfiguration; 331 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-example.release.xcconfig */; 332 | buildSettings = { 333 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 334 | CLANG_ENABLE_MODULES = YES; 335 | CODE_SIGN_IDENTITY = "Apple Development"; 336 | CODE_SIGN_STYLE = Automatic; 337 | CURRENT_PROJECT_VERSION = 1; 338 | DEVELOPMENT_TEAM = 6VRGUC6TLB; 339 | INFOPLIST_FILE = example/Info.plist; 340 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 341 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 342 | OTHER_LDFLAGS = ( 343 | "$(inherited)", 344 | "-ObjC", 345 | "-lc++", 346 | ); 347 | PRODUCT_BUNDLE_IDENTIFIER = org.name.example; 348 | PRODUCT_NAME = example; 349 | SWIFT_VERSION = 5.0; 350 | VERSIONING_SYSTEM = "apple-generic"; 351 | }; 352 | name = Release; 353 | }; 354 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ALWAYS_SEARCH_USER_PATHS = NO; 358 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 359 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 360 | CLANG_CXX_LIBRARY = "libc++"; 361 | CLANG_ENABLE_MODULES = YES; 362 | CLANG_ENABLE_OBJC_ARC = YES; 363 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 364 | CLANG_WARN_BOOL_CONVERSION = YES; 365 | CLANG_WARN_COMMA = YES; 366 | CLANG_WARN_CONSTANT_CONVERSION = YES; 367 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 368 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 369 | CLANG_WARN_EMPTY_BODY = YES; 370 | CLANG_WARN_ENUM_CONVERSION = YES; 371 | CLANG_WARN_INFINITE_RECURSION = YES; 372 | CLANG_WARN_INT_CONVERSION = YES; 373 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 374 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 375 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 376 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 377 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 378 | CLANG_WARN_STRICT_PROTOTYPES = YES; 379 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 380 | CLANG_WARN_UNREACHABLE_CODE = YES; 381 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 382 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 383 | COPY_PHASE_STRIP = NO; 384 | ENABLE_STRICT_OBJC_MSGSEND = YES; 385 | ENABLE_TESTABILITY = YES; 386 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; 387 | GCC_C_LANGUAGE_STANDARD = gnu99; 388 | GCC_DYNAMIC_NO_PIC = NO; 389 | GCC_NO_COMMON_BLOCKS = YES; 390 | GCC_OPTIMIZATION_LEVEL = 0; 391 | GCC_PREPROCESSOR_DEFINITIONS = ( 392 | "DEBUG=1", 393 | "$(inherited)", 394 | ); 395 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 396 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 397 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 398 | GCC_WARN_UNDECLARED_SELECTOR = YES; 399 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 400 | GCC_WARN_UNUSED_FUNCTION = YES; 401 | GCC_WARN_UNUSED_VARIABLE = YES; 402 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 403 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 404 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 405 | MTL_ENABLE_DEBUG_INFO = YES; 406 | ONLY_ACTIVE_ARCH = YES; 407 | SDKROOT = iphoneos; 408 | }; 409 | name = Debug; 410 | }; 411 | 83CBBA211A601CBA00E9B192 /* Release */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | ALWAYS_SEARCH_USER_PATHS = NO; 415 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 416 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 417 | CLANG_CXX_LIBRARY = "libc++"; 418 | CLANG_ENABLE_MODULES = YES; 419 | CLANG_ENABLE_OBJC_ARC = YES; 420 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 421 | CLANG_WARN_BOOL_CONVERSION = YES; 422 | CLANG_WARN_COMMA = YES; 423 | CLANG_WARN_CONSTANT_CONVERSION = YES; 424 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 425 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 426 | CLANG_WARN_EMPTY_BODY = YES; 427 | CLANG_WARN_ENUM_CONVERSION = YES; 428 | CLANG_WARN_INFINITE_RECURSION = YES; 429 | CLANG_WARN_INT_CONVERSION = YES; 430 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 431 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 432 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 433 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 434 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 435 | CLANG_WARN_STRICT_PROTOTYPES = YES; 436 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 437 | CLANG_WARN_UNREACHABLE_CODE = YES; 438 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 439 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 440 | COPY_PHASE_STRIP = YES; 441 | ENABLE_NS_ASSERTIONS = NO; 442 | ENABLE_STRICT_OBJC_MSGSEND = YES; 443 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; 444 | GCC_C_LANGUAGE_STANDARD = gnu99; 445 | GCC_NO_COMMON_BLOCKS = YES; 446 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 447 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 448 | GCC_WARN_UNDECLARED_SELECTOR = YES; 449 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 450 | GCC_WARN_UNUSED_FUNCTION = YES; 451 | GCC_WARN_UNUSED_VARIABLE = YES; 452 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 453 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 454 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 455 | MTL_ENABLE_DEBUG_INFO = NO; 456 | SDKROOT = iphoneos; 457 | VALIDATE_PRODUCT = YES; 458 | }; 459 | name = Release; 460 | }; 461 | /* End XCBuildConfiguration section */ 462 | 463 | /* Begin XCConfigurationList section */ 464 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = { 465 | isa = XCConfigurationList; 466 | buildConfigurations = ( 467 | 13B07F941A680F5B00A75B9A /* Debug */, 468 | 13B07F951A680F5B00A75B9A /* Release */, 469 | ); 470 | defaultConfigurationIsVisible = 0; 471 | defaultConfigurationName = Release; 472 | }; 473 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = { 474 | isa = XCConfigurationList; 475 | buildConfigurations = ( 476 | 83CBBA201A601CBA00E9B192 /* Debug */, 477 | 83CBBA211A601CBA00E9B192 /* Release */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | /* End XCConfigurationList section */ 483 | }; 484 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 485 | } 486 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/xcshareddata/xcschemes/example.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 | -------------------------------------------------------------------------------- /example/ios/example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/example.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/example/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | #import 6 | 7 | @interface AppDelegate : EXAppDelegateWrapper 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /example/ios/example/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | #import 8 | 9 | #if defined(FB_SONARKIT_ENABLED) && __has_include() 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import 16 | 17 | static void InitializeFlipper(UIApplication *application) { 18 | FlipperClient *client = [FlipperClient sharedClient]; 19 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 20 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 21 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 22 | [client addPlugin:[FlipperKitReactPlugin new]]; 23 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 24 | [client start]; 25 | } 26 | #endif 27 | 28 | @implementation AppDelegate 29 | 30 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 31 | { 32 | #if defined(FB_SONARKIT_ENABLED) && __has_include() 33 | InitializeFlipper(application); 34 | #endif 35 | 36 | RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions]; 37 | RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil]; 38 | rootView.backgroundColor = [UIColor whiteColor]; 39 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 40 | UIViewController *rootViewController = [self.reactDelegate createRootViewController]; 41 | rootViewController.view = rootView; 42 | self.window.rootViewController = rootViewController; 43 | [self.window makeKeyAndVisible]; 44 | 45 | [super application:application didFinishLaunchingWithOptions:launchOptions]; 46 | 47 | return YES; 48 | } 49 | 50 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge 51 | { 52 | // If you'd like to export some custom RCTBridgeModules, add them here! 53 | return @[]; 54 | } 55 | 56 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { 57 | #ifdef DEBUG 58 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 59 | #else 60 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 61 | #endif 62 | } 63 | 64 | // Linking API 65 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { 66 | return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options]; 67 | } 68 | 69 | // Universal Links 70 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { 71 | BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler]; 72 | return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result; 73 | } 74 | 75 | @end 76 | -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "expo" 37 | } 38 | } -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "expo" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/SplashScreen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "splashscreen.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/SplashScreen.imageset/splashscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/ios/example/Images.xcassets/SplashScreen.imageset/splashscreen.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/SplashScreenBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "background.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/SplashScreenBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lklima/react-native-video-manager/7293e73f047baf7f566305dda6d9e59105ece84f/example/ios/example/Images.xcassets/SplashScreenBackground.imageset/background.png -------------------------------------------------------------------------------- /example/ios/example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleSignature 18 | ???? 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSCameraUsageDescription 26 | Allow $(PRODUCT_NAME) to use the camera 27 | NSMicrophoneUsageDescription 28 | Allow $(PRODUCT_NAME) to use the microphone 29 | NSAppTransportSecurity 30 | 31 | NSAllowsArbitraryLoads 32 | 33 | NSExceptionDomains 34 | 35 | localhost 36 | 37 | NSExceptionAllowsInsecureHTTPLoads 38 | 39 | 40 | 41 | 42 | UILaunchStoryboardName 43 | SplashScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | UIStatusBarStyle 57 | UIStatusBarStyleDefault 58 | 59 | 60 | -------------------------------------------------------------------------------- /example/ios/example/SplashScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 31 | 39 | 40 | 41 | 42 | 53 | 54 | 55 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /example/ios/example/Supporting/Expo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | EXUpdatesSDKVersion 6 | YOUR-APP-SDK-VERSION-HERE 7 | EXUpdatesURL 8 | YOUR-APP-URL-HERE 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/example/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- 1 | // Learn more https://docs.expo.io/guides/customizing-metro 2 | const { getDefaultConfig } = require('expo/metro-config'); 3 | 4 | module.exports = getDefaultConfig(__dirname); 5 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "scripts": { 6 | "start": "expo start --dev-client", 7 | "android": "expo run:android", 8 | "ios": "expo run:ios", 9 | "device": "expo run:ios -d" 10 | }, 11 | "dependencies": { 12 | "expo": "~44.0.2", 13 | "expo-av": "~10.2.0", 14 | "expo-camera": "~12.1.2", 15 | "expo-splash-screen": "~0.14.1", 16 | "expo-status-bar": "~1.2.0", 17 | "expo-video-thumbnails": "~6.1.0", 18 | "react": "17.0.1", 19 | "react-native": "0.64.3", 20 | "react-native-video-manager": "../" 21 | }, 22 | "devDependencies": { 23 | "@babel/core": "^7.12.9" 24 | }, 25 | "private": true 26 | } 27 | -------------------------------------------------------------------------------- /example/src/Main/components/PlayModal/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Text, View, TouchableOpacity, Modal } from "react-native"; 3 | import { Video } from "expo-av"; 4 | 5 | import { styles } from "./styles"; 6 | 7 | export default function PLayModal({ videoUri, isOpen, close }) { 8 | return ( 9 | 10 | 11 | 12 | 24 | 25 | 26 | ); 27 | } 28 | -------------------------------------------------------------------------------- /example/src/Main/components/PlayModal/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from "react-native"; 2 | 3 | export const styles = StyleSheet.create({ 4 | backdrop: { 5 | flex: 1, 6 | backgroundColor: "rgba(0, 0, 0, 0.5)", 7 | alignItems: "center", 8 | justifyContent: "center", 9 | }, 10 | container: { 11 | width: "80%", 12 | height: "60%", 13 | backgroundColor: "white", 14 | }, 15 | video: { 16 | flex: 1, 17 | }, 18 | button: { 19 | width: "100%", 20 | height: 40, 21 | backgroundColor: "#ddd", 22 | alignItems: "center", 23 | justifyContent: "center", 24 | }, 25 | }); 26 | -------------------------------------------------------------------------------- /example/src/Main/index.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect, useRef } from "react"; 2 | import { 3 | Text, 4 | View, 5 | TouchableOpacity, 6 | Image, 7 | FlatList, 8 | ActivityIndicator, 9 | } from "react-native"; 10 | import { Camera } from "expo-camera"; 11 | import { MaterialIcons } from "@expo/vector-icons"; 12 | import * as VideoThumbnails from "expo-video-thumbnails"; 13 | import { VideoManager } from "react-native-video-manager"; 14 | 15 | import { styles } from "./styles"; 16 | 17 | import PLayModal from "./components/PlayModal"; 18 | 19 | export default function Main() { 20 | const [hasPermission, setHasPermission] = useState(null); 21 | const [type, setType] = useState(Camera.Constants.Type.front); 22 | const [isRecording, setIsRecording] = useState(false); 23 | const [isMerging, setIsMerging] = useState(false); 24 | const [isOpenModal, setIsOpenModal] = useState(false); 25 | const [videoUri, setVideoUri] = useState(""); 26 | const [videos, setVideos] = useState([]); 27 | const [thumbs, setThumbs] = useState([]); 28 | 29 | const cameraRef = useRef(null); 30 | 31 | useEffect(() => { 32 | (async () => { 33 | const { status } = await Camera.requestCameraPermissionsAsync(); 34 | const { status: MicStatus } = await Camera.requestMicrophonePermissionsAsync(); 35 | const allowed = status === "granted" && MicStatus === "granted"; 36 | 37 | setHasPermission(allowed); 38 | })(); 39 | }, []); 40 | 41 | function handleFlip() { 42 | setType( 43 | type === Camera.Constants.Type.back 44 | ? Camera.Constants.Type.front 45 | : Camera.Constants.Type.back 46 | ); 47 | } 48 | 49 | async function handleRecord() { 50 | if (isRecording) { 51 | cameraRef.current.stopRecording(); 52 | setIsRecording(false); 53 | } else { 54 | setIsRecording(true); 55 | const { uri } = await cameraRef.current.recordAsync({ maxDuration: 5 }); 56 | const { uri: thumbUri } = await VideoThumbnails.getThumbnailAsync(uri); 57 | 58 | setThumbs((prev) => [...prev, thumbUri]); 59 | setVideos((current) => [...current, uri]); 60 | setIsRecording(false); 61 | } 62 | } 63 | 64 | async function handleMerge() { 65 | if (videos.length < 2) return; 66 | 67 | setIsMerging(true); 68 | 69 | try { 70 | const { uri } = await VideoManager.merge(videos); 71 | 72 | setIsMerging(false); 73 | setVideoUri(uri); 74 | setIsOpenModal(true); 75 | } catch (error) { 76 | setIsMerging(false); 77 | console.log(error); 78 | } 79 | } 80 | 81 | if (hasPermission === null) { 82 | return ; 83 | } 84 | 85 | if (hasPermission === false) { 86 | return No access to camera; 87 | } 88 | 89 | return ( 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 104 | 105 | 106 | 107 | item} 110 | horizontal 111 | contentContainerStyle={{ alignItems: "center" }} 112 | renderItem={({ item }) => ( 113 | 114 | )} 115 | /> 116 | 117 | 118 | {isMerging ? : "MERGE VIDEOS"} 119 | 120 | 121 | setIsOpenModal(false)} 125 | /> 126 | 127 | ); 128 | } 129 | -------------------------------------------------------------------------------- /example/src/Main/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from "react-native"; 2 | 3 | export const styles = StyleSheet.create({ 4 | container: { 5 | flex: 1, 6 | }, 7 | camerContent: { 8 | height: "70%", 9 | }, 10 | camera: { 11 | flex: 1, 12 | }, 13 | buttonContainer: { 14 | flexDirection: "row", 15 | position: "absolute", 16 | bottom: 0, 17 | width: "100%", 18 | alignItems: "center", 19 | justifyContent: "center", 20 | padding: 20, 21 | }, 22 | flipButton: { 23 | position: "absolute", 24 | left: 20, 25 | height: 40, 26 | width: 40, 27 | borderRadius: 40, 28 | backgroundColor: "rgba(0, 0, 0, 0.4)", 29 | alignItems: "center", 30 | justifyContent: "center", 31 | }, 32 | recButton: { 33 | height: 60, 34 | width: 60, 35 | borderRadius: 30, 36 | borderWidth: 4, 37 | borderColor: "white", 38 | }, 39 | text: { 40 | fontSize: 18, 41 | color: "white", 42 | }, 43 | tumbContent: { 44 | width: "100%", 45 | height: 70, 46 | backgroundColor: "gray", 47 | }, 48 | thumb: { 49 | height: 75, 50 | width: 75, 51 | margin: 8, 52 | borderWidth: 2, 53 | borderColor: "black", 54 | }, 55 | mergeButton: { 56 | backgroundColor: "#4caf50", 57 | height: 45, 58 | width: "90%", 59 | borderRadius: 10, 60 | alignItems: "center", 61 | justifyContent: "center", 62 | alignSelf: "center", 63 | marginBottom: 20, 64 | }, 65 | mergeButtonText: { 66 | color: "white", 67 | fontSize: 18, 68 | fontWeight: "bold", 69 | }, 70 | }); 71 | -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | export { VideoManager } from "./lib"; 2 | -------------------------------------------------------------------------------- /ios/RNVideoManager.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | #import 4 | #import 5 | 6 | @interface RNVideoManager : NSObject 7 | 8 | @end 9 | 10 | -------------------------------------------------------------------------------- /ios/RNVideoManager.m: -------------------------------------------------------------------------------- 1 | 2 | #import "RNVideoManager.h" 3 | 4 | @implementation RNVideoManager 5 | 6 | - (dispatch_queue_t)methodQueue 7 | { 8 | return dispatch_get_main_queue(); 9 | } 10 | RCT_EXPORT_MODULE() 11 | 12 | RCT_EXPORT_METHOD(merge:(NSArray *)fileNames 13 | resolver:(RCTPromiseResolveBlock)resolve 14 | rejecter:(RCTPromiseRejectBlock)reject) { 15 | 16 | NSLog(@"%@ %@", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); 17 | 18 | [self MergeVideo:fileNames resolver:resolve rejecter:reject]; 19 | } 20 | 21 | -(void)LoopVideo:(NSArray *)fileNames callback:(RCTResponseSenderBlock)successCallback 22 | { 23 | for (id object in fileNames) 24 | { 25 | NSLog(@"video: %@", object); 26 | } 27 | } 28 | 29 | -(void)MergeVideo:(NSArray *)fileNames resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject 30 | { 31 | 32 | CGFloat totalDuration; 33 | totalDuration = 0; 34 | 35 | AVMutableComposition *mixComposition = [[AVMutableComposition alloc] init]; 36 | 37 | AVMutableCompositionTrack *videoTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeVideo 38 | preferredTrackID:kCMPersistentTrackID_Invalid]; 39 | 40 | AVMutableCompositionTrack *audioTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeAudio 41 | preferredTrackID:kCMPersistentTrackID_Invalid]; 42 | 43 | CMTime insertTime = kCMTimeZero; 44 | CGAffineTransform originalTransform; 45 | 46 | for (id object in fileNames) 47 | { 48 | 49 | AVAsset *asset = [AVAsset assetWithURL:[NSURL fileURLWithPath:object]]; 50 | 51 | CMTimeRange timeRange = CMTimeRangeMake(kCMTimeZero, asset.duration); 52 | 53 | [videoTrack insertTimeRange:timeRange 54 | ofTrack:[[asset tracksWithMediaType:AVMediaTypeVideo] objectAtIndex:0] 55 | atTime:insertTime 56 | error:nil]; 57 | 58 | [audioTrack insertTimeRange:timeRange 59 | ofTrack:[[asset tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0] 60 | atTime:insertTime 61 | error:nil]; 62 | 63 | insertTime = CMTimeAdd(insertTime,asset.duration); 64 | 65 | // Get the first track from the asset and its transform. 66 | NSArray* tracks = [asset tracks]; 67 | AVAssetTrack* track = [tracks objectAtIndex:0]; 68 | originalTransform = [track preferredTransform]; 69 | } 70 | 71 | // Use the transform from the original track to set the video track transform. 72 | if (originalTransform.a || originalTransform.b || originalTransform.c || originalTransform.d) { 73 | videoTrack.preferredTransform = originalTransform; 74 | } 75 | 76 | NSString* documentsDirectory= [self applicationDocumentsDirectory]; 77 | NSString * myDocumentPath = [documentsDirectory stringByAppendingPathComponent:@"merged_video.mp4"]; 78 | NSURL * urlVideoMain = [[NSURL alloc] initFileURLWithPath: myDocumentPath]; 79 | 80 | if([[NSFileManager defaultManager] fileExistsAtPath:myDocumentPath]) 81 | { 82 | [[NSFileManager defaultManager] removeItemAtPath:myDocumentPath error:nil]; 83 | } 84 | 85 | AVAssetExportSession *exporter = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetName:AVAssetExportPresetHighestQuality]; 86 | exporter.outputURL = urlVideoMain; 87 | exporter.outputFileType = @"com.apple.quicktime-movie"; 88 | exporter.shouldOptimizeForNetworkUse = YES; 89 | 90 | [exporter exportAsynchronouslyWithCompletionHandler:^{ 91 | 92 | switch ([exporter status]) 93 | { 94 | case AVAssetExportSessionStatusFailed: 95 | reject(@"event_failure", @"merge video error", nil); 96 | break; 97 | 98 | case AVAssetExportSessionStatusCancelled: 99 | break; 100 | 101 | case AVAssetExportSessionStatusCompleted: 102 | resolve([@"file://" stringByAppendingString:myDocumentPath]); 103 | break; 104 | default: 105 | break; 106 | } 107 | }]; 108 | } 109 | 110 | - (NSString*) applicationDocumentsDirectory 111 | { 112 | NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 113 | NSString* basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil; 114 | return basePath; 115 | } 116 | 117 | @end 118 | 119 | -------------------------------------------------------------------------------- /ios/RNVideoManager.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B3E7B58A1CC2AC0600A0062D /* RNVideoManager.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNVideoManager.m */; }; 11 | /* End PBXBuildFile section */ 12 | 13 | /* Begin PBXCopyFilesBuildPhase section */ 14 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 15 | isa = PBXCopyFilesBuildPhase; 16 | buildActionMask = 2147483647; 17 | dstPath = "include/$(PRODUCT_NAME)"; 18 | dstSubfolderSpec = 16; 19 | files = ( 20 | ); 21 | runOnlyForDeploymentPostprocessing = 0; 22 | }; 23 | /* End PBXCopyFilesBuildPhase section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 134814201AA4EA6300B7C361 /* libRNVideoManager.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNVideoManager.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | B3E7B5881CC2AC0600A0062D /* RNVideoManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNVideoManager.h; sourceTree = ""; }; 28 | B3E7B5891CC2AC0600A0062D /* RNVideoManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNVideoManager.m; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 134814211AA4EA7D00B7C361 /* Products */ = { 43 | isa = PBXGroup; 44 | children = ( 45 | 134814201AA4EA6300B7C361 /* libRNVideoManager.a */, 46 | ); 47 | name = Products; 48 | sourceTree = ""; 49 | }; 50 | 58B511D21A9E6C8500147676 = { 51 | isa = PBXGroup; 52 | children = ( 53 | B3E7B5881CC2AC0600A0062D /* RNVideoManager.h */, 54 | B3E7B5891CC2AC0600A0062D /* RNVideoManager.m */, 55 | 134814211AA4EA7D00B7C361 /* Products */, 56 | ); 57 | sourceTree = ""; 58 | }; 59 | /* End PBXGroup section */ 60 | 61 | /* Begin PBXNativeTarget section */ 62 | 58B511DA1A9E6C8500147676 /* RNVideoManager */ = { 63 | isa = PBXNativeTarget; 64 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNVideoManager" */; 65 | buildPhases = ( 66 | 58B511D71A9E6C8500147676 /* Sources */, 67 | 58B511D81A9E6C8500147676 /* Frameworks */, 68 | 58B511D91A9E6C8500147676 /* CopyFiles */, 69 | ); 70 | buildRules = ( 71 | ); 72 | dependencies = ( 73 | ); 74 | name = RNVideoManager; 75 | productName = RCTDataManager; 76 | productReference = 134814201AA4EA6300B7C361 /* libRNVideoManager.a */; 77 | productType = "com.apple.product-type.library.static"; 78 | }; 79 | /* End PBXNativeTarget section */ 80 | 81 | /* Begin PBXProject section */ 82 | 58B511D31A9E6C8500147676 /* Project object */ = { 83 | isa = PBXProject; 84 | attributes = { 85 | LastUpgradeCheck = 0610; 86 | ORGANIZATIONNAME = Facebook; 87 | TargetAttributes = { 88 | 58B511DA1A9E6C8500147676 = { 89 | CreatedOnToolsVersion = 6.1.1; 90 | }; 91 | }; 92 | }; 93 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNVideoManager" */; 94 | compatibilityVersion = "Xcode 3.2"; 95 | developmentRegion = English; 96 | hasScannedForEncodings = 0; 97 | knownRegions = ( 98 | English, 99 | en, 100 | ); 101 | mainGroup = 58B511D21A9E6C8500147676; 102 | productRefGroup = 58B511D21A9E6C8500147676; 103 | projectDirPath = ""; 104 | projectRoot = ""; 105 | targets = ( 106 | 58B511DA1A9E6C8500147676 /* RNVideoManager */, 107 | ); 108 | }; 109 | /* End PBXProject section */ 110 | 111 | /* Begin PBXSourcesBuildPhase section */ 112 | 58B511D71A9E6C8500147676 /* Sources */ = { 113 | isa = PBXSourcesBuildPhase; 114 | buildActionMask = 2147483647; 115 | files = ( 116 | B3E7B58A1CC2AC0600A0062D /* RNVideoManager.m in Sources */, 117 | ); 118 | runOnlyForDeploymentPostprocessing = 0; 119 | }; 120 | /* End PBXSourcesBuildPhase section */ 121 | 122 | /* Begin XCBuildConfiguration section */ 123 | 58B511ED1A9E6C8500147676 /* Debug */ = { 124 | isa = XCBuildConfiguration; 125 | buildSettings = { 126 | ALWAYS_SEARCH_USER_PATHS = NO; 127 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 128 | CLANG_CXX_LIBRARY = "libc++"; 129 | CLANG_ENABLE_MODULES = YES; 130 | CLANG_ENABLE_OBJC_ARC = YES; 131 | CLANG_WARN_BOOL_CONVERSION = YES; 132 | CLANG_WARN_CONSTANT_CONVERSION = YES; 133 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 134 | CLANG_WARN_EMPTY_BODY = YES; 135 | CLANG_WARN_ENUM_CONVERSION = YES; 136 | CLANG_WARN_INT_CONVERSION = YES; 137 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 138 | CLANG_WARN_UNREACHABLE_CODE = YES; 139 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 140 | COPY_PHASE_STRIP = NO; 141 | ENABLE_STRICT_OBJC_MSGSEND = YES; 142 | GCC_C_LANGUAGE_STANDARD = gnu99; 143 | GCC_DYNAMIC_NO_PIC = NO; 144 | GCC_OPTIMIZATION_LEVEL = 0; 145 | GCC_PREPROCESSOR_DEFINITIONS = ( 146 | "DEBUG=1", 147 | "$(inherited)", 148 | ); 149 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 150 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 151 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 152 | GCC_WARN_UNDECLARED_SELECTOR = YES; 153 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 154 | GCC_WARN_UNUSED_FUNCTION = YES; 155 | GCC_WARN_UNUSED_VARIABLE = YES; 156 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 157 | MTL_ENABLE_DEBUG_INFO = YES; 158 | ONLY_ACTIVE_ARCH = YES; 159 | SDKROOT = iphoneos; 160 | }; 161 | name = Debug; 162 | }; 163 | 58B511EE1A9E6C8500147676 /* Release */ = { 164 | isa = XCBuildConfiguration; 165 | buildSettings = { 166 | ALWAYS_SEARCH_USER_PATHS = NO; 167 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 168 | CLANG_CXX_LIBRARY = "libc++"; 169 | CLANG_ENABLE_MODULES = YES; 170 | CLANG_ENABLE_OBJC_ARC = YES; 171 | CLANG_WARN_BOOL_CONVERSION = YES; 172 | CLANG_WARN_CONSTANT_CONVERSION = YES; 173 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 174 | CLANG_WARN_EMPTY_BODY = YES; 175 | CLANG_WARN_ENUM_CONVERSION = YES; 176 | CLANG_WARN_INT_CONVERSION = YES; 177 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 178 | CLANG_WARN_UNREACHABLE_CODE = YES; 179 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 180 | COPY_PHASE_STRIP = YES; 181 | ENABLE_NS_ASSERTIONS = NO; 182 | ENABLE_STRICT_OBJC_MSGSEND = YES; 183 | GCC_C_LANGUAGE_STANDARD = gnu99; 184 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 185 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 186 | GCC_WARN_UNDECLARED_SELECTOR = YES; 187 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 188 | GCC_WARN_UNUSED_FUNCTION = YES; 189 | GCC_WARN_UNUSED_VARIABLE = YES; 190 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 191 | MTL_ENABLE_DEBUG_INFO = NO; 192 | SDKROOT = iphoneos; 193 | VALIDATE_PRODUCT = YES; 194 | }; 195 | name = Release; 196 | }; 197 | 58B511F01A9E6C8500147676 /* Debug */ = { 198 | isa = XCBuildConfiguration; 199 | buildSettings = { 200 | HEADER_SEARCH_PATHS = ( 201 | "$(inherited)", 202 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 203 | "$(SRCROOT)/../../../React/**", 204 | "$(SRCROOT)/../../react-native/React/**", 205 | ); 206 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 207 | OTHER_LDFLAGS = "-ObjC"; 208 | PRODUCT_NAME = RNVideoManager; 209 | SKIP_INSTALL = YES; 210 | }; 211 | name = Debug; 212 | }; 213 | 58B511F11A9E6C8500147676 /* Release */ = { 214 | isa = XCBuildConfiguration; 215 | buildSettings = { 216 | HEADER_SEARCH_PATHS = ( 217 | "$(inherited)", 218 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 219 | "$(SRCROOT)/../../../React/**", 220 | "$(SRCROOT)/../../react-native/React/**", 221 | ); 222 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 223 | OTHER_LDFLAGS = "-ObjC"; 224 | PRODUCT_NAME = RNVideoManager; 225 | SKIP_INSTALL = YES; 226 | }; 227 | name = Release; 228 | }; 229 | /* End XCBuildConfiguration section */ 230 | 231 | /* Begin XCConfigurationList section */ 232 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNVideoManager" */ = { 233 | isa = XCConfigurationList; 234 | buildConfigurations = ( 235 | 58B511ED1A9E6C8500147676 /* Debug */, 236 | 58B511EE1A9E6C8500147676 /* Release */, 237 | ); 238 | defaultConfigurationIsVisible = 0; 239 | defaultConfigurationName = Release; 240 | }; 241 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNVideoManager" */ = { 242 | isa = XCConfigurationList; 243 | buildConfigurations = ( 244 | 58B511F01A9E6C8500147676 /* Debug */, 245 | 58B511F11A9E6C8500147676 /* Release */, 246 | ); 247 | defaultConfigurationIsVisible = 0; 248 | defaultConfigurationName = Release; 249 | }; 250 | /* End XCConfigurationList section */ 251 | }; 252 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 253 | } 254 | -------------------------------------------------------------------------------- /ios/RNVideoManager.xcodeproj/xcshareddata/xcschemes/RNVideoManager.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 50 | 51 | 57 | 58 | 59 | 60 | 62 | 63 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /lib/RNVideoManager.ts: -------------------------------------------------------------------------------- 1 | import { NativeModules } from "react-native"; 2 | 3 | const { RNVideoManager } = NativeModules; 4 | 5 | interface Response { 6 | uri: string; 7 | } 8 | 9 | export async function merge(videos: string[]): Promise { 10 | const uri: string = await RNVideoManager.merge(videos); 11 | 12 | return { uri }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- 1 | import * as VideoManager from "./RNVideoManager"; 2 | 3 | export { VideoManager }; 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-video-manager", 3 | "version": "0.1.2", 4 | "license": "MIT", 5 | "bugs": { 6 | "url": "https://github.com/lklima/react-native-video-manager/issues" 7 | }, 8 | "homepage": "https://github.com/lklima/react-native-video-manager#readme", 9 | "description": "Module cross platform to merge multiple videos", 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/lklima/react-native-video-manager" 13 | }, 14 | "keywords": [ 15 | "react", 16 | "react-native", 17 | "ios", 18 | "android", 19 | "video", 20 | "manager", 21 | "merge", 22 | "videoedit" 23 | ], 24 | "author": "Lucas Lima", 25 | "main": "index.ts", 26 | "scripts": { 27 | "pods": "cd example && pod install" 28 | }, 29 | "peerDependencies": { 30 | "react": "*", 31 | "react-native": "*" 32 | }, 33 | "devDependencies": { 34 | "@types/jest": "^27.5.1", 35 | "@types/react": "^18.0.9", 36 | "@types/react-native": "^0.67.7", 37 | "@types/react-test-renderer": "^18.0.0", 38 | "typescript": "^4.6.4" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /react-native-video-manager.podspec: -------------------------------------------------------------------------------- 1 | require "json" 2 | 3 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) 4 | 5 | Pod::Spec.new do |s| 6 | s.name = "react-native-video-manager" 7 | s.version = package["version"] 8 | s.summary = package["description"] 9 | s.homepage = package["homepage"] 10 | s.license = package["license"] 11 | s.authors = package["author"] 12 | 13 | s.platforms = { :ios => "10.0" } 14 | s.source = { :git => "https://github.com/lklima/react-native-video-manager.git", :tag => "#{s.version}" } 15 | 16 | s.source_files = "ios/**/*.{h,m,mm}" 17 | 18 | s.dependency "React-Core" 19 | end 20 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "./", 4 | "allowUnreachableCode": false, 5 | "allowUnusedLabels": false, 6 | "esModuleInterop": true, 7 | "importsNotUsedAsValues": "error", 8 | "forceConsistentCasingInFileNames": true, 9 | "jsx": "react", 10 | "lib": ["esnext"], 11 | "module": "esnext", 12 | "moduleResolution": "node", 13 | "noFallthroughCasesInSwitch": true, 14 | "noImplicitReturns": true, 15 | "noImplicitUseStrict": false, 16 | "noStrictGenericChecks": false, 17 | "noUnusedLocals": true, 18 | "noUnusedParameters": true, 19 | "resolveJsonModule": true, 20 | "skipLibCheck": true, 21 | "strict": true, 22 | "target": "esnext" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@types/jest@^27.5.1": 6 | version "27.5.1" 7 | resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.5.1.tgz#2c8b6dc6ff85c33bcd07d0b62cb3d19ddfdb3ab9" 8 | integrity sha512-fUy7YRpT+rHXto1YlL+J9rs0uLGyiqVt3ZOTQR+4ROc47yNl8WLdVLgUloBRhOxP1PZvguHl44T3H0wAWxahYQ== 9 | dependencies: 10 | jest-matcher-utils "^27.0.0" 11 | pretty-format "^27.0.0" 12 | 13 | "@types/prop-types@*": 14 | version "15.7.5" 15 | resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" 16 | integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== 17 | 18 | "@types/react-native@^0.67.7": 19 | version "0.67.7" 20 | resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.67.7.tgz#903b7d56fb6a95ca0de897f2925c04ee0d4adee3" 21 | integrity sha512-G7vi9vE226diNNXVNbIa8HH/wPxMWHTHkn9iQtQSezaWzO5WNsKZZW2/TOzCehtBDVx4MZieTs6GsdtpBBttMA== 22 | dependencies: 23 | "@types/react" "*" 24 | 25 | "@types/react-test-renderer@^18.0.0": 26 | version "18.0.0" 27 | resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-18.0.0.tgz#7b7f69ca98821ea5501b21ba24ea7b6139da2243" 28 | integrity sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ== 29 | dependencies: 30 | "@types/react" "*" 31 | 32 | "@types/react@*", "@types/react@^18.0.9": 33 | version "18.0.9" 34 | resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.9.tgz#d6712a38bd6cd83469603e7359511126f122e878" 35 | integrity sha512-9bjbg1hJHUm4De19L1cHiW0Jvx3geel6Qczhjd0qY5VKVE2X5+x77YxAepuCwVh4vrgZJdgEJw48zrhRIeF4Nw== 36 | dependencies: 37 | "@types/prop-types" "*" 38 | "@types/scheduler" "*" 39 | csstype "^3.0.2" 40 | 41 | "@types/scheduler@*": 42 | version "0.16.2" 43 | resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" 44 | integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== 45 | 46 | ansi-regex@^5.0.1: 47 | version "5.0.1" 48 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" 49 | integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== 50 | 51 | ansi-styles@^4.1.0: 52 | version "4.3.0" 53 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" 54 | integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== 55 | dependencies: 56 | color-convert "^2.0.1" 57 | 58 | ansi-styles@^5.0.0: 59 | version "5.2.0" 60 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" 61 | integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== 62 | 63 | chalk@^4.0.0: 64 | version "4.1.2" 65 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" 66 | integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== 67 | dependencies: 68 | ansi-styles "^4.1.0" 69 | supports-color "^7.1.0" 70 | 71 | color-convert@^2.0.1: 72 | version "2.0.1" 73 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 74 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 75 | dependencies: 76 | color-name "~1.1.4" 77 | 78 | color-name@~1.1.4: 79 | version "1.1.4" 80 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 81 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 82 | 83 | csstype@^3.0.2: 84 | version "3.1.0" 85 | resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.0.tgz#4ddcac3718d787cf9df0d1b7d15033925c8f29f2" 86 | integrity sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA== 87 | 88 | diff-sequences@^27.5.1: 89 | version "27.5.1" 90 | resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" 91 | integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== 92 | 93 | has-flag@^4.0.0: 94 | version "4.0.0" 95 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" 96 | integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== 97 | 98 | jest-diff@^27.5.1: 99 | version "27.5.1" 100 | resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" 101 | integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== 102 | dependencies: 103 | chalk "^4.0.0" 104 | diff-sequences "^27.5.1" 105 | jest-get-type "^27.5.1" 106 | pretty-format "^27.5.1" 107 | 108 | jest-get-type@^27.5.1: 109 | version "27.5.1" 110 | resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" 111 | integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== 112 | 113 | jest-matcher-utils@^27.0.0: 114 | version "27.5.1" 115 | resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" 116 | integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== 117 | dependencies: 118 | chalk "^4.0.0" 119 | jest-diff "^27.5.1" 120 | jest-get-type "^27.5.1" 121 | pretty-format "^27.5.1" 122 | 123 | pretty-format@^27.0.0, pretty-format@^27.5.1: 124 | version "27.5.1" 125 | resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" 126 | integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== 127 | dependencies: 128 | ansi-regex "^5.0.1" 129 | ansi-styles "^5.0.0" 130 | react-is "^17.0.1" 131 | 132 | react-is@^17.0.1: 133 | version "17.0.2" 134 | resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" 135 | integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== 136 | 137 | supports-color@^7.1.0: 138 | version "7.2.0" 139 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" 140 | integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== 141 | dependencies: 142 | has-flag "^4.0.0" 143 | 144 | typescript@^4.6.4: 145 | version "4.6.4" 146 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" 147 | integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== 148 | --------------------------------------------------------------------------------