Background Music from other apps should stops while playing video in react native app.
Using "react-native-video": "git://github.com/olofd/react-native-video.git#react-native-photos-framework"
I am stuck, please respond as soon as possible.
Background Music from other apps should stops while playing video in react native app.
Using "react-native-video": "git://github.com/olofd/react-native-video.git#react-native-photos-framework"
I am stuck, please respond as soon as possible.
In iOS you can use the PageCurl transition style on a UIPageViewController to have the same page curl effect as iBooks in iOS.
Is there a way to use the PageCurl transition effect on a React Native view?
Since I updated my project to 0.63 whenever i build for profiling the app errors on
ld: library not found for -lDoubleConversion
When I run the app normally it works perfectly.
My pods has at the top...
require_relative '../node_modules/react-native/scripts/react_native_pods'
I have even tried adding
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
To no avail.
I tried going to library search paths and removing
"${PODS_CONFIGURATION_BUILD_DIR}/DoubleConversion"
But that didn't help either
I am running .xcworkspace project.
Any other ideas?
Get all contacts from phonebook and upload to server but got following error.
While append image in request body FormData
Tried code
pass file url contact thumbnailPath
const path = con.thumbnailPathbody.append('image', { uri: path, type: 'image/jpeg', name: 'photo.jpg', type: 'multipart/form-data'})
Tried code
pass file url contact thumbnailPath without "file://"
const path = con.thumbnailPath.replace('file://', '')body.append('image', { uri: path, type: 'image/jpeg', name: 'photo.jpg', type: 'multipart/form-data'})
Tried code
check file exist on path or not with using react-native-fs
if (con.thumbnailPath != '') { let isExist = RNFS.exists(con.thumbnailPath) if (isExist) { const path = con.thumbnailPath.replace('file://', '') console.log("Exist", path) body.append('image', { uri: path, type: 'image/jpeg', name: 'photo.jpg', type: 'multipart/form-data' }) }}
Request
fetch(url, { method: 'POST', headers: {'Authorization': token,'token': token }, body: params }).then((res) => res.json()).then((json) => { console.log("RESPONSE:- ", json) if (json.response[0].status == 'false') { let msg = json.response[0].response_msg callback(new Error(msg), json.response[0]) } else { callback(null, json.response[0]) }}).catch((err) => { console.log(err) callback(err, null)})
From my React-Native app, I'm opening a SafariViewController. I cannot find any way to close it and go back to my app using Detox.
I've tried to search for the "Close" button, and to use tap()
with coordinates but because this seems to be a different activity, it just doesn't work.
I'm wondering if there is any way to actually go back using Detox?
I'd rather not mock this completely for the purpose of the test which wouldn't really make sense..
Thanks!
I have a requirement in my react-native app where in which if the user provides a number which will be the number of kilometres or miles (like 5 or 10), the map should zoom in/out showing the area with radius as the input number.
How can I change the latitudeDelta and longitudeDelta values based on those input numbers.
Please help me out. Thanks in advance.
I wanted to use a custom font in my react-native project, but I got an error on ios simulatorHow can I solve it
I tried every way but I couldn't find a solution.
Unrecognized Font Family: sfproregular
Error:Error Screenshot
Project Structure:Project structure screenshot
react-native.config.js
module.exports = { project: { ios: {}, android: {}, // grouped into "project" }, assets: ["./assets/fonts/"], // stays the same };
versions
"react": "16.13.1","react-native": "0.63.2","react-native-gesture-handler": "^1.7.0","react-native-phone-input": "^0.2.4","react-navigation": "^4.4.0"
I wanted to use the font in "Welcome.js"
Welcome.js
import React from 'react';import { SafeAreaView, StyleSheet, ScrollView, View, Text, Image, StatusBar, TouchableOpacity, Button, ImageBackground,} from 'react-native';import Logo from '../components/WelcomeLogo';import arkaplan from '../assets/images/arkaplan.png';export default class Welcome extends React.Component { render() { return (<><ImageBackground source={arkaplan} style={styles.constrain} ><StatusBar barStyle="light-content"/><Logo /><Text style={styles.welcome} >Welcome!</Text></View></> ) }};const styles = StyleSheet.create({ constrain: { flex: 1, alignItems:'center', justifyContent:'center', welcome: { fontSize: 50, color: 'white', fontFamily: 'sfprogregular', marginTop: 20, marginBottom: 5, },});
I am starting to "learn" React Native and the first tutorial I see uses a <MapView />
component. I have tried different ways to show a map but I am not able to.
According to the video itself, it imports MapView
from expo
. But after reading some documentation at the Expo site I changed the import to react-native-maps
. The error changes but there is no map at all.
When importing MapView
from expo
I get an Invariant Violation error. But when importing it from react-native-maps
I get a blank screen on Android and iOS simulators.
I found this online real-time editor with their own iOS / Android / Web simulators. This is the example: https://snack.expo.io/B1H3VWtDH
This is the code. It has two lines...
import React from 'react';import { Text, View } from 'react-native';import MapView from 'react-native-maps';function App() { const [region, setRegion] = React.useState({ latitude: -30.8501718, longitude: -50.1700368, latitudeDelta: 0.922, longitudeDelta: 0.0421 }) return (<View><Text>Map screen</Text><MapView initialRegion={region} style={{ flex: 1 }} /></View> );}export default App;
What is wrong? Any comments will be appreciated.
In the following environment:
Xcode 8.3.2react-native-cli 2.0.1react-native: 0.44.0macOS Sierra 10.12.5
Just updated Xcode and macOS to run React Native and keep on practicing as I was some days ago... but everytime I try to run:
react-native run-ios
I get the error:
Scanning 555 folders for symlinks in /Users/juangarcia/projects/react-tests/CountDown/node_modules (6ms)Found Xcode project CountDown.xcodeprojCould not find iPhone 6 simulator
I try to see the list of devices available and I get:
~/projects/react-tests/CountDownSample » xcrun simctl list devices== Devices ==-- iOS 10.3 ---- tvOS 10.2 -- Apple TV 1080p (323FA90C-0366-4B5B-AEEE-D0477C61762A) (Shutdown)-- watchOS 3.2 -- Apple Watch - 38mm (F42C0C0D-325B-41DD-948D-E44B0A08B951) (Shutdown) Apple Watch - 42mm (75D8BAF1-27CB-47EE-9EE3-D400B962F8BC) (Shutdown) Apple Watch Series 2 - 38mm (64D01BD4-5C37-4885-A73A-52479D9CCF4F) (Shutdown) Apple Watch Series 2 - 42mm (8471C9FD-BCF3-4DDC-B386-F17E128C5EB1) (Shutdown)-- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-9-3 -- iPhone 4s (1FF2D0D3-F136-43A7-8148-7B1849A7B1E3) (Shutdown) (unavailable, runtime profile not found) iPhone 5 (859D4D90-F1B5-4DE8-B976-6984F85CAFE3) (Shutdown) (unavailable, runtime profile not found) iPhone 5s (5B2AD8CD-9B3F-413C-BF16-FA96F807BB2B) (Shutdown) (unavailable, runtime profile not found) iPhone 6 (2573D214-4371-47A8-BFF6-3341862954E0) (Shutdown) (unavailable, runtime profile not found) iPhone 6 Plus (8916CD9B-4D8B-463F-8583-75A2CE4F61FD) (Shutdown) (unavailable, runtime profile not found) iPhone 6s (41093980-7912-4F98-9D06-981A533FAAFE) (Shutdown) (unavailable, runtime profile not found) iPhone 6s Plus (6A85D2AE-D867-4341-979C-FEE8308DE93E) (Shutdown) (unavailable, runtime profile not found) iPad 2 (BFBB5477-B6D9-48C3-B529-516D2D9105A7) (Shutdown) (unavailable, runtime profile not found) iPad Retina (C49B5920-F4FF-4D7F-AA74-7AE2367FF09D) (Shutdown) (unavailable, runtime profile not found) iPad Air (4101FC8E-D8B9-4496-AD2B-1484661C15DE) (Shutdown) (unavailable, runtime profile not found) iPad Air 2 (9952B05C-829F-428F-AC76-EB1F8FB55D72) (Shutdown) (unavailable, runtime profile not found) iPad Pro (735082E2-4470-4D9A-BAA1-BEDA8426B725) (Shutdown) (unavailable, runtime profile not found)-- Unavailable: com.apple.CoreSimulator.SimRuntime.tvOS-9-2 -- Apple TV 1080p (AD48DE24-6295-4EFC-9787-A9B5D8118503) (Shutdown) (unavailable, runtime profile not found)-- Unavailable: com.apple.CoreSimulator.SimRuntime.watchOS-2-2 -- Apple Watch - 38mm (C3F2A7C3-3967-4159-9B79-13CBA63E399E) (Shutdown) (unavailable, runtime profile not found) Apple Watch - 42mm (656005A9-7555-4872-A7FB-FB6BCB65139C) (Shutdown) (unavailable, runtime profile not found)
react takes by default Iphone 6 to work with, and it is not available
how can I make it available again? and why did this happen?
I have stumbled upon a weird issue.
I have upgraded my expo app to SDK38 (managed workflow), no major changes to the code other than a couple of bug fixes and the expo upgraded packages.
I then built and released to test-flight, the app now asks for access to photos on boot.
I have found no mention on expo docs about forced CAMERA_ROLL permissions and I am not calling it anywhere. The only permission the app asks for are LOCATION and NOTIFICATIONS.
Have I missed something? How can I find what is requesting these permissions?
Thanks for any help!
I am using flex in Text field to display my values/range. For IOS I am using the properties adjustsFontSizeToFit and minimumFontScale props for Text to achieve the ideal font size and scaling. I want the same scaling to be enabled for Android. Does anyone use any tricks for Android?
<View style={{flex: 40}}> { (Platform.OS === 'ios') ?<Text style={{flex: 1, paddingRight: 2}} adjustsFontSizeToFit minimumFontScale={0.5}> //if decimal value exists show range (pointFivePart_1 === '5') ? <Text style={{ flexDirection: 'row' }} ><Text style={styles.mainValueStyle}>{first_1}</Text><Text style=styles.decimalValueStyle}> .pointFivePart_1}</Text><Text style={styles.mainValueStyle}>°</Text></Text> : <Text style={styles.mainValueStyle} >{min}°</Text> } //if two values then show the second value as range{// render largest value if different than min (maxSet === minSet) ? null : ( (pointFivePart_2 === '5') ?<Text style={{ flexDirection: 'row' }} ><Text style={styles.mainValueStyle}> - {first_2}</Text><Text style={styles.decimalValueStyle}>.{pointFivePart_2}</Text><Text style={styles.mainValueStyle}>°</Text></Text> :<Text style={styles.mainValueStyle} > - {maxSet}°</Text> ) }</Text> : //same styling for android
I work on a sales application and we have recently started using a 3rd party iOS app as a container for our react-native web app and I was wonder if it is possible to communicate between the two applications.
The developer for the iOS app suggested the following command to enable our app to close and go back to their app:
<a href="#" onclick="window.webkit.messageHandlers.webView.postMessage({'action':'back'}); return false; ">Go Back</a>
Obviously I had to convert this in to react sort of notation so end up something like this:
Is there some sort of package I need to download in order to have the WebKit dependencies as WebKit was not an option?
The developer for the application says that their iOS app should receive the action and take necessary action based on the parameter 'action' but I have not managed to get the intended results and he hasn't been able to help me with the issue so far.
Does anyone have experience with postMessage between iOS and react web apps?
Appreciate any help
Ld /Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/collectly.app/collectly normal x86_64 (in target: collectly)cd /Users/osx/Documents/Prakunj/collectly/iosexport IPHONEOS_DEPLOYMENT_TARGET=10.0/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FBSDKLoginKit -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FBSDKShareKit -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FirebaseAuth -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FirebaseCore -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FirebaseInstallations -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Flipper -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Folly -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/GoogleDataTransport -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/GoogleUtilities -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/PromisesObjC -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNCAsyncStorage -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNCMaskedView -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNFirebase -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNGestureHandler -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNReanimated -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNSVG -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/RNScreens -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-Core -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/Yoga -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/glog -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/nanopb -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/react-native-fbsdk -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -L/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/react-native-twitter-signin -L/Users/osx/Documents/Prakunj/collectly/ios/Pods/CocoaLibEvent/lib -L/Users/osx/Documents/Prakunj/collectly/ios/Pods/OpenSSL-Universal/ios/lib -F/Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator -F/Users/osx/Documents/Prakunj/collectly/ios/Pods/Crashlytics/iOS -F/Users/osx/Documents/Prakunj/collectly/ios/Pods/Fabric/iOS -F/Users/osx/Documents/Prakunj/collectly/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/osx/Documents/Prakunj/collectly/ios/Pods/GoogleAppMeasurement/Frameworks -F/Users/osx/Documents/Prakunj/collectly/ios/Pods/TwitterCore/iOS -F/Users/osx/Documents/Prakunj/collectly/ios/Pods/TwitterKit/iOS -filelist /Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Intermediates.noindex/collectly.build/Debug-iphonesimulator/collectly.build/Objects-normal/x86_64/collectly.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Intermediates.noindex/collectly.build/Debug-iphonesimulator/collectly.build/Objects-normal/x86_64/collectly_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFBSDKCoreKit -lFBSDKLoginKit -lFBSDKShareKit -lFirebaseAuth -lFirebaseCore -lFirebaseCoreDiagnostics -lFirebaseInstallations -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lGTMSessionFetcher -lGoogleDataTransport -lGoogleUtilities -lPromisesObjC -lRCTTypeSafety -lRNCAsyncStorage -lRNCMaskedView -lRNFirebase -lRNGestureHandler -lRNReanimated -lRNSVG -lRNScreens -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lYoga -lYogaKit -lc++ -lcrypto -levent -levent_core -levent_extra -levent_pthreads -lglog -lnanopb -lreact-native-fbsdk -lreact-native-safe-area-context -lreact-native-twitter-signin -lsqlite3 -lssl -lstdc++ -lz -framework AVFoundation -framework Accounts -framework AudioToolbox -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreText -framework Crashlytics -framework FIRAnalyticsConnector -framework Fabric -framework FirebaseAnalytics -framework Foundation -framework GoogleAppMeasurement -framework JavaScriptCore -framework MobileCoreServices -framework QuartzCore -framework SafariServices -framework Security -framework Social -framework StoreKit -framework SystemConfiguration -framework TwitterCore -framework TwitterKit -framework UIKit -weak_framework Accelerate -weak_framework Accounts -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Intermediates.noindex/collectly.build/Debug-iphonesimulator/collectly.build/collectly.app-Simulated.xcent -lPods-collectly -Xlinker -dependency_info -Xlinker /Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Intermediates.noindex/collectly.build/Debug-iphonesimulator/collectly.build/Objects-normal/x86_64/collectly_dependency_info.dat -o /Users/osx/Library/Developer/Xcode/DerivedData/collectly-gbmjtmxlrrvefehayglvocfhwito/Build/Products/Debug-iphonesimulator/collectly.app/collectly
Undefined symbols for architecture x86_64:"___isPlatformVersionAtLeast", referenced from:-[APMMeasurement reportFirstOpenOnWorkerQueue] in GoogleAppMeasurement(APMMeasurement_d6638b533a7cdc437824cf7209ad695a.o)-[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_acc99dfbcd8c054676308fb24061e3f7.o)+[APMASIdentifierWrapper iOS14OrAbove] in GoogleAppMeasurement(APMASIdentifierWrapper_1d59db0ddd97263057318367c9cd40e6.o)-[APMMeasurement(URL) sendDeepLinkURLToAppDelegateOnMainThread:extraInfo:] in GoogleAppMeasurement(APMMeasurement+URL_89002570063d654e31cbed7a49d52cf9.o)_APMEventParametersFromIntroductoryOffer in GoogleAppMeasurement(APMInAppPurchaseTransaction_6c84e6225a0d943cf8eddb7fab9aa12d.o)ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am working on a React Native app (only on iOS right now) that has shareable posts. The following happens in a post's TouchableOpacity
component's onPress
:
const url = `https://app.appname.com/post/${postId}`;try { const result = await Share.share({ url, tintColor: colors.primary });...
The entire url is shared most of the time. However, in the iOS Messages app particularly, sometimes what is shared is https://app.appname.com/
, removing the post information, so it directs a user to the app when it's clicked, but not to the specific post.Independent of our app, this has also happened when sharing a complete link (post information included) from Slack through Messages on iOS. The link in Messages was also truncated, removing the post information.Because of the latter sharing experience, wherein our app was not involved, I'm figuring this might be an iOS issue; but I'm hoping that it is something I can fix through the app.
I am facing this error from few days and I am unable to release the .ipa file manually also due to this issue
error: No profile for team 'team_id' matching 'com.companyname.appname' found: Xcode couldn't find any provisioning profiles matching 'team_id/com.companyname.appname'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'TargetName' from project 'ProjectName')
Earlier I was able to build and submit the app using the same provisioning profile.
This is my beta name in fastfile
lane :beta do version = get_version_number(target: 'TargetName') get_certificates # invokes cert get_provisioning_profile # invokes sigh increment_version_number(version_number: version) increment_version_number(bump_type: 'patch') build_app(workspace: "ProjectName.xcworkspace", scheme: "SchemeName", skip_profile_detection: true ) upload_to_testflight end
Note my code signing is set to MANUAL
I was able to submit the app to test flight with the same configuration mentioned above but suddenly it stopped working.
I have tried following to fix the issue
Dir.chdir('../Pods') do disable_automatic_code_signing( path: 'ProjectName.xcodeproj', team_id: 'team_id', targets: ['TargetName'], profile_name: 'com.companyname.appname' ) gym(workspace: 'ProjectName.xcworkspace',scheme: "SchemeName", clean: true) upload_to_testflight end
mv ~/Library/MobileDevice/Provisioning\ Profiles ~/Library/MobileDevice/Old\ Provisioning\ Profile
Even with the newly created Provisioning profile the problem still persistsStill unable to resolve the issue.
Please help.
Thanks in Advance
I tried to add a EXPO iOS StoreReview API but failed.have any sample code?
import * as StoreReview from 'expo-store-review';...export default SettingPage() { handleReview = () => { if (StoreReview.isSupported()) { StoreReview.requestReview(); } }; render ( ...<TouchableOpacity onPress={handleReview}><Text>Click Review</Text></TouchableOpacity> );}
My iPhone is plugged in to my computer with a usb lighting cable and when I run
xcrun simctl list devices
all that's listed is a bunch of simulators that I think I deleted to save storage space
== Devices ==-- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-13-2 -- iPad (7th generation) (995FB8D4-520B-471F-B2E7-E4D7360C26CB) (Shutdown) (unavailable, runtime profile not found) iPad Air (3rd generation) (4AAD0429-63F2-43BB-8F06-6250E64D4961) (Shutdown) (unavailable, runtime profile not found) iPad Pro (11-inch) (AF920A90-0020-4F35-AB74-3AC5D7D382D0) (Shutdown) (unavailable, runtime profile not found) iPad Pro (12.9-inch) (3rd generation) (B362351D-B4AC-444F-963F-70A490F14D5B) (Shutdown) (unavailable, runtime profile not found) iPad Pro (9.7-inch) (C3D09E58-308A-4730-820E-2824E7F461AE) (Shutdown) (unavailable, runtime profile not found) iPhone 11 (AD184AE5-1FEB-42F1-B40A-617E4C7E6712) (Shutdown) (unavailable, runtime profile not found) iPhone 11 Pro (EDB228B2-3B12-4A83-90A1-526382083D19) (Shutdown) (unavailable, runtime profile not found) iPhone 11 Pro Max (CD457702-B141-498C-8FE1-F837ABD956AF) (Shutdown) (unavailable, runtime profile not found) iPhone 8 (5AF67E2F-902E-49C4-8D32-4E98CE12A042) (Shutdown) (unavailable, runtime profile not found) iPhone 8 Plus (FF2B1F06-A010-4069-A738-86441725122C) (Shutdown) (unavailable, runtime profile not found)-- Unavailable: com.apple.CoreSimulator.SimRuntime.tvOS-13-2 -- Apple TV (514F0E2E-77FB-4C9F-9A93-E521A6B39606) (Shutdown) (unavailable, runtime profile not found) Apple TV 4K (at 1080p) (91BE0179-C07F-42F3-8F17-E84243185D4A) (Shutdown) (unavailable, runtime profile not found) Apple TV 4K (6C861FEB-584A-403E-9D8B-07BC68397745) (Shutdown) (unavailable, runtime profile not found)-- Unavailable: com.apple.CoreSimulator.SimRuntime.watchOS-6-1 -- Apple Watch Series 4 - 40mm (D4D77405-42CB-4BA4-BD91-A08F28E86CA9) (Shutdown) (unavailable, runtime profile not found) Apple Watch Series 4 - 44mm (57D8CE15-D388-4676-A727-C530508EBDCE) (Shutdown) (unavailable, runtime profile not found) Apple Watch Series 5 - 40mm (A196CBA3-B441-4B80-AFCF-CA68F2772EBE) (Shutdown) (unavailable, runtime profile not found) Apple Watch Series 5 - 44mm (BA4645BA-929B-434A-8A97-287C76D0BE73) (Shutdown) (unavailable, runtime profile not found)
I am trying to run my React Native app on an actual device
Once I can find my devices name I am going to run
react-native run-ios --device="My iPhone"
I am able to run on my device through xCode, but I would like to run it from the command-line
This is the github repo for the project
I am trying to make some adjustments to an app that I haven't touched for a few months.
I am just trying to build the app using xCode and getting this error
I am running the app on my physical device
I have tried doing
Product -> Clean build folder
and
yarn cache clean --force
But the problem persists.
I'm building a react native app where I need to view the contents of an external storage device and copy files to and from said device through my app. On android I'm using an sd card mounted on a USB adapter and connected through a USB C cable). I would like to do something similar in iOS devices, specifically iPads.
On android I'm using the ExternalStorageDirectoryPath
constant in react-native-fs. There doesn't seem to be an alternative for iOS.
I'm happy to write native code if need be and use the JS bridge, although I'am new to swift development. I just want to know whether it is possible to access external storage drives over USB on iOS devices, and if so where to find information about it.
I have looked through apple's FileManager
documentation here and can't seem to find anything. I'm also finding apple's documentation hard to navigate through and extract useful information out of. I'm wondering if that's a common experience or am I just new to native iOS development and therefore going through some steep learning curve when reading apple's docs.
Please see the attached images for reference I want output like an Android. I am using react-native 0.60.4, I want Groups and Opportunities circle in front. My current code is working fine on an Android device but not on the iOS device, Kindly help.
My Code is:
<View style={{ marginTop: 4,marginLeft: -30, zIndex: 0 }}><View style={{ flexDirection: "row", justifyContent: "center", }}><View onTouchStart={() => this.props.navigation.navigate("Profiles")} style={{ width: height / 3.8, height: height / 3.8, borderRadius: height / 2.3, backgroundColor: "rgba(147,144,198,1)", justifyContent: "center", opacity: 0.98 }}><Text style={{ ...CommonStyles.TellYourFriendButtonTextStyle(), borderRadius: 50, textAlign: "center", position: "absolute", alignSelf: "center", color: "white", fontSize: parseInt(height / 38) }}> {Strings.lbl_profiles}</Text></View><View style={{ justifyContent: "flex-end" }}><View onTouchStart={ () => this.props.navigation.push("OpportunitiesForHome", { moduleStrings: this.state.appString, userid: this.state.user_id, isUserProfile: false, isFromHome: true }) } style={{ width: height / 5.8, height: height / 5.8, borderRadius: height / 3.3, backgroundColor: "rgba(71,76,125,1)", justifyContent: "center", marginLeft: -18, marginBottom: 35, opacity: 0.98, zIndex: 1 }}><Text style={{ ...CommonStyles.TellYourFriendButtonTextStyle(), borderRadius: 50, textAlign: "center", position: "absolute", alignSelf: "center", color: "white", fontSize: parseInt(height / 47) }}> {Strings.lbl_opportunities}</Text></View></View></View><View style={{ flexDirection: "row", justifyContent: "center", }}><View style={{ marginTop: -55, width: height / 5.1, height: height / 5.1, borderRadius: height / 2.8, backgroundColor: "rgba(76,77,150,1)", justifyContent: "center", marginRight: -5, opacity: 0.98, zIndex: 1 }} onTouchStart={() => this.props.navigation.navigate("FindGroups")}><Text style={{ ...CommonStyles.TellYourFriendButtonTextStyle(), borderRadius: 50, textAlign: "center", position: "absolute", alignSelf: "center", color: "white", fontSize: parseInt(height / 40) }}> {Strings.lbl_groups}</Text></View><View style={{ justifyContent: "flex-end" }}><View onTouchStart={() => this.props.navigation.navigate("Events") } style={{ marginTop: -80, width: height / 4.4, height: height / 4.4, borderRadius: height / 2.3, backgroundColor: "rgba(101,98,172,1)", justifyContent: "center", marginLeft: -5, opacity: 0.98, }}><Text style={{ ...CommonStyles.TellYourFriendButtonTextStyle(), borderRadius: 50, textAlign: "center", position: "absolute", alignSelf: "center", color: "white", fontSize: parseInt(height / 40) }}> {Strings.lbl_events}</Text></View></View></View><View style={{ flexDirection: "row", justifyContent: "center" }}><View style={{ marginTop: -65, marginLeft: 145, width: height / 5.8, height: height / 5.8, borderRadius: height / 2.8, backgroundColor: "rgba(129,105,161,1)", justifyContent: "center", opacity: 0.98 }} onTouchStart={ () => this.props.navigation.push("Business") }><Text style={{ ...CommonStyles.TellYourFriendButtonTextStyle(), borderRadius: 250, textAlign: "center", position: "absolute", alignSelf: "center", color: "white", fontSize: parseInt(height / 47) }}> {Strings.lbl_business}</Text></View><View style={{ marginTop: -68, marginLeft: 10, width: height / 7.2, height: height / 7.2, borderRadius: height / 2.8, backgroundColor: "rgba(150,150,202,1)", justifyContent: "center", opacity: 0.98 }} onTouchStart={ () => this.props.navigation.push("ForSale") }><Text style={{ ...CommonStyles.TellYourFriendButtonTextStyle(), borderRadius: 250, textAlign: "center", position: "absolute", alignSelf: "center", color: "white", fontSize: parseInt(height / 53) }}> {Strings.lbl_forsale}</Text></View></View></View>
Screenshot on Android: