├── .buckconfig ├── .editorconfig ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.js ├── README.md ├── __tests__ └── App-test.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── reactnativechatvoicerecordingexample │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativechatvoicerecordingexample │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── 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 │ │ ├── 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 ├── ReactNativeChatVoiceRecordingExample-Bridging-Header.h ├── ReactNativeChatVoiceRecordingExample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── ReactNativeChatVoiceRecordingExample.xcscheme ├── ReactNativeChatVoiceRecordingExample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── ReactNativeChatVoiceRecordingExample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── main.m └── ReactNativeChatVoiceRecordingExampleTests │ ├── Info.plist │ └── ReactNativeChatVoiceRecordingExampleTests.m ├── metro.config.js ├── package.json ├── src ├── components │ ├── InputBox.js │ ├── ListPreviewMessage.js │ └── VoiceMessageAttachment.js └── icons │ └── mic.svg ├── useStreamChatTheme.ts └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; Flow doesn't support platforms 12 | .*/Libraries/Utilities/LoadingView.js 13 | 14 | [untyped] 15 | .*/node_modules/@react-native-community/cli/.*/.* 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/interface.js 21 | node_modules/react-native/flow/ 22 | 23 | [options] 24 | emoji=true 25 | 26 | esproposal.optional_chaining=enable 27 | esproposal.nullish_coalescing=enable 28 | 29 | exact_by_default=true 30 | 31 | module.file_ext=.js 32 | module.file_ext=.json 33 | module.file_ext=.ios.js 34 | 35 | munge_underscores=true 36 | 37 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 38 | module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 39 | 40 | suppress_type=$FlowIssue 41 | suppress_type=$FlowFixMe 42 | suppress_type=$FlowFixMeProps 43 | suppress_type=$FlowFixMeState 44 | 45 | [lints] 46 | sketchy-null-number=warn 47 | sketchy-null-mixed=warn 48 | sketchy-number=warn 49 | untyped-type-import=warn 50 | nonstrict-import=warn 51 | deprecated-type=warn 52 | unsafe-getters-setters=warn 53 | unnecessary-invariant=warn 54 | signature-verification-failure=warn 55 | 56 | [strict] 57 | deprecated-type 58 | nonstrict-import 59 | sketchy-null 60 | unclear-type 61 | unsafe-getters-setters 62 | untyped-import 63 | untyped-type-import 64 | 65 | [version] 66 | ^0.137.0 67 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /.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 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | .env -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable react/display-name */ 2 | import {API_KEY, USER_ID, USER_TOKEN} from "@env" 3 | import React, {useContext, useEffect, useMemo, useState} from 'react'; 4 | import { 5 | LogBox, 6 | PermissionsAndroid, 7 | Platform, 8 | SafeAreaView, 9 | useColorScheme, 10 | View, 11 | } from 'react-native'; 12 | import { 13 | DarkTheme, 14 | DefaultTheme, 15 | NavigationContainer, 16 | } from '@react-navigation/native'; 17 | import {createStackNavigator, useHeaderHeight} from '@react-navigation/stack'; 18 | import { 19 | SafeAreaProvider, 20 | useSafeAreaInsets, 21 | } from 'react-native-safe-area-context'; 22 | import {StreamChat} from 'stream-chat'; 23 | import { 24 | Channel, 25 | ChannelList, 26 | Chat, 27 | MessageInput, 28 | MessageList, 29 | OverlayProvider, 30 | Streami18n, 31 | Thread, 32 | useAttachmentPickerContext, 33 | } from 'stream-chat-react-native'; 34 | 35 | import {useStreamChatTheme} from './useStreamChatTheme'; 36 | import {InputBox} from './src/components/InputBox'; 37 | import {VoiceMessageAttachment} from './src/components/VoiceMessageAttachment'; 38 | import {ListPreviewMessage} from './src/components/ListPreviewMessage'; 39 | 40 | LogBox.ignoreAllLogs(true); 41 | 42 | const chatClient = StreamChat.getInstance(API_KEY); 43 | const userToken = USER_TOKEN; 44 | const user = { 45 | id: USER_ID, 46 | }; 47 | 48 | const filters = { 49 | members: {$in: [USER_ID]}, 50 | type: 'messaging', 51 | }; 52 | 53 | const sort = {last_message_at: -1}; 54 | const options = { 55 | state: true, 56 | watch: true, 57 | }; 58 | 59 | /** 60 | * Start playing with streami18n instance here: 61 | * Please refer to description of this PR for details: https://github.com/GetStream/stream-chat-react-native/pull/150 62 | */ 63 | const streami18n = new Streami18n({ 64 | language: 'en', 65 | }); 66 | 67 | const ChannelListScreen = ({navigation}) => { 68 | const {setChannel} = useContext(AppContext); 69 | 70 | const memoizedFilters = useMemo(() => filters, []); 71 | 72 | return ( 73 | 74 | 75 | { 79 | setChannel(channel); 80 | navigation.navigate('Channel'); 81 | }} 82 | options={options} 83 | sort={sort} 84 | /> 85 | 86 | 87 | ); 88 | }; 89 | 90 | const ChannelScreen = ({navigation}) => { 91 | const {channel, setThread, thread} = useContext(AppContext); 92 | const headerHeight = useHeaderHeight(); 93 | const {setTopInset} = useAttachmentPickerContext(); 94 | 95 | useEffect(() => { 96 | setTopInset(headerHeight); 97 | }, [headerHeight]); 98 | 99 | return ( 100 | 101 | 102 | 108 | 109 | { 111 | setThread(thread); 112 | navigation.navigate('Thread'); 113 | }} 114 | /> 115 | 116 | 117 | 118 | 119 | 120 | ); 121 | }; 122 | 123 | const ThreadScreen = () => { 124 | const {channel, setThread, thread} = useContext(AppContext); 125 | const headerHeight = useHeaderHeight(); 126 | 127 | return ( 128 | 129 | 130 | 134 | 139 | setThread(null)} /> 140 | 141 | 142 | 143 | 144 | ); 145 | }; 146 | 147 | const Stack = createStackNavigator(); 148 | 149 | const AppContext = React.createContext(); 150 | 151 | const App = () => { 152 | const colorScheme = useColorScheme(); 153 | const {bottom} = useSafeAreaInsets(); 154 | const theme = useStreamChatTheme(); 155 | 156 | const [channel, setChannel] = useState(); 157 | const [clientReady, setClientReady] = useState(false); 158 | const [thread, setThread] = useState(); 159 | 160 | useEffect(() => { 161 | const requestPermissions = async () => { 162 | if (Platform.OS === 'android') { 163 | try { 164 | const grants = await PermissionsAndroid.requestMultiple([ 165 | PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE, 166 | PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE, 167 | PermissionsAndroid.PERMISSIONS.RECORD_AUDIO, 168 | ]); 169 | 170 | console.log('write external stroage', grants); 171 | 172 | if ( 173 | grants['android.permission.WRITE_EXTERNAL_STORAGE'] === 174 | PermissionsAndroid.RESULTS.GRANTED && 175 | grants['android.permission.READ_EXTERNAL_STORAGE'] === 176 | PermissionsAndroid.RESULTS.GRANTED && 177 | grants['android.permission.RECORD_AUDIO'] === 178 | PermissionsAndroid.RESULTS.GRANTED 179 | ) { 180 | console.log('Permissions granted'); 181 | } else { 182 | console.log('All required permissions not granted'); 183 | return; 184 | } 185 | } catch (err) { 186 | console.warn(err); 187 | return; 188 | } 189 | } 190 | }; 191 | 192 | const setupClient = async () => { 193 | await chatClient.connectUser(user, userToken); 194 | 195 | setClientReady(true); 196 | }; 197 | 198 | setupClient(); 199 | requestPermissions(); 200 | }, []); 201 | 202 | return ( 203 | 211 | 212 | 216 | {clientReady && ( 217 | 222 | ({ 226 | headerBackTitle: 'Back', 227 | headerRight: () => <>, 228 | headerTitle: channel?.data?.name, 229 | })} 230 | /> 231 | 236 | ({headerLeft: () => <>})} 240 | /> 241 | 242 | )} 243 | 244 | 245 | 246 | ); 247 | }; 248 | 249 | export default () => { 250 | const theme = useStreamChatTheme(); 251 | return ( 252 | 254 | 255 | 256 | ); 257 | }; 258 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Voice Message Example For React Native Chat 2 | 3 | Basic example of how to implement voice message feature using Stream chat and [react-native-audio-recorder-player](https://github.com/hyochan/react-native-audio-recorder-player) 4 | 5 | https://user-images.githubusercontent.com/11586388/125821954-38a076c0-1ae9-45b4-a1f7-efae1e9d1603.mov 6 | 7 | ## How to run 8 | 9 | ```sh 10 | git clone https://github.com/GetStream/react-native-chat-voice-message-example.git 11 | cd react-native-chat-voice-message-example 12 | yarn 13 | npx pod-install 14 | touch .env 15 | ``` 16 | 17 | Add following keys to `.env` file 18 | 19 | - `API_KEY` 20 | - `USER_ID` 21 | - `USER_TOKEN` 22 | 23 | ``` 24 | npx react-native run-ios 25 | ``` 26 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /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.reactnativechatvoicerecordingexample", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativechatvoicerecordingexample", 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 | -------------------------------------------------------------------------------- /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: true, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | android { 124 | ndkVersion rootProject.ext.ndkVersion 125 | 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | compileOptions { 129 | sourceCompatibility JavaVersion.VERSION_1_8 130 | targetCompatibility JavaVersion.VERSION_1_8 131 | } 132 | 133 | defaultConfig { 134 | applicationId "com.reactnativechatvoicerecordingexample" 135 | minSdkVersion rootProject.ext.minSdkVersion 136 | targetSdkVersion rootProject.ext.targetSdkVersion 137 | vectorDrawables.useSupportLibrary = true 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 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 176 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 177 | def abi = output.getFilter(OutputFile.ABI) 178 | if (abi != null) { // null for the universal-debug, universal-release variants 179 | output.versionCodeOverride = 180 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 181 | } 182 | 183 | } 184 | } 185 | } 186 | 187 | dependencies { 188 | implementation fileTree(dir: "libs", include: ["*.jar"]) 189 | //noinspection GradleDynamicVersion 190 | implementation "com.facebook.react:react-native:+" // From node_modules 191 | 192 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 193 | 194 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 195 | exclude group:'com.facebook.fbjni' 196 | } 197 | 198 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 199 | exclude group:'com.facebook.flipper' 200 | exclude group:'com.squareup.okhttp3', module:'okhttp' 201 | } 202 | 203 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 204 | exclude group:'com.facebook.flipper' 205 | } 206 | 207 | if (enableHermes) { 208 | def hermesPath = "../../node_modules/hermes-engine/android/"; 209 | debugImplementation files(hermesPath + "hermes-debug.aar") 210 | releaseImplementation files(hermesPath + "hermes-release.aar") 211 | } else { 212 | implementation jscFlavor 213 | } 214 | } 215 | 216 | // Run this once to be able to run the application with BUCK 217 | // puts all compile dependencies into folder libs for BUCK to use 218 | task copyDownloadableDepsToLibs(type: Copy) { 219 | from configurations.compile 220 | into 'libs' 221 | } 222 | 223 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 224 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/reactnativechatvoicerecordingexample/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.reactnativechatvoicerecordingexample; 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 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativechatvoicerecordingexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativechatvoicerecordingexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.ReactRootView; 6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 7 | public class MainActivity extends ReactActivity { 8 | 9 | /** 10 | * Returns the name of the main component registered from JavaScript. This is used to schedule 11 | * rendering of the component. 12 | */ 13 | @Override 14 | protected String getMainComponentName() { 15 | return "ReactNativeChatVoiceRecordingExample"; 16 | } 17 | 18 | @Override 19 | protected ReactActivityDelegate createReactActivityDelegate() { 20 | return new ReactActivityDelegate(this, getMainComponentName()) { 21 | @Override 22 | protected ReactRootView createRootView() { 23 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 24 | } 25 | }; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativechatvoicerecordingexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativechatvoicerecordingexample; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | import com.facebook.react.bridge.JSIModulePackage; // <- add 15 | import com.swmansion.reanimated.ReanimatedJSIModulePackage; // <- add 16 | 17 | public class MainApplication extends Application implements ReactApplication { 18 | 19 | private final ReactNativeHost mReactNativeHost = 20 | new ReactNativeHost(this) { 21 | @Override 22 | public boolean getUseDeveloperSupport() { 23 | return BuildConfig.DEBUG; 24 | } 25 | 26 | @Override 27 | protected List getPackages() { 28 | @SuppressWarnings("UnnecessaryLocalVariable") 29 | List packages = new PackageList(this).getPackages(); 30 | // Packages that cannot be autolinked yet can be added manually here, for example: 31 | // packages.add(new MyReactNativePackage()); 32 | return packages; 33 | } 34 | 35 | @Override 36 | protected String getJSMainModuleName() { 37 | return "index"; 38 | } 39 | 40 | @Override 41 | protected JSIModulePackage getJSIModulePackage() { 42 | return new ReanimatedJSIModulePackage(); // <- add 43 | } 44 | }; 45 | 46 | @Override 47 | public ReactNativeHost getReactNativeHost() { 48 | return mReactNativeHost; 49 | } 50 | 51 | 52 | @Override 53 | public void onCreate() { 54 | super.onCreate(); 55 | SoLoader.init(this, /* native exopackage */ false); 56 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 57 | } 58 | 59 | /** 60 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 61 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 62 | * 63 | * @param context 64 | * @param reactInstanceManager 65 | */ 66 | private static void initializeFlipper( 67 | Context context, ReactInstanceManager reactInstanceManager) { 68 | if (BuildConfig.DEBUG) { 69 | try { 70 | /* 71 | We use reflection here to pick up the class that initializes Flipper, 72 | since Flipper library is not available in release mode 73 | */ 74 | Class aClass = Class.forName("com.reactnativechatvoicerecordingexample.ReactNativeFlipper"); 75 | aClass 76 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 77 | .invoke(null, context, reactInstanceManager); 78 | } catch (ClassNotFoundException e) { 79 | e.printStackTrace(); 80 | } catch (NoSuchMethodException e) { 81 | e.printStackTrace(); 82 | } catch (IllegalAccessException e) { 83 | e.printStackTrace(); 84 | } catch (InvocationTargetException e) { 85 | e.printStackTrace(); 86 | } 87 | } 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeChatVoiceRecordingExample 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /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 = 24 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | ndkVersion = "20.1.5948944" 10 | kotlinVersion = '1.5.0' 11 | } 12 | repositories { 13 | google() 14 | jcenter() 15 | } 16 | dependencies { 17 | classpath("com.android.tools.build:gradle:4.1.0") 18 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" 19 | // NOTE: Do not place your application dependencies here; they belong 20 | // in the individual module build.gradle files 21 | } 22 | } 23 | 24 | allprojects { 25 | repositories { 26 | mavenLocal() 27 | maven { 28 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 29 | url("$rootDir/../node_modules/react-native/android") 30 | } 31 | maven { 32 | // Android JSC is installed from npm 33 | url("$rootDir/../node_modules/jsc-android/dist") 34 | } 35 | maven { url 'https://maven.google.com' } 36 | google() 37 | jcenter() 38 | maven { url 'https://www.jitpack.io' } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /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 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.75.1 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GetStream/react-native-chat-voice-message-example/e858065f35a518ae81c612c9b281a523ce45e190/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /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 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /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 execute 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 execute 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 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeChatVoiceRecordingExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeChatVoiceRecordingExample", 3 | "displayName": "ReactNativeChatVoiceRecordingExample" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | plugins: ['module:react-native-dotenv', 'react-native-reanimated/plugin'], 4 | }; 5 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | import 'react-native-gesture-handler'; 9 | 10 | AppRegistry.registerComponent(appName, () => App); 11 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'ReactNativeChatVoiceRecordingExample' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | target 'ReactNativeChatVoiceRecordingExampleTests' do 16 | inherit! :complete 17 | # Pods for testing 18 | end 19 | 20 | # Enables Flipper. 21 | # 22 | # Note that if you have use_frameworks! enabled, Flipper will not work and 23 | # you should disable the next line. 24 | use_flipper!() 25 | 26 | post_install do |installer| 27 | react_native_post_install(installer) 28 | end 29 | end -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.64.2) 6 | - FBReactNativeSpec (0.64.2): 7 | - RCT-Folly (= 2020.01.13.00) 8 | - RCTRequired (= 0.64.2) 9 | - RCTTypeSafety (= 0.64.2) 10 | - React-Core (= 0.64.2) 11 | - React-jsi (= 0.64.2) 12 | - ReactCommon/turbomodule/core (= 0.64.2) 13 | - Flipper (0.75.1): 14 | - Flipper-Folly (~> 2.5) 15 | - Flipper-RSocket (~> 1.3) 16 | - Flipper-DoubleConversion (1.1.7) 17 | - Flipper-Folly (2.5.3): 18 | - boost-for-react-native 19 | - Flipper-DoubleConversion 20 | - Flipper-Glog 21 | - libevent (~> 2.1.12) 22 | - OpenSSL-Universal (= 1.1.180) 23 | - Flipper-Glog (0.3.6) 24 | - Flipper-PeerTalk (0.0.4) 25 | - Flipper-RSocket (1.3.1): 26 | - Flipper-Folly (~> 2.5) 27 | - FlipperKit (0.75.1): 28 | - FlipperKit/Core (= 0.75.1) 29 | - FlipperKit/Core (0.75.1): 30 | - Flipper (~> 0.75.1) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - FlipperKit/CppBridge (0.75.1): 36 | - Flipper (~> 0.75.1) 37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1): 38 | - Flipper-Folly (~> 2.5) 39 | - FlipperKit/FBDefines (0.75.1) 40 | - FlipperKit/FKPortForwarding (0.75.1): 41 | - CocoaAsyncSocket (~> 7.6) 42 | - Flipper-PeerTalk (~> 0.0.4) 43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1) 44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1): 45 | - FlipperKit/Core 46 | - FlipperKit/FlipperKitHighlightOverlay 47 | - FlipperKit/FlipperKitLayoutTextSearchable 48 | - YogaKit (~> 1.18) 49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1) 50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1): 51 | - FlipperKit/Core 52 | - FlipperKit/FlipperKitReactPlugin (0.75.1): 53 | - FlipperKit/Core 54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1): 55 | - FlipperKit/Core 56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitNetworkPlugin 59 | - glog (0.3.5) 60 | - libevent (2.1.12) 61 | - OpenSSL-Universal (1.1.180) 62 | - RCT-Folly (2020.01.13.00): 63 | - boost-for-react-native 64 | - DoubleConversion 65 | - glog 66 | - RCT-Folly/Default (= 2020.01.13.00) 67 | - RCT-Folly/Default (2020.01.13.00): 68 | - boost-for-react-native 69 | - DoubleConversion 70 | - glog 71 | - RCTRequired (0.64.2) 72 | - RCTTypeSafety (0.64.2): 73 | - FBLazyVector (= 0.64.2) 74 | - RCT-Folly (= 2020.01.13.00) 75 | - RCTRequired (= 0.64.2) 76 | - React-Core (= 0.64.2) 77 | - React (0.64.2): 78 | - React-Core (= 0.64.2) 79 | - React-Core/DevSupport (= 0.64.2) 80 | - React-Core/RCTWebSocket (= 0.64.2) 81 | - React-RCTActionSheet (= 0.64.2) 82 | - React-RCTAnimation (= 0.64.2) 83 | - React-RCTBlob (= 0.64.2) 84 | - React-RCTImage (= 0.64.2) 85 | - React-RCTLinking (= 0.64.2) 86 | - React-RCTNetwork (= 0.64.2) 87 | - React-RCTSettings (= 0.64.2) 88 | - React-RCTText (= 0.64.2) 89 | - React-RCTVibration (= 0.64.2) 90 | - React-callinvoker (0.64.2) 91 | - React-Core (0.64.2): 92 | - glog 93 | - RCT-Folly (= 2020.01.13.00) 94 | - React-Core/Default (= 0.64.2) 95 | - React-cxxreact (= 0.64.2) 96 | - React-jsi (= 0.64.2) 97 | - React-jsiexecutor (= 0.64.2) 98 | - React-perflogger (= 0.64.2) 99 | - Yoga 100 | - React-Core/CoreModulesHeaders (0.64.2): 101 | - glog 102 | - RCT-Folly (= 2020.01.13.00) 103 | - React-Core/Default 104 | - React-cxxreact (= 0.64.2) 105 | - React-jsi (= 0.64.2) 106 | - React-jsiexecutor (= 0.64.2) 107 | - React-perflogger (= 0.64.2) 108 | - Yoga 109 | - React-Core/Default (0.64.2): 110 | - glog 111 | - RCT-Folly (= 2020.01.13.00) 112 | - React-cxxreact (= 0.64.2) 113 | - React-jsi (= 0.64.2) 114 | - React-jsiexecutor (= 0.64.2) 115 | - React-perflogger (= 0.64.2) 116 | - Yoga 117 | - React-Core/DevSupport (0.64.2): 118 | - glog 119 | - RCT-Folly (= 2020.01.13.00) 120 | - React-Core/Default (= 0.64.2) 121 | - React-Core/RCTWebSocket (= 0.64.2) 122 | - React-cxxreact (= 0.64.2) 123 | - React-jsi (= 0.64.2) 124 | - React-jsiexecutor (= 0.64.2) 125 | - React-jsinspector (= 0.64.2) 126 | - React-perflogger (= 0.64.2) 127 | - Yoga 128 | - React-Core/RCTActionSheetHeaders (0.64.2): 129 | - glog 130 | - RCT-Folly (= 2020.01.13.00) 131 | - React-Core/Default 132 | - React-cxxreact (= 0.64.2) 133 | - React-jsi (= 0.64.2) 134 | - React-jsiexecutor (= 0.64.2) 135 | - React-perflogger (= 0.64.2) 136 | - Yoga 137 | - React-Core/RCTAnimationHeaders (0.64.2): 138 | - glog 139 | - RCT-Folly (= 2020.01.13.00) 140 | - React-Core/Default 141 | - React-cxxreact (= 0.64.2) 142 | - React-jsi (= 0.64.2) 143 | - React-jsiexecutor (= 0.64.2) 144 | - React-perflogger (= 0.64.2) 145 | - Yoga 146 | - React-Core/RCTBlobHeaders (0.64.2): 147 | - glog 148 | - RCT-Folly (= 2020.01.13.00) 149 | - React-Core/Default 150 | - React-cxxreact (= 0.64.2) 151 | - React-jsi (= 0.64.2) 152 | - React-jsiexecutor (= 0.64.2) 153 | - React-perflogger (= 0.64.2) 154 | - Yoga 155 | - React-Core/RCTImageHeaders (0.64.2): 156 | - glog 157 | - RCT-Folly (= 2020.01.13.00) 158 | - React-Core/Default 159 | - React-cxxreact (= 0.64.2) 160 | - React-jsi (= 0.64.2) 161 | - React-jsiexecutor (= 0.64.2) 162 | - React-perflogger (= 0.64.2) 163 | - Yoga 164 | - React-Core/RCTLinkingHeaders (0.64.2): 165 | - glog 166 | - RCT-Folly (= 2020.01.13.00) 167 | - React-Core/Default 168 | - React-cxxreact (= 0.64.2) 169 | - React-jsi (= 0.64.2) 170 | - React-jsiexecutor (= 0.64.2) 171 | - React-perflogger (= 0.64.2) 172 | - Yoga 173 | - React-Core/RCTNetworkHeaders (0.64.2): 174 | - glog 175 | - RCT-Folly (= 2020.01.13.00) 176 | - React-Core/Default 177 | - React-cxxreact (= 0.64.2) 178 | - React-jsi (= 0.64.2) 179 | - React-jsiexecutor (= 0.64.2) 180 | - React-perflogger (= 0.64.2) 181 | - Yoga 182 | - React-Core/RCTSettingsHeaders (0.64.2): 183 | - glog 184 | - RCT-Folly (= 2020.01.13.00) 185 | - React-Core/Default 186 | - React-cxxreact (= 0.64.2) 187 | - React-jsi (= 0.64.2) 188 | - React-jsiexecutor (= 0.64.2) 189 | - React-perflogger (= 0.64.2) 190 | - Yoga 191 | - React-Core/RCTTextHeaders (0.64.2): 192 | - glog 193 | - RCT-Folly (= 2020.01.13.00) 194 | - React-Core/Default 195 | - React-cxxreact (= 0.64.2) 196 | - React-jsi (= 0.64.2) 197 | - React-jsiexecutor (= 0.64.2) 198 | - React-perflogger (= 0.64.2) 199 | - Yoga 200 | - React-Core/RCTVibrationHeaders (0.64.2): 201 | - glog 202 | - RCT-Folly (= 2020.01.13.00) 203 | - React-Core/Default 204 | - React-cxxreact (= 0.64.2) 205 | - React-jsi (= 0.64.2) 206 | - React-jsiexecutor (= 0.64.2) 207 | - React-perflogger (= 0.64.2) 208 | - Yoga 209 | - React-Core/RCTWebSocket (0.64.2): 210 | - glog 211 | - RCT-Folly (= 2020.01.13.00) 212 | - React-Core/Default (= 0.64.2) 213 | - React-cxxreact (= 0.64.2) 214 | - React-jsi (= 0.64.2) 215 | - React-jsiexecutor (= 0.64.2) 216 | - React-perflogger (= 0.64.2) 217 | - Yoga 218 | - React-CoreModules (0.64.2): 219 | - FBReactNativeSpec (= 0.64.2) 220 | - RCT-Folly (= 2020.01.13.00) 221 | - RCTTypeSafety (= 0.64.2) 222 | - React-Core/CoreModulesHeaders (= 0.64.2) 223 | - React-jsi (= 0.64.2) 224 | - React-RCTImage (= 0.64.2) 225 | - ReactCommon/turbomodule/core (= 0.64.2) 226 | - React-cxxreact (0.64.2): 227 | - boost-for-react-native (= 1.63.0) 228 | - DoubleConversion 229 | - glog 230 | - RCT-Folly (= 2020.01.13.00) 231 | - React-callinvoker (= 0.64.2) 232 | - React-jsi (= 0.64.2) 233 | - React-jsinspector (= 0.64.2) 234 | - React-perflogger (= 0.64.2) 235 | - React-runtimeexecutor (= 0.64.2) 236 | - React-jsi (0.64.2): 237 | - boost-for-react-native (= 1.63.0) 238 | - DoubleConversion 239 | - glog 240 | - RCT-Folly (= 2020.01.13.00) 241 | - React-jsi/Default (= 0.64.2) 242 | - React-jsi/Default (0.64.2): 243 | - boost-for-react-native (= 1.63.0) 244 | - DoubleConversion 245 | - glog 246 | - RCT-Folly (= 2020.01.13.00) 247 | - React-jsiexecutor (0.64.2): 248 | - DoubleConversion 249 | - glog 250 | - RCT-Folly (= 2020.01.13.00) 251 | - React-cxxreact (= 0.64.2) 252 | - React-jsi (= 0.64.2) 253 | - React-perflogger (= 0.64.2) 254 | - React-jsinspector (0.64.2) 255 | - react-native-blur (0.8.0): 256 | - React 257 | - react-native-cameraroll (4.0.4): 258 | - React-Core 259 | - react-native-document-picker (5.2.0): 260 | - React-Core 261 | - react-native-image-resizer (1.4.5): 262 | - React-Core 263 | - react-native-netinfo (6.0.0): 264 | - React-Core 265 | - react-native-safe-area-context (3.2.0): 266 | - React-Core 267 | - React-perflogger (0.64.2) 268 | - React-RCTActionSheet (0.64.2): 269 | - React-Core/RCTActionSheetHeaders (= 0.64.2) 270 | - React-RCTAnimation (0.64.2): 271 | - FBReactNativeSpec (= 0.64.2) 272 | - RCT-Folly (= 2020.01.13.00) 273 | - RCTTypeSafety (= 0.64.2) 274 | - React-Core/RCTAnimationHeaders (= 0.64.2) 275 | - React-jsi (= 0.64.2) 276 | - ReactCommon/turbomodule/core (= 0.64.2) 277 | - React-RCTBlob (0.64.2): 278 | - FBReactNativeSpec (= 0.64.2) 279 | - RCT-Folly (= 2020.01.13.00) 280 | - React-Core/RCTBlobHeaders (= 0.64.2) 281 | - React-Core/RCTWebSocket (= 0.64.2) 282 | - React-jsi (= 0.64.2) 283 | - React-RCTNetwork (= 0.64.2) 284 | - ReactCommon/turbomodule/core (= 0.64.2) 285 | - React-RCTImage (0.64.2): 286 | - FBReactNativeSpec (= 0.64.2) 287 | - RCT-Folly (= 2020.01.13.00) 288 | - RCTTypeSafety (= 0.64.2) 289 | - React-Core/RCTImageHeaders (= 0.64.2) 290 | - React-jsi (= 0.64.2) 291 | - React-RCTNetwork (= 0.64.2) 292 | - ReactCommon/turbomodule/core (= 0.64.2) 293 | - React-RCTLinking (0.64.2): 294 | - FBReactNativeSpec (= 0.64.2) 295 | - React-Core/RCTLinkingHeaders (= 0.64.2) 296 | - React-jsi (= 0.64.2) 297 | - ReactCommon/turbomodule/core (= 0.64.2) 298 | - React-RCTNetwork (0.64.2): 299 | - FBReactNativeSpec (= 0.64.2) 300 | - RCT-Folly (= 2020.01.13.00) 301 | - RCTTypeSafety (= 0.64.2) 302 | - React-Core/RCTNetworkHeaders (= 0.64.2) 303 | - React-jsi (= 0.64.2) 304 | - ReactCommon/turbomodule/core (= 0.64.2) 305 | - React-RCTSettings (0.64.2): 306 | - FBReactNativeSpec (= 0.64.2) 307 | - RCT-Folly (= 2020.01.13.00) 308 | - RCTTypeSafety (= 0.64.2) 309 | - React-Core/RCTSettingsHeaders (= 0.64.2) 310 | - React-jsi (= 0.64.2) 311 | - ReactCommon/turbomodule/core (= 0.64.2) 312 | - React-RCTText (0.64.2): 313 | - React-Core/RCTTextHeaders (= 0.64.2) 314 | - React-RCTVibration (0.64.2): 315 | - FBReactNativeSpec (= 0.64.2) 316 | - RCT-Folly (= 2020.01.13.00) 317 | - React-Core/RCTVibrationHeaders (= 0.64.2) 318 | - React-jsi (= 0.64.2) 319 | - ReactCommon/turbomodule/core (= 0.64.2) 320 | - React-runtimeexecutor (0.64.2): 321 | - React-jsi (= 0.64.2) 322 | - ReactCommon/turbomodule/core (0.64.2): 323 | - DoubleConversion 324 | - glog 325 | - RCT-Folly (= 2020.01.13.00) 326 | - React-callinvoker (= 0.64.2) 327 | - React-Core (= 0.64.2) 328 | - React-cxxreact (= 0.64.2) 329 | - React-jsi (= 0.64.2) 330 | - React-perflogger (= 0.64.2) 331 | - RNAudioRecorderPlayer (3.1.0): 332 | - React-Core 333 | - RNFS (2.18.0): 334 | - React 335 | - RNGestureHandler (1.10.3): 336 | - React-Core 337 | - RNImageCropPicker (0.36.2): 338 | - React-Core 339 | - React-RCTImage 340 | - RNImageCropPicker/QBImagePickerController (= 0.36.2) 341 | - TOCropViewController 342 | - RNImageCropPicker/QBImagePickerController (0.36.2): 343 | - React-Core 344 | - React-RCTImage 345 | - TOCropViewController 346 | - RNReactNativeHapticFeedback (1.11.0): 347 | - React-Core 348 | - RNReanimated (2.2.0): 349 | - DoubleConversion 350 | - FBLazyVector 351 | - FBReactNativeSpec 352 | - glog 353 | - RCT-Folly 354 | - RCTRequired 355 | - RCTTypeSafety 356 | - React 357 | - React-callinvoker 358 | - React-Core 359 | - React-Core/DevSupport 360 | - React-Core/RCTWebSocket 361 | - React-CoreModules 362 | - React-cxxreact 363 | - React-jsi 364 | - React-jsiexecutor 365 | - React-jsinspector 366 | - React-RCTActionSheet 367 | - React-RCTAnimation 368 | - React-RCTBlob 369 | - React-RCTImage 370 | - React-RCTLinking 371 | - React-RCTNetwork 372 | - React-RCTSettings 373 | - React-RCTText 374 | - React-RCTVibration 375 | - ReactCommon/turbomodule/core 376 | - Yoga 377 | - RNScreens (3.2.0): 378 | - React-Core 379 | - RNShare (6.2.3): 380 | - React-Core 381 | - RNSVG (12.1.1): 382 | - React 383 | - TOCropViewController (2.6.0) 384 | - Yoga (1.14.0) 385 | - YogaKit (1.18.1): 386 | - Yoga (~> 1.14) 387 | 388 | DEPENDENCIES: 389 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 390 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 391 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 392 | - Flipper (~> 0.75.1) 393 | - Flipper-DoubleConversion (= 1.1.7) 394 | - Flipper-Folly (~> 2.5.3) 395 | - Flipper-Glog (= 0.3.6) 396 | - Flipper-PeerTalk (~> 0.0.4) 397 | - Flipper-RSocket (~> 1.3) 398 | - FlipperKit (~> 0.75.1) 399 | - FlipperKit/Core (~> 0.75.1) 400 | - FlipperKit/CppBridge (~> 0.75.1) 401 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1) 402 | - FlipperKit/FBDefines (~> 0.75.1) 403 | - FlipperKit/FKPortForwarding (~> 0.75.1) 404 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1) 405 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1) 406 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1) 407 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1) 408 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1) 409 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1) 410 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1) 411 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 412 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 413 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 414 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 415 | - React (from `../node_modules/react-native/`) 416 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 417 | - React-Core (from `../node_modules/react-native/`) 418 | - React-Core/DevSupport (from `../node_modules/react-native/`) 419 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 420 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 421 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 422 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 423 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 424 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 425 | - "react-native-blur (from `../node_modules/@react-native-community/blur`)" 426 | - "react-native-cameraroll (from `../node_modules/@react-native-community/cameraroll`)" 427 | - react-native-document-picker (from `../node_modules/react-native-document-picker`) 428 | - react-native-image-resizer (from `../node_modules/react-native-image-resizer`) 429 | - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)" 430 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) 431 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 432 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 433 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 434 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 435 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 436 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 437 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 438 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 439 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 440 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 441 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 442 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 443 | - RNAudioRecorderPlayer (from `../node_modules/react-native-audio-recorder-player`) 444 | - RNFS (from `../node_modules/react-native-fs`) 445 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 446 | - RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`) 447 | - RNReactNativeHapticFeedback (from `../node_modules/react-native-haptic-feedback`) 448 | - RNReanimated (from `../node_modules/react-native-reanimated`) 449 | - RNScreens (from `../node_modules/react-native-screens`) 450 | - RNShare (from `../node_modules/react-native-share`) 451 | - RNSVG (from `../node_modules/react-native-svg`) 452 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 453 | 454 | SPEC REPOS: 455 | trunk: 456 | - boost-for-react-native 457 | - CocoaAsyncSocket 458 | - Flipper 459 | - Flipper-DoubleConversion 460 | - Flipper-Folly 461 | - Flipper-Glog 462 | - Flipper-PeerTalk 463 | - Flipper-RSocket 464 | - FlipperKit 465 | - libevent 466 | - OpenSSL-Universal 467 | - TOCropViewController 468 | - YogaKit 469 | 470 | EXTERNAL SOURCES: 471 | DoubleConversion: 472 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 473 | FBLazyVector: 474 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 475 | FBReactNativeSpec: 476 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 477 | glog: 478 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 479 | RCT-Folly: 480 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 481 | RCTRequired: 482 | :path: "../node_modules/react-native/Libraries/RCTRequired" 483 | RCTTypeSafety: 484 | :path: "../node_modules/react-native/Libraries/TypeSafety" 485 | React: 486 | :path: "../node_modules/react-native/" 487 | React-callinvoker: 488 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 489 | React-Core: 490 | :path: "../node_modules/react-native/" 491 | React-CoreModules: 492 | :path: "../node_modules/react-native/React/CoreModules" 493 | React-cxxreact: 494 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 495 | React-jsi: 496 | :path: "../node_modules/react-native/ReactCommon/jsi" 497 | React-jsiexecutor: 498 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 499 | React-jsinspector: 500 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 501 | react-native-blur: 502 | :path: "../node_modules/@react-native-community/blur" 503 | react-native-cameraroll: 504 | :path: "../node_modules/@react-native-community/cameraroll" 505 | react-native-document-picker: 506 | :path: "../node_modules/react-native-document-picker" 507 | react-native-image-resizer: 508 | :path: "../node_modules/react-native-image-resizer" 509 | react-native-netinfo: 510 | :path: "../node_modules/@react-native-community/netinfo" 511 | react-native-safe-area-context: 512 | :path: "../node_modules/react-native-safe-area-context" 513 | React-perflogger: 514 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 515 | React-RCTActionSheet: 516 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 517 | React-RCTAnimation: 518 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 519 | React-RCTBlob: 520 | :path: "../node_modules/react-native/Libraries/Blob" 521 | React-RCTImage: 522 | :path: "../node_modules/react-native/Libraries/Image" 523 | React-RCTLinking: 524 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 525 | React-RCTNetwork: 526 | :path: "../node_modules/react-native/Libraries/Network" 527 | React-RCTSettings: 528 | :path: "../node_modules/react-native/Libraries/Settings" 529 | React-RCTText: 530 | :path: "../node_modules/react-native/Libraries/Text" 531 | React-RCTVibration: 532 | :path: "../node_modules/react-native/Libraries/Vibration" 533 | React-runtimeexecutor: 534 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 535 | ReactCommon: 536 | :path: "../node_modules/react-native/ReactCommon" 537 | RNAudioRecorderPlayer: 538 | :path: "../node_modules/react-native-audio-recorder-player" 539 | RNFS: 540 | :path: "../node_modules/react-native-fs" 541 | RNGestureHandler: 542 | :path: "../node_modules/react-native-gesture-handler" 543 | RNImageCropPicker: 544 | :path: "../node_modules/react-native-image-crop-picker" 545 | RNReactNativeHapticFeedback: 546 | :path: "../node_modules/react-native-haptic-feedback" 547 | RNReanimated: 548 | :path: "../node_modules/react-native-reanimated" 549 | RNScreens: 550 | :path: "../node_modules/react-native-screens" 551 | RNShare: 552 | :path: "../node_modules/react-native-share" 553 | RNSVG: 554 | :path: "../node_modules/react-native-svg" 555 | Yoga: 556 | :path: "../node_modules/react-native/ReactCommon/yoga" 557 | 558 | SPEC CHECKSUMS: 559 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 560 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 561 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de 562 | FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b 563 | FBReactNativeSpec: 3661df25593a09f081331f13cb39aa48ca434054 564 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021 565 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 566 | Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c 567 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 568 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 569 | Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154 570 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00 571 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 572 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 573 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 574 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c 575 | RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728 576 | RCTTypeSafety: c1f31d19349c6b53085766359caac425926fafaa 577 | React: bda6b6d7ae912de97d7a61aa5c160db24aa2ad69 578 | React-callinvoker: 9840ea7e8e88ed73d438edb725574820b29b5baa 579 | React-Core: b5e385da7ce5f16a220fc60fd0749eae2c6120f0 580 | React-CoreModules: 17071a4e2c5239b01585f4aa8070141168ab298f 581 | React-cxxreact: 9be7b6340ed9f7c53e53deca7779f07cd66525ba 582 | React-jsi: 67747b9722f6dab2ffe15b011bcf6b3f2c3f1427 583 | React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3 584 | React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae 585 | react-native-blur: cad4d93b364f91e7b7931b3fa935455487e5c33c 586 | react-native-cameraroll: 88f4e62d9ecd0e1f253abe4f685474f2ea14bfa2 587 | react-native-document-picker: f1b5398801b332c77bc62ae0eae2116f49bdff26 588 | react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f 589 | react-native-netinfo: e849fc21ca2f4128a5726c801a82fc6f4a6db50d 590 | react-native-safe-area-context: f0906bf8bc9835ac9a9d3f97e8bde2a997d8da79 591 | React-perflogger: 25373e382fed75ce768a443822f07098a15ab737 592 | React-RCTActionSheet: af7796ba49ffe4ca92e7277a5d992d37203f7da5 593 | React-RCTAnimation: 6a2e76ab50c6f25b428d81b76a5a45351c4d77aa 594 | React-RCTBlob: 02a2887023e0eed99391b6445b2e23a2a6f9226d 595 | React-RCTImage: ce5bf8e7438f2286d9b646a05d6ab11f38b0323d 596 | React-RCTLinking: ccd20742de14e020cb5f99d5c7e0bf0383aefbd9 597 | React-RCTNetwork: dfb9d089ab0753e5e5f55fc4b1210858f7245647 598 | React-RCTSettings: b14aef2d83699e48b410fb7c3ba5b66cd3291ae2 599 | React-RCTText: 41a2e952dd9adc5caf6fb68ed46b275194d5da5f 600 | React-RCTVibration: 24600e3b1aaa77126989bc58b6747509a1ba14f3 601 | React-runtimeexecutor: a9904c6d0218fb9f8b19d6dd88607225927668f9 602 | ReactCommon: 149906e01aa51142707a10665185db879898e966 603 | RNAudioRecorderPlayer: be071a52faede40b3025f624079a9d554a877309 604 | RNFS: 3ab21fa6c56d65566d1fb26c2228e2b6132e5e32 605 | RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211 606 | RNImageCropPicker: 35a3ceb837446fa11547704709bb22b5fac6d584 607 | RNReactNativeHapticFeedback: 653a8c126a0f5e88ce15ffe280b3ff37e1fbb285 608 | RNReanimated: 9c13c86454bfd54dab7505c1a054470bfecd2563 609 | RNScreens: c277bfc4b5bb7c2fe977d19635df6f974f95dfd6 610 | RNShare: 16c78aeb7a78d19e8f5597e405e87f90d91f8eb9 611 | RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f 612 | TOCropViewController: 3105367e808b7d3d886a74ff59bf4804e7d3ab38 613 | Yoga: 575c581c63e0d35c9a83f4b46d01d63abc1100ac 614 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 615 | 616 | PODFILE CHECKSUM: 523b59ab8fcd03fcfd00c1735ddfd10f480f04b8 617 | 618 | COCOAPODS: 1.10.1 619 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // ReactNativeChatVoiceRecordingExample-Bridging-Header.h 3 | // ReactNativeChatVoiceRecordingExample 4 | // 5 | // Created by vishal narkhede on 15/07/2021. 6 | // 7 | 8 | #ifndef ReactNativeChatVoiceRecordingExample_Bridging_Header_h 9 | #define ReactNativeChatVoiceRecordingExample_Bridging_Header_h 10 | 11 | 12 | #endif /* ReactNativeChatVoiceRecordingExample_Bridging_Header_h */ 13 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 252A32F53ECD3F2714D955EC /* libPods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA0F396F7C83887166682441 /* libPods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.a */; }; 15 | 3A55A136B42535EAFFA7C73B /* libPods-ReactNativeChatVoiceRecordingExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8532B51BB176841359D7CDE4 /* libPods-ReactNativeChatVoiceRecordingExample.a */; }; 16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 17 | FC6E733C26A08BA600EA32F6 /* libswiftWebKit.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = FC6E733B26A08BA600EA32F6 /* libswiftWebKit.tbd */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 26 | remoteInfo = ReactNativeChatVoiceRecordingExample; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 00E356EE1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeChatVoiceRecordingExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 00E356F21AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeChatVoiceRecordingExampleTests.m; sourceTree = ""; }; 34 | 13B07F961A680F5B00A75B9A /* ReactNativeChatVoiceRecordingExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeChatVoiceRecordingExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeChatVoiceRecordingExample/AppDelegate.h; sourceTree = ""; }; 36 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeChatVoiceRecordingExample/AppDelegate.m; sourceTree = ""; }; 37 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeChatVoiceRecordingExample/Images.xcassets; sourceTree = ""; }; 38 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeChatVoiceRecordingExample/Info.plist; sourceTree = ""; }; 39 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeChatVoiceRecordingExample/main.m; sourceTree = ""; }; 40 | 485F755F0FEFA1872438FCA1 /* Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.release.xcconfig"; sourceTree = ""; }; 41 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeChatVoiceRecordingExample/LaunchScreen.storyboard; sourceTree = ""; }; 42 | 8532B51BB176841359D7CDE4 /* libPods-ReactNativeChatVoiceRecordingExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeChatVoiceRecordingExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | AA0F396F7C83887166682441 /* libPods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | C1224ECE1EC9A41A60BC2245 /* Pods-ReactNativeChatVoiceRecordingExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeChatVoiceRecordingExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample.debug.xcconfig"; sourceTree = ""; }; 45 | CD535198E7EE0F93C6F314AB /* Pods-ReactNativeChatVoiceRecordingExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeChatVoiceRecordingExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample.release.xcconfig"; sourceTree = ""; }; 46 | EB95767924A336586684EB57 /* Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.debug.xcconfig"; sourceTree = ""; }; 47 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 48 | FC6E733A26A0868D00EA32F6 /* ReactNativeChatVoiceRecordingExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeChatVoiceRecordingExample-Bridging-Header.h"; sourceTree = ""; }; 49 | FC6E733B26A08BA600EA32F6 /* libswiftWebKit.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libswiftWebKit.tbd; path = usr/lib/swift/libswiftWebKit.tbd; sourceTree = SDKROOT; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 252A32F53ECD3F2714D955EC /* libPods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.a in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | FC6E733C26A08BA600EA32F6 /* libswiftWebKit.tbd in Frameworks */, 66 | 3A55A136B42535EAFFA7C73B /* libPods-ReactNativeChatVoiceRecordingExample.a in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | 00E356EF1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 00E356F21AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.m */, 77 | 00E356F01AD99517003FC87E /* Supporting Files */, 78 | ); 79 | path = ReactNativeChatVoiceRecordingExampleTests; 80 | sourceTree = ""; 81 | }; 82 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 00E356F11AD99517003FC87E /* Info.plist */, 86 | ); 87 | name = "Supporting Files"; 88 | sourceTree = ""; 89 | }; 90 | 13B07FAE1A68108700A75B9A /* ReactNativeChatVoiceRecordingExample */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 94 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 95 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 96 | 13B07FB61A68108700A75B9A /* Info.plist */, 97 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 98 | 13B07FB71A68108700A75B9A /* main.m */, 99 | ); 100 | name = ReactNativeChatVoiceRecordingExample; 101 | sourceTree = ""; 102 | }; 103 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | FC6E733B26A08BA600EA32F6 /* libswiftWebKit.tbd */, 107 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 108 | 8532B51BB176841359D7CDE4 /* libPods-ReactNativeChatVoiceRecordingExample.a */, 109 | AA0F396F7C83887166682441 /* libPods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.a */, 110 | ); 111 | name = Frameworks; 112 | sourceTree = ""; 113 | }; 114 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = Libraries; 119 | sourceTree = ""; 120 | }; 121 | 83CBB9F61A601CBA00E9B192 = { 122 | isa = PBXGroup; 123 | children = ( 124 | FC6E733A26A0868D00EA32F6 /* ReactNativeChatVoiceRecordingExample-Bridging-Header.h */, 125 | 13B07FAE1A68108700A75B9A /* ReactNativeChatVoiceRecordingExample */, 126 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 127 | 00E356EF1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests */, 128 | 83CBBA001A601CBA00E9B192 /* Products */, 129 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 130 | A21A369164838AB02575BD81 /* Pods */, 131 | ); 132 | indentWidth = 2; 133 | sourceTree = ""; 134 | tabWidth = 2; 135 | usesTabs = 0; 136 | }; 137 | 83CBBA001A601CBA00E9B192 /* Products */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 13B07F961A680F5B00A75B9A /* ReactNativeChatVoiceRecordingExample.app */, 141 | 00E356EE1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.xctest */, 142 | ); 143 | name = Products; 144 | sourceTree = ""; 145 | }; 146 | A21A369164838AB02575BD81 /* Pods */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | C1224ECE1EC9A41A60BC2245 /* Pods-ReactNativeChatVoiceRecordingExample.debug.xcconfig */, 150 | CD535198E7EE0F93C6F314AB /* Pods-ReactNativeChatVoiceRecordingExample.release.xcconfig */, 151 | EB95767924A336586684EB57 /* Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.debug.xcconfig */, 152 | 485F755F0FEFA1872438FCA1 /* Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.release.xcconfig */, 153 | ); 154 | path = Pods; 155 | sourceTree = ""; 156 | }; 157 | /* End PBXGroup section */ 158 | 159 | /* Begin PBXNativeTarget section */ 160 | 00E356ED1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests */ = { 161 | isa = PBXNativeTarget; 162 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeChatVoiceRecordingExampleTests" */; 163 | buildPhases = ( 164 | 017C931F4D99E4166D3B15C3 /* [CP] Check Pods Manifest.lock */, 165 | 00E356EA1AD99517003FC87E /* Sources */, 166 | 00E356EB1AD99517003FC87E /* Frameworks */, 167 | 00E356EC1AD99517003FC87E /* Resources */, 168 | CDA961254D30122F0161DA90 /* [CP] Embed Pods Frameworks */, 169 | 0DE0781D7D94E34C790CD0DD /* [CP] Copy Pods Resources */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 175 | ); 176 | name = ReactNativeChatVoiceRecordingExampleTests; 177 | productName = ReactNativeChatVoiceRecordingExampleTests; 178 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.xctest */; 179 | productType = "com.apple.product-type.bundle.unit-test"; 180 | }; 181 | 13B07F861A680F5B00A75B9A /* ReactNativeChatVoiceRecordingExample */ = { 182 | isa = PBXNativeTarget; 183 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeChatVoiceRecordingExample" */; 184 | buildPhases = ( 185 | EC3CF34087857A8ADA09EC12 /* [CP] Check Pods Manifest.lock */, 186 | FD10A7F022414F080027D42C /* Start Packager */, 187 | 13B07F871A680F5B00A75B9A /* Sources */, 188 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 189 | 13B07F8E1A680F5B00A75B9A /* Resources */, 190 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 191 | A47DFD2F205A444D584F4F4C /* [CP] Embed Pods Frameworks */, 192 | 1735DA21373AD00078E36EA9 /* [CP] Copy Pods Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | ); 198 | name = ReactNativeChatVoiceRecordingExample; 199 | productName = ReactNativeChatVoiceRecordingExample; 200 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeChatVoiceRecordingExample.app */; 201 | productType = "com.apple.product-type.application"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastUpgradeCheck = 1210; 210 | TargetAttributes = { 211 | 00E356ED1AD99517003FC87E = { 212 | CreatedOnToolsVersion = 6.2; 213 | TestTargetID = 13B07F861A680F5B00A75B9A; 214 | }; 215 | 13B07F861A680F5B00A75B9A = { 216 | LastSwiftMigration = 1120; 217 | }; 218 | }; 219 | }; 220 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeChatVoiceRecordingExample" */; 221 | compatibilityVersion = "Xcode 12.0"; 222 | developmentRegion = en; 223 | hasScannedForEncodings = 0; 224 | knownRegions = ( 225 | en, 226 | Base, 227 | ); 228 | mainGroup = 83CBB9F61A601CBA00E9B192; 229 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 230 | projectDirPath = ""; 231 | projectRoot = ""; 232 | targets = ( 233 | 13B07F861A680F5B00A75B9A /* ReactNativeChatVoiceRecordingExample */, 234 | 00E356ED1AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests */, 235 | ); 236 | }; 237 | /* End PBXProject section */ 238 | 239 | /* Begin PBXResourcesBuildPhase section */ 240 | 00E356EC1AD99517003FC87E /* Resources */ = { 241 | isa = PBXResourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 252 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXResourcesBuildPhase section */ 257 | 258 | /* Begin PBXShellScriptBuildPhase section */ 259 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | ); 266 | name = "Bundle React Native code and images"; 267 | outputPaths = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 272 | }; 273 | 017C931F4D99E4166D3B15C3 /* [CP] Check Pods Manifest.lock */ = { 274 | isa = PBXShellScriptBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | ); 278 | inputFileListPaths = ( 279 | ); 280 | inputPaths = ( 281 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 282 | "${PODS_ROOT}/Manifest.lock", 283 | ); 284 | name = "[CP] Check Pods Manifest.lock"; 285 | outputFileListPaths = ( 286 | ); 287 | outputPaths = ( 288 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-checkManifestLockResult.txt", 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | 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"; 293 | showEnvVarsInLog = 0; 294 | }; 295 | 0DE0781D7D94E34C790CD0DD /* [CP] Copy Pods Resources */ = { 296 | isa = PBXShellScriptBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | inputFileListPaths = ( 301 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", 302 | ); 303 | name = "[CP] Copy Pods Resources"; 304 | outputFileListPaths = ( 305 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-resources.sh\"\n"; 310 | showEnvVarsInLog = 0; 311 | }; 312 | 1735DA21373AD00078E36EA9 /* [CP] Copy Pods Resources */ = { 313 | isa = PBXShellScriptBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | inputFileListPaths = ( 318 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample-resources-${CONFIGURATION}-input-files.xcfilelist", 319 | ); 320 | name = "[CP] Copy Pods Resources"; 321 | outputFileListPaths = ( 322 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample-resources-${CONFIGURATION}-output-files.xcfilelist", 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample-resources.sh\"\n"; 327 | showEnvVarsInLog = 0; 328 | }; 329 | A47DFD2F205A444D584F4F4C /* [CP] Embed Pods Frameworks */ = { 330 | isa = PBXShellScriptBuildPhase; 331 | buildActionMask = 2147483647; 332 | files = ( 333 | ); 334 | inputFileListPaths = ( 335 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", 336 | ); 337 | name = "[CP] Embed Pods Frameworks"; 338 | outputFileListPaths = ( 339 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | shellPath = /bin/sh; 343 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample/Pods-ReactNativeChatVoiceRecordingExample-frameworks.sh\"\n"; 344 | showEnvVarsInLog = 0; 345 | }; 346 | CDA961254D30122F0161DA90 /* [CP] Embed Pods Frameworks */ = { 347 | isa = PBXShellScriptBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | ); 351 | inputFileListPaths = ( 352 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 353 | ); 354 | name = "[CP] Embed Pods Frameworks"; 355 | outputFileListPaths = ( 356 | "${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | shellPath = /bin/sh; 360 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests/Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests-frameworks.sh\"\n"; 361 | showEnvVarsInLog = 0; 362 | }; 363 | EC3CF34087857A8ADA09EC12 /* [CP] Check Pods Manifest.lock */ = { 364 | isa = PBXShellScriptBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | ); 368 | inputFileListPaths = ( 369 | ); 370 | inputPaths = ( 371 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 372 | "${PODS_ROOT}/Manifest.lock", 373 | ); 374 | name = "[CP] Check Pods Manifest.lock"; 375 | outputFileListPaths = ( 376 | ); 377 | outputPaths = ( 378 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeChatVoiceRecordingExample-checkManifestLockResult.txt", 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | shellPath = /bin/sh; 382 | 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"; 383 | showEnvVarsInLog = 0; 384 | }; 385 | FD10A7F022414F080027D42C /* Start Packager */ = { 386 | isa = PBXShellScriptBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | ); 390 | inputFileListPaths = ( 391 | ); 392 | inputPaths = ( 393 | ); 394 | name = "Start Packager"; 395 | outputFileListPaths = ( 396 | ); 397 | outputPaths = ( 398 | ); 399 | runOnlyForDeploymentPostprocessing = 0; 400 | shellPath = /bin/sh; 401 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 402 | showEnvVarsInLog = 0; 403 | }; 404 | /* End PBXShellScriptBuildPhase section */ 405 | 406 | /* Begin PBXSourcesBuildPhase section */ 407 | 00E356EA1AD99517003FC87E /* Sources */ = { 408 | isa = PBXSourcesBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | 00E356F31AD99517003FC87E /* ReactNativeChatVoiceRecordingExampleTests.m in Sources */, 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | }; 415 | 13B07F871A680F5B00A75B9A /* Sources */ = { 416 | isa = PBXSourcesBuildPhase; 417 | buildActionMask = 2147483647; 418 | files = ( 419 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 420 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 421 | ); 422 | runOnlyForDeploymentPostprocessing = 0; 423 | }; 424 | /* End PBXSourcesBuildPhase section */ 425 | 426 | /* Begin PBXTargetDependency section */ 427 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 428 | isa = PBXTargetDependency; 429 | target = 13B07F861A680F5B00A75B9A /* ReactNativeChatVoiceRecordingExample */; 430 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 431 | }; 432 | /* End PBXTargetDependency section */ 433 | 434 | /* Begin XCBuildConfiguration section */ 435 | 00E356F61AD99517003FC87E /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | baseConfigurationReference = EB95767924A336586684EB57 /* Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.debug.xcconfig */; 438 | buildSettings = { 439 | BUNDLE_LOADER = "$(TEST_HOST)"; 440 | GCC_PREPROCESSOR_DEFINITIONS = ( 441 | "DEBUG=1", 442 | "$(inherited)", 443 | ); 444 | INFOPLIST_FILE = ReactNativeChatVoiceRecordingExampleTests/Info.plist; 445 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 446 | LD_RUNPATH_SEARCH_PATHS = ( 447 | "$(inherited)", 448 | "@executable_path/Frameworks", 449 | "@loader_path/Frameworks", 450 | ); 451 | OTHER_LDFLAGS = ( 452 | "-ObjC", 453 | "-lc++", 454 | "$(inherited)", 455 | ); 456 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeChatVoiceRecordingExample.app/ReactNativeChatVoiceRecordingExample"; 459 | }; 460 | name = Debug; 461 | }; 462 | 00E356F71AD99517003FC87E /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | baseConfigurationReference = 485F755F0FEFA1872438FCA1 /* Pods-ReactNativeChatVoiceRecordingExample-ReactNativeChatVoiceRecordingExampleTests.release.xcconfig */; 465 | buildSettings = { 466 | BUNDLE_LOADER = "$(TEST_HOST)"; 467 | COPY_PHASE_STRIP = NO; 468 | INFOPLIST_FILE = ReactNativeChatVoiceRecordingExampleTests/Info.plist; 469 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 470 | LD_RUNPATH_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "@executable_path/Frameworks", 473 | "@loader_path/Frameworks", 474 | ); 475 | OTHER_LDFLAGS = ( 476 | "-ObjC", 477 | "-lc++", 478 | "$(inherited)", 479 | ); 480 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeChatVoiceRecordingExample.app/ReactNativeChatVoiceRecordingExample"; 483 | }; 484 | name = Release; 485 | }; 486 | 13B07F941A680F5B00A75B9A /* Debug */ = { 487 | isa = XCBuildConfiguration; 488 | baseConfigurationReference = C1224ECE1EC9A41A60BC2245 /* Pods-ReactNativeChatVoiceRecordingExample.debug.xcconfig */; 489 | buildSettings = { 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | CLANG_ENABLE_MODULES = YES; 492 | CURRENT_PROJECT_VERSION = 1; 493 | DEVELOPMENT_TEAM = EHV7XZLAHA; 494 | ENABLE_BITCODE = YES; 495 | GCC_WARN_64_TO_32_BIT_CONVERSION = NO; 496 | INFOPLIST_FILE = ReactNativeChatVoiceRecordingExample/Info.plist; 497 | LD_RUNPATH_SEARCH_PATHS = ( 498 | "$(inherited)", 499 | "@executable_path/Frameworks", 500 | ); 501 | LIBRARY_SEARCH_PATHS = ( 502 | "$(inherited)", 503 | "$(SDKROOT)/usr/lib/swift", 504 | ); 505 | OTHER_LDFLAGS = ( 506 | "$(inherited)", 507 | "-ObjC", 508 | "-lc++", 509 | ); 510 | PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; 511 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 512 | PRODUCT_NAME = ReactNativeChatVoiceRecordingExample; 513 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 514 | SWIFT_VERSION = 5.0; 515 | VERSIONING_SYSTEM = "apple-generic"; 516 | }; 517 | name = Debug; 518 | }; 519 | 13B07F951A680F5B00A75B9A /* Release */ = { 520 | isa = XCBuildConfiguration; 521 | baseConfigurationReference = CD535198E7EE0F93C6F314AB /* Pods-ReactNativeChatVoiceRecordingExample.release.xcconfig */; 522 | buildSettings = { 523 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 524 | CLANG_ENABLE_MODULES = YES; 525 | CURRENT_PROJECT_VERSION = 1; 526 | DEVELOPMENT_TEAM = EHV7XZLAHA; 527 | GCC_WARN_64_TO_32_BIT_CONVERSION = NO; 528 | INFOPLIST_FILE = ReactNativeChatVoiceRecordingExample/Info.plist; 529 | LD_RUNPATH_SEARCH_PATHS = ( 530 | "$(inherited)", 531 | "@executable_path/Frameworks", 532 | ); 533 | LIBRARY_SEARCH_PATHS = ( 534 | "$(inherited)", 535 | "$(SDKROOT)/usr/lib/swift", 536 | ); 537 | OTHER_LDFLAGS = ( 538 | "$(inherited)", 539 | "-ObjC", 540 | "-lc++", 541 | ); 542 | PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES; 543 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 544 | PRODUCT_NAME = ReactNativeChatVoiceRecordingExample; 545 | SWIFT_VERSION = 5.0; 546 | VERSIONING_SYSTEM = "apple-generic"; 547 | }; 548 | name = Release; 549 | }; 550 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 551 | isa = XCBuildConfiguration; 552 | buildSettings = { 553 | ALWAYS_SEARCH_USER_PATHS = NO; 554 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 555 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 556 | CLANG_CXX_LIBRARY = "libc++"; 557 | CLANG_ENABLE_MODULES = YES; 558 | CLANG_ENABLE_OBJC_ARC = YES; 559 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 560 | CLANG_WARN_BOOL_CONVERSION = YES; 561 | CLANG_WARN_COMMA = YES; 562 | CLANG_WARN_CONSTANT_CONVERSION = YES; 563 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 564 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 565 | CLANG_WARN_EMPTY_BODY = YES; 566 | CLANG_WARN_ENUM_CONVERSION = YES; 567 | CLANG_WARN_INFINITE_RECURSION = YES; 568 | CLANG_WARN_INT_CONVERSION = YES; 569 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 570 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 571 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 572 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 573 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 574 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 575 | CLANG_WARN_STRICT_PROTOTYPES = YES; 576 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 577 | CLANG_WARN_UNREACHABLE_CODE = YES; 578 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 579 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 580 | COPY_PHASE_STRIP = NO; 581 | ENABLE_STRICT_OBJC_MSGSEND = YES; 582 | ENABLE_TESTABILITY = YES; 583 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 584 | GCC_C_LANGUAGE_STANDARD = gnu99; 585 | GCC_DYNAMIC_NO_PIC = NO; 586 | GCC_NO_COMMON_BLOCKS = YES; 587 | GCC_OPTIMIZATION_LEVEL = 0; 588 | GCC_PREPROCESSOR_DEFINITIONS = ( 589 | "DEBUG=1", 590 | "$(inherited)", 591 | ); 592 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 593 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 594 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 595 | GCC_WARN_UNDECLARED_SELECTOR = YES; 596 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 597 | GCC_WARN_UNUSED_FUNCTION = YES; 598 | GCC_WARN_UNUSED_VARIABLE = YES; 599 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 600 | LD_RUNPATH_SEARCH_PATHS = ( 601 | /usr/lib/swift, 602 | "$(inherited)", 603 | ); 604 | LIBRARY_SEARCH_PATHS = ( 605 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 606 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 607 | "\"$(inherited)\"", 608 | ); 609 | MTL_ENABLE_DEBUG_INFO = YES; 610 | NEW_SETTING = ""; 611 | ONLY_ACTIVE_ARCH = YES; 612 | SDKROOT = iphoneos; 613 | }; 614 | name = Debug; 615 | }; 616 | 83CBBA211A601CBA00E9B192 /* Release */ = { 617 | isa = XCBuildConfiguration; 618 | buildSettings = { 619 | ALWAYS_SEARCH_USER_PATHS = NO; 620 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 621 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 622 | CLANG_CXX_LIBRARY = "libc++"; 623 | CLANG_ENABLE_MODULES = YES; 624 | CLANG_ENABLE_OBJC_ARC = YES; 625 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 626 | CLANG_WARN_BOOL_CONVERSION = YES; 627 | CLANG_WARN_COMMA = YES; 628 | CLANG_WARN_CONSTANT_CONVERSION = YES; 629 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 630 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 631 | CLANG_WARN_EMPTY_BODY = YES; 632 | CLANG_WARN_ENUM_CONVERSION = YES; 633 | CLANG_WARN_INFINITE_RECURSION = YES; 634 | CLANG_WARN_INT_CONVERSION = YES; 635 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 636 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 637 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 638 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 639 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 640 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 641 | CLANG_WARN_STRICT_PROTOTYPES = YES; 642 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 643 | CLANG_WARN_UNREACHABLE_CODE = YES; 644 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 645 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 646 | COPY_PHASE_STRIP = YES; 647 | ENABLE_NS_ASSERTIONS = NO; 648 | ENABLE_STRICT_OBJC_MSGSEND = YES; 649 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 650 | GCC_C_LANGUAGE_STANDARD = gnu99; 651 | GCC_NO_COMMON_BLOCKS = YES; 652 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 653 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 654 | GCC_WARN_UNDECLARED_SELECTOR = YES; 655 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 656 | GCC_WARN_UNUSED_FUNCTION = YES; 657 | GCC_WARN_UNUSED_VARIABLE = YES; 658 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 659 | LD_RUNPATH_SEARCH_PATHS = ( 660 | /usr/lib/swift, 661 | "$(inherited)", 662 | ); 663 | LIBRARY_SEARCH_PATHS = ( 664 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 665 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 666 | "\"$(inherited)\"", 667 | ); 668 | MTL_ENABLE_DEBUG_INFO = NO; 669 | NEW_SETTING = ""; 670 | SDKROOT = iphoneos; 671 | VALIDATE_PRODUCT = YES; 672 | }; 673 | name = Release; 674 | }; 675 | /* End XCBuildConfiguration section */ 676 | 677 | /* Begin XCConfigurationList section */ 678 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeChatVoiceRecordingExampleTests" */ = { 679 | isa = XCConfigurationList; 680 | buildConfigurations = ( 681 | 00E356F61AD99517003FC87E /* Debug */, 682 | 00E356F71AD99517003FC87E /* Release */, 683 | ); 684 | defaultConfigurationIsVisible = 0; 685 | defaultConfigurationName = Release; 686 | }; 687 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeChatVoiceRecordingExample" */ = { 688 | isa = XCConfigurationList; 689 | buildConfigurations = ( 690 | 13B07F941A680F5B00A75B9A /* Debug */, 691 | 13B07F951A680F5B00A75B9A /* Release */, 692 | ); 693 | defaultConfigurationIsVisible = 0; 694 | defaultConfigurationName = Release; 695 | }; 696 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeChatVoiceRecordingExample" */ = { 697 | isa = XCConfigurationList; 698 | buildConfigurations = ( 699 | 83CBBA201A601CBA00E9B192 /* Debug */, 700 | 83CBBA211A601CBA00E9B192 /* Release */, 701 | ); 702 | defaultConfigurationIsVisible = 0; 703 | defaultConfigurationName = Release; 704 | }; 705 | /* End XCConfigurationList section */ 706 | }; 707 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 708 | } 709 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample.xcodeproj/xcshareddata/xcschemes/ReactNativeChatVoiceRecordingExample.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 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"ReactNativeChatVoiceRecordingExample" 37 | initialProperties:nil]; 38 | 39 | if (@available(iOS 13.0, *)) { 40 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 41 | } else { 42 | rootView.backgroundColor = [UIColor whiteColor]; 43 | } 44 | 45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 46 | UIViewController *rootViewController = [UIViewController new]; 47 | rootViewController.view = rootView; 48 | self.window.rootViewController = rootViewController; 49 | [self.window makeKeyAndVisible]; 50 | return YES; 51 | } 52 | 53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 54 | { 55 | #if DEBUG 56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 57 | #else 58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 59 | #endif 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/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" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativeChatVoiceRecordingExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSPhotoLibraryAddUsageDescription 28 | $(PRODUCT_NAME) would like to save photos to your photo gallery 29 | NSPhotoLibraryUsageDescription 30 | $(PRODUCT_NAME) would like access to your photo gallery 31 | NSMicrophoneUsageDescription 32 | Give $(PRODUCT_NAME) permission to use your microphone. Your record wont be shared without your permission. 33 | NSAppTransportSecurity 34 | 35 | NSExceptionDomains 36 | 37 | localhost 38 | 39 | NSExceptionAllowsInsecureHTTPLoads 40 | 41 | 42 | 43 | 44 | NSLocationWhenInUseUsageDescription 45 | 46 | UILaunchStoryboardName 47 | LaunchScreen 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationLandscapeLeft 56 | UIInterfaceOrientationLandscapeRight 57 | 58 | UIViewControllerBasedStatusBarAppearance 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExample/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 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/ReactNativeChatVoiceRecordingExampleTests/ReactNativeChatVoiceRecordingExampleTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface ReactNativeChatVoiceRecordingExampleTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation ReactNativeChatVoiceRecordingExampleTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | const {getDefaultConfig} = require('metro-config'); 9 | 10 | module.exports = async () => { 11 | const { 12 | resolver: {assetExts, sourceExts}, 13 | } = await getDefaultConfig(); 14 | return { 15 | resolver: { 16 | assetExts: assetExts.filter(ext => ext !== 'svg'), 17 | sourceExts: [...sourceExts, 'svg'], 18 | }, 19 | transformer: { 20 | babelTransformerPath: require.resolve('react-native-svg-transformer'), 21 | getTransformOptions: async () => ({ 22 | transform: { 23 | experimentalImportSupport: false, 24 | inlineRequires: true, 25 | }, 26 | }), 27 | }, 28 | }; 29 | }; 30 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeChatVoiceRecordingExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-community/blur": "^3.6.0", 14 | "@react-native-community/cameraroll": "^4.0.4", 15 | "@react-native-community/netinfo": "^6.0.0", 16 | "@react-navigation/native": "5.9.4", 17 | "@react-navigation/stack": "5.14.5", 18 | "@stream-io/flat-list-mvcp": "^0.10.1", 19 | "react": "17.0.1", 20 | "react-native": "0.64.2", 21 | "react-native-audio-recorder-player": "3.1.0", 22 | "react-native-document-picker": "^5.2.0", 23 | "react-native-dotenv": "^3.1.1", 24 | "react-native-fs": "^2.18.0", 25 | "react-native-gesture-handler": "^1.10.3", 26 | "react-native-haptic-feedback": "^1.11.0", 27 | "react-native-image-crop-picker": "^0.36.2", 28 | "react-native-image-resizer": "^1.4.5", 29 | "react-native-reanimated": "^2.2.0", 30 | "react-native-safe-area-context": "^3.2.0", 31 | "react-native-screens": "3.2.0", 32 | "react-native-share": "^6.2.3", 33 | "react-native-svg": "^12.1.1", 34 | "stream-chat-react-native": "^3.6.4" 35 | }, 36 | "devDependencies": { 37 | "@babel/core": "^7.12.9", 38 | "@babel/runtime": "^7.12.5", 39 | "@react-native-community/eslint-config": "^2.0.0", 40 | "babel-jest": "^26.6.3", 41 | "eslint": "7.14.0", 42 | "jest": "^26.6.3", 43 | "metro-react-native-babel-preset": "^0.64.0", 44 | "react-native-svg-transformer": "^0.14.3", 45 | "react-test-renderer": "17.0.1" 46 | }, 47 | "jest": { 48 | "preset": "react-native" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/components/InputBox.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable react/display-name */ 2 | import React, {useState} from 'react'; 3 | import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'; 4 | import { 5 | AttachButton, 6 | SendButton, 7 | useChatContext, 8 | useMessageInputContext, 9 | useMessagesContext, 10 | ImageUploadPreview, 11 | FileUploadPreview, 12 | AutoCompleteInput, 13 | useChannelContext, 14 | } from 'stream-chat-react-native'; 15 | 16 | import MicIcon from '../icons/mic.svg'; 17 | 18 | import AudioRecorderPlayer from 'react-native-audio-recorder-player'; 19 | 20 | const audioRecorderPlayer = new AudioRecorderPlayer(); 21 | 22 | const styles = StyleSheet.create({ 23 | flex: {flex: 1}, 24 | fullWidth: { 25 | width: '100%', 26 | }, 27 | row: { 28 | flexDirection: 'row', 29 | alignItems: 'center', 30 | }, 31 | inputContainer: { 32 | height: 40, 33 | }, 34 | autoCompleteInputContainer: { 35 | marginHorizontal: 10, 36 | paddingVertical: 10, 37 | justifyContent: 'center', 38 | }, 39 | }); 40 | 41 | export const InputBox = () => { 42 | const {client} = useChatContext(); 43 | const {text, giphyActive, imageUploads, fileUploads, toggleAttachmentPicker} = 44 | useMessageInputContext(); 45 | const {updateMessage} = useMessagesContext(); 46 | const {channel} = useChannelContext(); 47 | 48 | const [recordingActive, setRecordingActive] = useState(false); 49 | const [recordSecs, setRecordSecs] = useState(0); 50 | const [recordTime, setRecordTime] = useState(0); 51 | 52 | const sendVoiceMessage = async uri => { 53 | // Compose a message object to be sent. 54 | const message = { 55 | created_at: new Date(), 56 | attachments: [ 57 | { 58 | asset_url: uri, 59 | file_size: 200, 60 | mime_type: 'audio/mp4', 61 | title: 'test.mp4', 62 | type: 'voice-message', 63 | audio_length: recordTime, 64 | }, 65 | ], 66 | mentioned_users: [], 67 | id: `random-id-${new Date().toTimeString()}`, 68 | status: 'sending', 69 | type: 'regular', 70 | user: client.user, 71 | }; 72 | 73 | // Add the message optimistically to local state first. 74 | updateMessage(message); 75 | 76 | // Upload the file to cdn. 77 | const res = await channel.sendFile(uri, 'test.mp4', 'audio/mp4'); 78 | const { 79 | created_at, 80 | html, 81 | type, 82 | status, 83 | user, 84 | ...messageWithoutReservedFields 85 | } = message; 86 | 87 | messageWithoutReservedFields.attachments[0].asset_url = res.file; 88 | 89 | // Send the message on channel. 90 | await channel.sendMessage(messageWithoutReservedFields); 91 | }; 92 | 93 | const onStartRecord = async () => { 94 | setRecordingActive(true); 95 | 96 | await audioRecorderPlayer.startRecorder(); 97 | audioRecorderPlayer.addRecordBackListener(e => { 98 | setRecordSecs(e.currentPosition); 99 | setRecordTime(audioRecorderPlayer.mmssss(Math.floor(e.currentPosition))); 100 | 101 | return; 102 | }); 103 | }; 104 | 105 | const onStopRecord = async () => { 106 | setRecordingActive(false); 107 | 108 | const result = await audioRecorderPlayer.stopRecorder(); 109 | audioRecorderPlayer.removeRecordBackListener(); 110 | setRecordSecs(0); 111 | 112 | await sendVoiceMessage(result); 113 | }; 114 | 115 | const emptyInput = 116 | !text && !imageUploads.length && !fileUploads.length && !giphyActive; 117 | 118 | return ( 119 | 120 | 121 | 122 | 123 | {!recordingActive ? ( 124 | 125 | 126 | 127 | 128 | 129 | 130 | ) : ( 131 | 132 | Recording Voice {recordTime} 133 | 134 | )} 135 | {emptyInput ? ( 136 | 139 | 140 | 141 | ) : ( 142 | 143 | )} 144 | 145 | 146 | ); 147 | }; 148 | -------------------------------------------------------------------------------- /src/components/ListPreviewMessage.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable react/display-name */ 2 | import React from 'react'; 3 | import {StyleSheet, Text, View} from 'react-native'; 4 | import {ChannelPreviewMessage} from 'stream-chat-react-native'; 5 | 6 | import MicIcon from '../icons/mic.svg'; 7 | 8 | const styles = StyleSheet.create({ 9 | voiceMessagePreview: { 10 | flexDirection: 'row', 11 | }, 12 | voiceMessagePreviewText: { 13 | marginHorizontal: 5, 14 | color: 'grey', 15 | fontSize: 12, 16 | }, 17 | }); 18 | 19 | export const ListPreviewMessage = ({latestMessagePreview}) => { 20 | const latestMessageAttachments = 21 | latestMessagePreview.messageObject?.attachments; 22 | 23 | if ( 24 | latestMessageAttachments && 25 | latestMessageAttachments.length === 1 && 26 | latestMessageAttachments[0].type === 'voice-message' 27 | ) { 28 | return ( 29 | 30 | 31 | Voice Message 32 | 33 | ); 34 | } 35 | 36 | return ; 37 | }; 38 | -------------------------------------------------------------------------------- /src/components/VoiceMessageAttachment.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable react/display-name */ 2 | import React, {useRef, useState} from 'react'; 3 | import {ActivityIndicator, Button, StyleSheet, Text, View} from 'react-native'; 4 | import {useMessageContext} from 'stream-chat-react-native'; 5 | 6 | import AudioRecorderPlayer from 'react-native-audio-recorder-player'; 7 | 8 | const styles = StyleSheet.create({ 9 | loadingIndicatorContainer: { 10 | padding: 7, 11 | }, 12 | container: { 13 | padding: 5, 14 | width: 250, 15 | }, 16 | audioPlayerContainer: {flexDirection: 'row', alignItems: 'center'}, 17 | progressDetailsContainer: { 18 | flexDirection: 'row', 19 | justifyContent: 'space-between', 20 | }, 21 | progressDetailsText: { 22 | paddingHorizontal: 5, 23 | color: 'grey', 24 | fontSize: 10, 25 | }, 26 | progressIndicatorContainer: { 27 | flex: 1, 28 | backgroundColor: '#e2e2e2', 29 | }, 30 | progressLine: { 31 | borderWidth: 1, 32 | borderColor: 'black', 33 | }, 34 | }); 35 | 36 | export const VoiceMessageAttachment = ({audio_length, asset_url, type}) => { 37 | const {message} = useMessageContext(); 38 | const [currentPositionSec, setCurrentPositionSec] = useState(0); 39 | const [loadingAudio, setLoadingAudio] = useState(false); 40 | const [paused, setPaused] = useState(false); 41 | const [currentDurationSec, setCurrentDurationSec] = useState(audio_length); 42 | const [playTime, setPlayTime] = useState(0); 43 | const [duration, setDuration] = useState(audio_length); 44 | const audioRecorderPlayer = useRef(new AudioRecorderPlayer()).current; 45 | 46 | const onStartPlay = async () => { 47 | setPaused(false); 48 | setLoadingAudio(true); 49 | await audioRecorderPlayer.startPlayer(asset_url); 50 | 51 | setLoadingAudio(false); 52 | audioRecorderPlayer.addPlayBackListener(e => { 53 | if (e.currentPosition < 0) { 54 | return; 55 | } 56 | 57 | setCurrentPositionSec(e.currentPosition); 58 | setCurrentDurationSec(e.duration); 59 | setPlayTime(audioRecorderPlayer.mmssss(Math.floor(e.currentPosition))); 60 | setDuration(audioRecorderPlayer.mmssss(Math.floor(e.duration))); 61 | 62 | if (e.currentPosition === e.duration) { 63 | onStopPlay(); 64 | } 65 | return; 66 | }); 67 | }; 68 | 69 | const onPausePlay = async () => { 70 | setPaused(true); 71 | await audioRecorderPlayer.pausePlayer(); 72 | }; 73 | 74 | const onStopPlay = async () => { 75 | setPaused(false); 76 | setCurrentPositionSec(0); 77 | setPlayTime(0); 78 | audioRecorderPlayer.stopPlayer(); 79 | audioRecorderPlayer.removePlayBackListener(); 80 | }; 81 | 82 | if (type !== 'voice-message') { 83 | return null; 84 | } 85 | 86 | return ( 87 | 88 | 89 | {message.status === 'sending' || loadingAudio ? ( 90 | 91 | 92 | 93 | ) : currentPositionSec > 0 && !paused ? ( 94 |