Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 16904 articles
Browse latest View live

unable to archive in react native- Archive Fails with duplicate symbols for architecture arm64

$
0
0

Its showing

285 duplicate symbols for architecture arm64

Linker command failed with exit code 1 (use -v to see invocation)

Strangely, I can't seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols and its running properly on simulator as well.Im getting this error only when im trying to make archive.

The Project is on React Native 0.56.0 ,podfile installed as well.

i have no idea whats

enter image description here

Would really appreciate any help or insight on this, been stuck at this for hours.


How to pass and use data from react native to native android or ios?

$
0
0

I need to pass some data form react native to both native android and ios.

How can I do that?

thank you,

React Native TextInput on iOS hides keyboard after one keystroke

$
0
0

import React from 'react'; import { TextInput, KeyboardAvoidingView, StyleSheet } from 'react-native';

import Colors from '../constants/Colors';

const QaTextInput = ({ style, minWidth, maxWidth, placeholder }) => { const input = { height: 35, minWidth: minWidth, maxWidth: maxWidth, borderWidth: 1, borderColor: Colors.input, backgroundColor: Colors.input };

return (
    <KeyboardAvoidingView
        behavior="position"
        keyboardVerticalOffset="100"
        enabled>
        <TextInput
            placeholder={placeholder}
            autoFocus={true}
            showSoftInputOnFocus={true}
            style={input}
        />
    </KeyboardAvoidingView>
);

};

export default QaTextInput;

Unable to archive in React Native - Archive Fails with duplicate symbols for architecture arm64

$
0
0

It's showing

285 duplicate symbols for architecture arm64

Linker command failed with exit code 1 (use -v to see invocation)

Strangely, I can't seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols and it's running properly on simulator as well. I'm getting this error only when I'm trying to make archive.

The project is on React Native 0.56.0, podfile installed as well.

I have no idea what the problem might be.

enter image description here

Apple Match-O Linker Error / clang: error: no such file or directory - Xcode 11

$
0
0

I am working on a React Native application and whenever I try to build the application I am encountering these errors. I know there are many similar questions on this matter but the solutions given there are not working for me.

clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTRestart.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libReactNativePermissions.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNCPushNotificationIOS.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNReanimated.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNGestureHandler.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNMixpanel.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNCAsyncStorage.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTAnimation.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNVectorIcons.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNReactNativeDocViewer.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNFS.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libCodePush.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNDocumentPicker.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNImagePicker.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNI18n.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNBlur.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libART.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTVideo.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTImage.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTLinking.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTNetwork.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTSettings.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTText.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTVibration.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNSpinkit.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNSentry.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNGeocoder.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTContacts.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNOpenAppSettings.a'

I have searched but I am still stuck here. I have tried linking using react-native link. I have tried deleting the DerivedData folder for the application. Hence I have tried everything but can't seem to find a solution for this. So I turned to you guys please suggest any solution to fix this. Looking forward to your answers. Thank you in advance.

How to implement an application-wide search bar?

$
0
0

It seems to be a pretty common task to have an application-wide search bar in the header. Unfortunately, I haven't found some ready recipes on how to accomplish it the right way. My solution was to place a custom SearchBox component in the React Native Navigation header using headerTitle:

static navigationOptions = ({navigation}) => {
     headerTitle: () => (<SearchBox ... />)

It had its drawbacks, e.g. using "static" variables to pass state and behavior between the application and the component. But it worked so far. Now, after moving to RNN 4.1.1, it stopped working because of the specifics of how the header is implemented in the RNN:

enter image description here

TextInput now doesn't fill the header's width and doesn't handle the text input properly.

enter image description here

I am looking for a way to implement an application-wide search bar in RN, that features the following properties:

  • it appears application-wide;
  • its contents can be modified by a user, who wants to perform the search;
  • when the user navigates back its contents conform to the shown page (e.g. if the user typed a query on page A and then got redirected to page B, so when they go back to the page A the search box contains "Page A" and not the query they typed);
  • it supports suggestions (an also tricky thing to do).

Update

Ideally, I am looking for an answer that features the following aspects:

  • be React Navigation v5 specific;
  • tell how the search bar is implemented per se (e.g. passed as a component via header property in the above scenario);
  • show how the search bar communicates with the core application in the following scenarios:
    • a user submits a query;
    • search box query gets updated independently from the application (e.g. the user taps a TouchableOpacity and gets navigated to a new page);
  • how to ensure query consistency during the navigation. E.g. when the user goes back to the previous screen, the query in the search bar should match the screen contents.
  • how to implement suggestions (users can see their options while typing; options are loaded online from the remote source).

React-Native Bundle Error error SHA-1 for file is not computed

$
0
0

I am facing this error while creating bundle of react-native app.

I am executing command react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios

error SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js) is not computed. Run CLI with --verbose flag for more details.
ReferenceError: SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js) is not computed
    at DependencyGraph.getSha1 (/usr/local/lib/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph.js:258:13)
    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:211:26
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:46:24)
    at _next (/usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:66:9)
    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:71:7
    at new Promise (<anonymous>)
    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:63:12
    at Transformer.transformFile (/usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:236:7)
    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/Bundler.js:87:34

react-native info command output

info Fetching system and libraries information...
System:
    OS: macOS Mojave 10.14.3
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 1.73 GB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.16.0 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.13.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    Android SDK:
      API Levels: 23, 25, 26, 27, 28, 29
      Build Tools: 27.0.3, 28.0.3
      System Images: android-29 | Google Play Intel x86 Atom
      Android NDK: 20.1.5948944
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5 
  npmGlobalPackages:
    create-react-native-app: 2.0.2
    react-native-cli: 2.0.1
    react-native: 0.61.5

Disable weak SSL cipher suites in react native applications

$
0
0

How to set cipher suites for android and iOS in a react native application. Is there a native implementation needed?


React Native iOS app crashes instantly after opening with "Can't get most elevated app state from dictionary"

$
0
0

I've created a React Native app using the XCode simulators which I'm now trying to test on an actual device. I've pushed my builds to Testflight and successfully installed it, however whenever I open the app and tap on the text input to enter my login details, the app closes instantly. I've installed the app on BrowserStack to get some more debugging information which gleaned this:

iPhone SpringBoard(KeyboardArbiter)[55] <Error>: HW kbd: Failed to set (null) as keyboard focus
iPhone mobilewatchdog[67] <Notice>: 1405846374958: id=@ pid=49428320, state=321
iPhone backboardd(IOKit)[59] <Notice>: Connection removed: IOHIDEventSystemConnection uuid:51F4150C-0C32-4F42-9B56-C0D2357D4477 pid:321 process:Groop type:Passive entitlements:0x0 caller:BackBoardServices: <redacted> + 368 attributes:<CFBasicHash 0x1028025a0 [0x102800010]>{type = immutable dict, count = 3,
iPhone backboardd(IOKit)[59] <Notice>: entries =>
iPhone backboardd(IOKit)[59] <Notice>:  0 : <CFString 0x100612960 [0x266187a30]>{contents = "pid"} = <CFNumber 0x91ab33ead8745a2b [0x266187a30]>{value = +321, type = kCFNumberSInt64Type}
iPhone backboardd(IOKit)[59] <Notice>:  1 : <CFString 0x1006240d0 [0x266187a30]>{contents = "bundleID"} = <CFString 0x100613180 [0x266187a30]>{contents = "bundleIdRedacted"}
iPhone backboardd(IOKit)[59] <Notice>:  2 : <CFString 0x100612390 [0x266187a30]>{contents = "HighFrequency"} = <CFBoolean 0x26618da10 [0x266187a30]>{value = true}
iPhone backboardd(IOKit)[59] <Notice>: }
iPhone backboardd(IOKit)[59] <Notice>:  inactive:0
iPhone SpringBoard(UserNotificationsServer)[55] <Notice>: connection invalidated
iPhone backboardd[59] <Notice>: [BKEventFocusManager] Setting foreground application to: (none) (-1)
iPhone ReportCrash(CrashReporterSupport)[322] <Notice>: Trying to create CR directory structure as root
iPhone SpringBoard(WiFiPicker)[55] <Notice>: WIFI PICKER [bundleIdRedacted]: isProcessLaunch: 0,    isForegroundActivation: 0,     isForegroundDeactivation: 1
iPhone symptomsd(SymptomEvaluator)[123] <Error>: Can\'t get most elevated app state from dictionary {
iPhone symptomsd(SymptomEvaluator)[123] <Error>:     BKSApplicationStateExtensionKey = 0;
iPhone symptomsd(SymptomEvaluator)[123] <Error>:     SBApplicationStateDisplayIDKey = "bundleIdRedacted";
iPhone symptomsd(SymptomEvaluator)[123] <Error>:     SBApplicationStateKey = 0;
iPhone symptomsd(SymptomEvaluator)[123] <Error>:     SBApplicationStateProcessIDKey = 321;
iPhone symptomsd(SymptomEvaluator)[123] <Error>:     SBApplicationStateRunningReasonsKey =     (
iPhone symptomsd(SymptomEvaluator)[123] <Error>:                 {
iPhone symptomsd(SymptomEvaluator)[123] <Error>:             SBApplicationStateRunningReasonAssertionIdentifierKey = Resume;
iPhone symptomsd(SymptomEvaluator)[123] <Error>:             SBApplicationStateRunningReasonAssertionReasonKey = 10000;
iPhone symptomsd(SymptomEvaluator)[123] <Error>:         }
iPhone symptomsd(SymptomEvaluator)[123] <Error>:     );
iPhone symptomsd(SymptomEvaluator)[123] <Error>: }
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: 321 bundleIdRedacted: Unknown (most elevated: Unknown)
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: Entry, display name bundleIdRedacted uuid (null) pid 321 isFront 0
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: Continue with bundle name bundleIdRedacted, is front 0
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: NBSM Current state: normal, changed: systemForeground to 0 for net type 0
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: bundleIdRedacted: Foreground: false
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: NBSM Eligible to go to broken
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: NBSM Current state: normal, changed: systemForeground to 0 for net type 0, eligible for broken but constraints unsatisfied (0,0)
iPhone symptomsd(SymptomEvaluator)[123] <Notice>: Failed to find process for bundleIdRedacted
iPhone ReportCrash(CrashReporterSupport)[322] <Notice>: cr_update: <private>

I've not been able to find out much about the Can't get most elevated app state from dictionary message other than this question, which doesn't seem relevant as I don't think I can deploy to TestFlight with a Developer certificate.

Component modal in react-native dosen't redimention correctly when the keyboard appears on IOS

$
0
0

I have a problem is rendering correctly of this modal dialog when the keyboard appear on IOS OS.

I'm a biginner with react-native and the my code looked how the following


App.js

render() {
        return (
            <PaperProvider theme={theme}>
                <StatusBar backgroundColor={theme.colors.primary} barStyle="light-content"/>
                <SafeAreaView style={GlobalStyle.droidSafeAreaTop}/>
                <SafeAreaView style={GlobalStyle.droidSafeAreaDown}>
                    <View>
                        <Appbar.Header style={GlobalStyle.appBar}>
                            <Avatar.Image size={35} source={require('./assets/avatar.png')}/>
                            <Appbar.Content
                                title="LOCAL TIME everywere"
                            />
                            <Appbar.Action icon="refresh" onPress={() => {
                                this.setState({refresh: !this.state.forceRefreshView});
                            }}/>
                        </Appbar.Header>
                        <ScrollViewCardsTime
                            data={this.state.dataSource}
                            onComunicate={this.doCloseSnackBar}
                            onRefresh={this.doRefreshListWithApi}
                            setState={p => {
                                this.setState(p)
                            }}
                            {...this.state}
                        />
                        <DialogNewTimeZone
                            title="New Time Zone"
                            visible={this.state.dialogVisible}
                            setState={p => {
                                this.setState(p)
                            }}
                            {...this.state}
                            onSubmit={this.doAddDataToList}
                            onComunicate={this.doCloseSnackBar}
                        />
                    </View>
                    <FAB
                        style={ComponentStyle.fab}
                        visible={this.state.toastVisible === false}
                        fat
                        label='New Time Zone'
                        icon="plus"
                        onPress={() => this.setState({dialogVisible: true})}
                    />
                    <Snackbar style={{backgroundColor: theme.colors.backgroundSnackBar}}
                              theme={theme}
                              visible={this.state.toastVisible}
                              onDismiss={() => this.doCloseSnackBar(true)}
                              action={{
                                  label: 'close',
                                  onPress: () => {
                                      this.doCloseSnackBar(true)
                                  }
                              }}
                    >
                        {this.state.toastMessage}
                    </Snackbar>
                </SafeAreaView>
            </PaperProvider>
        );

and inside the component ScrollViewCardsTime I have this code with the following style

ScrollViewCardsTime.component.js

ender() {
        let {dataSource} = this.props;
        return (
            <View style={ComponentStyle.viewComponent}>
                <FlatList
                    onRefresh={() => this.onRefresh()}
                    refreshing={this.state.refreshing === true}
                    data={dataSource}
                    extraData={this.props}
                    renderItem={({item}) => (
                        <CardTime
                            cityName={item.name}
                            cityTime={Util.doPrintTime(item.time)}
                        />
                    )}
                    keyExtractor={(item, index) => item.id}
                />
            </View>
        );
    }

ScrollViewCardsTime.style.js

export default StyleSheet.create({
    viewComponent: {
        height: '100%',
        //flex: 1,
    },
    fab: {
        position: 'absolute',
        margin: 16,
        right: 0,
        bottom: 0,
    },
});

But I have different effect when keyboard appear in Android and IOS, the android work well, like this

but on ios the effect is wrong, like:

I'm losing something?

Thanks for your time

How to enable app lock in React-native app?

$
0
0

Is there any package available to enable app lock in android and ios ? enter image description here

Setup Universal Link - Can .well-known under subdirectory instead of root

$
0
0

I am exploring how to set-up a Universal link to an app. Hoping to jump right into my app when users enter the website. But due to business limitation, I can only create the .well-known directory that holds the apple-app-site-association json file under subdirectory like this:

https://localhost:8443/en/testing/.well-known/apple-app-site-association

From all of the tutorials I read online, it seems the .well-known directory must set up at the root directory of the domain but is it possible for me to create it in a subdirectory?

I have tried to setup a POC but seems Universal Links only works on https with non-self-signed ssl key. Please help. Thanks a lot.

Yarn v2 and Cocopods: node_modules folders doesn't exist

$
0
0

I have upgraded Yarn to v2. I see that there is no node_modules folder anymore. But my Podfile is still looking for it. How can I fix it?

React Native, storing images in users gallery without compression

$
0
0

I am developing an App that verifies images based on their hash. I hash the images using this library "react-native-fetch-blob".

I store all the images taken inside the app, I am trying to allow users to be able to share the original uncompressed image.

Problem: When using React-Native Camera roll or React native Share to save the image to my local gallery, compression is performed which changes the hash of the image if I recalculate it.

What I want to do, is to be able to save the image to the users local gallery without compressing the photo?

Any help would be very appreciated. :)

I have run tests retrieving the photos back into the app (from the user's normal gallery) using React-Native-Image-Picker; However, I believe that also forms some compression on the image. I have also used react-native-fetch-blob to copy the photo from the user photo gallery back into the app.

Can provide code I used to generate the below results if anyone needs that.

Hash Results - from Image Picker

camera roll save 10c30a42ead3636a8fd8cfd1eb6952db9f8bbb97fbbdccf96060b67f27be0766 fileSize: 591635,

React-Native share save image cf799ba599e65a42905cb25fabc0150286ee923113da2af21ad7bb2a650bb86d fileSize: 603288

Expected Hash0802368f14296c4d6750a4fc853cda68de67b8e31adf16f38b0eabb7e8b28d0a

Thanks Again

GADInvalidInitializationException without Installing GoogleMobileAds SDK iOS

$
0
0

I am building a react-native app which I do not intend to display ads but I have Firebase Authentication and other related services. To my surprise I keep getting this error below. What could have happen?

 *** Terminating app due to uncaught exception 
'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK 
was initialized incorrectly. Google AdMob publishers should follow 
instructions here: https://googlemobileadssdk.page.link/admob-ios- 
update-plist to include the AppMeasurement framework, set the -ObjC 
linker flag, and set GADApplicationIdentifier with a valid App ID. 
Google Ad Manager publishers should follow instructions here: 
https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'

The way I found around this error is to update the info.plist by adding

<key>GADIsAdManagerApp</key>
 <true/>

This solved the error issue but not the fundamental problem which is why should it required GAD Application Identifier since ads will not be displayed in the app.


React Native Reload Screen A In Back action

$
0
0

I Have ScreenA To Click Next ScreenB Then back To Screen A Not Call Function componentWillMount()

ScreenA -> Next -> ScreenB -> Back() -> ScreenA

How to Reload Rout Screen in Back Action

Class ScreenA

import React from "react";
import { Button, Text, View } from "react-native";

class ScreenA extends Component {
  constructor(props){
    super(props)
      this.state = {
        dataSource: new ListView.DataSource({
          rowHasChanged: (row1, row2) => row1 !== row2,
        })
      }
  }

  componentWillMount() {
        fetch(MYCLASS.DEMAND_LIST_URL, {
                method: 'POST',
                headers: {
                  'Accept': 'application/json',
                  'Content-Type': 'application/json',
                },                    
                body: JSON.stringify({
                  userId:'17'})
            })
            .then((response) => response.json())
            .then((responseData) => {
              if (responseData.status == '1') {
                var data =  responseData.data
                this.setState({                  
                  dataSource: this.state.dataSource.cloneWithRows(data),
                });
              }
            })
            .done();
      }


  onPress = () => {
    this.props.navigate("ViewB");
  };

  render() {
    return (
      <View>
        <Text>test</Text>
        <Button title="Next" onPress={this.onPress} />
      </View>
    );
  }
}

Class ScreenB

import React from "react" import { Button } from "react-native"


class ScreenB extends Component {

   render() {
    const {goBack} = this.props.navigation;

    return( 
          <Button title="back" onPress={goBack()} /> 
         )
   }
}    

React-native app crashs after firebase/admob added

$
0
0

I'm adding firebase/admob to a RN app, i've added applicationId for both Android and IOS, Android works no problem i can see test banner, but IOS crash with this error :

error screenshot

I've added GADApplicationIdentifier in info.plist:

<key>GADIsAdManagerApp</key>
    <true/>
  <key>GADApplicationIdentifier</key>
  <string>my_application_id</string>

React-native: scrollview inside of panResponder

$
0
0

I am using a ScrollView inside of a PanResponder. On Android it works fine but on iOS the ScrollView will not scroll. I did some investigation and here are some facts:

  1. If I put a break point in PanResponder.onMoveShouldSetPanResponder(), before I step over, the scrollView will scroll as normal but once I release the break point, the scrollView stops working.

  2. If I modify ScrollResponder.js, and return true in scrollResponderHandleStartShouldSetResponderCapture() - it used to return false at runtime; and return false in scrollResponderHandleTerminationRequest(), the scrollView works OK but of course, since it swallows the event the outer PanResponder will not get the event.

So the questions are:

  1. I want to make the scrollview to work, and not to swallow the event. Any one know what's the approach?
  2. How the responding system works on iOS? The react-native responder system doc does not explain that to me.

React Native: Undefined symbols for architecture x86_64: "_YGNodeIsDirty"

$
0
0

I have the following issue when trying to compile my app for iOS on my CI (Bitrise). All the commands work perfectly fine locally.

React Native 0.61.5

    cd /Users/vagrant/git/ios/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/Users/vagrant/git/ios/build/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vagrant/git/ios/build/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=RCTText -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-generated-files.hmap -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-own-target-headers.hmap -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-all-non-framework-target-headers.hmap -ivfsoverlay /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/all-product-headers.yaml -iquote /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-project-headers.hmap -I/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework/include -I/Users/vagrant/git/ios/Pods/Headers/Public -I/Users/vagrant/git/ios/Pods/Headers/Public/DoubleConversion -I/Users/vagrant/git/ios/Pods/Headers/Public/React-Core -I/Users/vagrant/git/ios/Pods/Headers/Public/React-RCTText -I/Users/vagrant/git/ios/Pods/Headers/Public/React-cxxreact -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsi -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsinspector -I/Users/vagrant/git/ios/Pods/Headers/Public/Yoga -I/Users/vagrant/git/ios/Pods/Headers/Public/glog -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources-normal/x86_64 -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources/x86_64 -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/DoubleConversion-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Folly-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-Core.common-CoreModulesHeaders -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-cxxreact-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsi-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsiexecutor-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsinspector-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Yoga-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/glog-framework -include /Users/vagrant/git/ios/Pods/Target\ Support\ Files/React-RCTText-framework/React-RCTText-framework-prefix.pch -MMD -MT dependencies -MF /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBaseTextInputShadowView.d --serialize-diagnostics /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBaseTextInputShadowView.dia -c /Users/vagrant/git/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m -o /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBaseTextInputShadowView.o
CompileC /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBackedTextInputDelegateAdapter.o /Users/vagrant/git/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-RCTText-framework' from project 'Pods')
    cd /Users/vagrant/git/ios/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/Users/vagrant/git/ios/build/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vagrant/git/ios/build/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=RCTText -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-generated-files.hmap -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-own-target-headers.hmap -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-all-non-framework-target-headers.hmap -ivfsoverlay /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/all-product-headers.yaml -iquote /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-project-headers.hmap -I/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework/include -I/Users/vagrant/git/ios/Pods/Headers/Public -I/Users/vagrant/git/ios/Pods/Headers/Public/DoubleConversion -I/Users/vagrant/git/ios/Pods/Headers/Public/React-Core -I/Users/vagrant/git/ios/Pods/Headers/Public/React-RCTText -I/Users/vagrant/git/ios/Pods/Headers/Public/React-cxxreact -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsi -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsinspector -I/Users/vagrant/git/ios/Pods/Headers/Public/Yoga -I/Users/vagrant/git/ios/Pods/Headers/Public/glog -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources-normal/x86_64 -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources/x86_64 -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/DoubleConversion-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Folly-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-Core.common-CoreModulesHeaders -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-cxxreact-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsi-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsiexecutor-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsinspector-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Yoga-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/glog-framework -include /Users/vagrant/git/ios/Pods/Target\ Support\ Files/React-RCTText-framework/React-RCTText-framework-prefix.pch -MMD -MT dependencies -MF /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBackedTextInputDelegateAdapter.d --serialize-diagnostics /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBackedTextInputDelegateAdapter.dia -c /Users/vagrant/git/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m -o /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTBackedTextInputDelegateAdapter.o
CompileC /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/NSTextStorage+FontScaling.o /Users/vagrant/git/node_modules/react-native/Libraries/Text/Text/NSTextStorage+FontScaling.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-RCTText-framework' from project 'Pods')
    cd /Users/vagrant/git/ios/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/Users/vagrant/git/ios/build/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vagrant/git/ios/build/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=RCTText -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-generated-files.hmap -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-own-target-headers.hmap -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-all-non-framework-target-headers.hmap -ivfsoverlay /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/all-product-headers.yaml -iquote /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/RCTText-project-headers.hmap -I/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework/include -I/Users/vagrant/git/ios/Pods/Headers/Public -I/Users/vagrant/git/ios/Pods/Headers/Public/DoubleConversion -I/Users/vagrant/git/ios/Pods/Headers/Public/React-Core -I/Users/vagrant/git/ios/Pods/Headers/Public/React-RCTText -I/Users/vagrant/git/ios/Pods/Headers/Public/React-cxxreact -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsi -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/vagrant/git/ios/Pods/Headers/Public/React-jsinspector -I/Users/vagrant/git/ios/Pods/Headers/Public/Yoga -I/Users/vagrant/git/ios/Pods/Headers/Public/glog -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources-normal/x86_64 -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources/x86_64 -I/Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/DerivedSources -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/DoubleConversion-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Folly-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-Core.common-CoreModulesHeaders -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-cxxreact-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsi-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsiexecutor-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsinspector-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Yoga-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/glog-framework -include /Users/vagrant/git/ios/Pods/Target\ Support\ Files/React-RCTText-framework/React-RCTText-framework-prefix.pch -MMD -MT dependencies -MF /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/NSTextStorage+FontScaling.d --serialize-diagnostics /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/NSTextStorage+FontScaling.dia -c /Users/vagrant/git/node_modules/react-native/Libraries/Text/Text/NSTextStorage+FontScaling.m -o /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/NSTextStorage+FontScaling.o
Ld /Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework/RCTText.framework/RCTText normal x86_64 (in target 'React-RCTText-framework' from project 'Pods')
    cd /Users/vagrant/git/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios9.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -L/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/DoubleConversion-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Folly-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-Core.common-CoreModulesHeaders -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-cxxreact-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsi-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsiexecutor-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-jsinspector-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/Yoga-framework -F/Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/glog-framework -filelist /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTText.LinkFileList -install_name @rpath/RCTText.framework/RCTText -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTText_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -framework React -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/vagrant/git/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/React-RCTText-framework.build/Objects-normal/x86_64/RCTText_dependency_info.dat -o /Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework/RCTText.framework/RCTText
Undefined symbols for architecture x86_64:
  "_YGNodeIsDirty", referenced from:
      -[RCTBaseTextInputShadowView uiManagerWillPerformMounting] in RCTBaseTextInputShadowView.o
      -[RCTTextShadowView uiManagerWillPerformMounting] in RCTTextShadowView.o
  "_YGNodeMarkDirty", referenced from:
      -[RCTBaseTextInputShadowView dirtyLayout] in RCTBaseTextInputShadowView.o
      -[RCTTextShadowView dirtyLayout] in RCTTextShadowView.o
  "_YGNodeSetDirtiedFunc", referenced from:
      -[RCTBaseTextShadowView insertReactSubview:atIndex:] in RCTBaseTextShadowView.o
      -[RCTBaseTextShadowView removeReactSubview:] in RCTBaseTextShadowView.o
  "_YGNodeGetContext", referenced from:
      _RCTBaseTextInputShadowViewMeasure in RCTBaseTextInputShadowView.o
      _RCTTextInputShadowViewBaseline in RCTBaseTextInputShadowView.o
      _RCTInlineViewYogaNodeDirtied in RCTBaseTextShadowView.o
      _RCTTextShadowViewMeasure in RCTTextShadowView.o
      _RCTTextShadowViewBaseline in RCTTextShadowView.o
  "_YGNodeSetMeasureFunc", referenced from:
      -[RCTBaseTextInputShadowView initWithBridge:] in RCTBaseTextInputShadowView.o
      -[RCTTextShadowView initWithBridge:] in RCTTextShadowView.o
  "_YGNodeSetBaselineFunc", referenced from:
      -[RCTBaseTextInputShadowView initWithBridge:] in RCTBaseTextInputShadowView.o
      -[RCTTextShadowView initWithBridge:] in RCTTextShadowView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
    Ld /Users/vagrant/git/ios/build/Build/Products/Release-iphonesimulator/React-RCTText-framework/RCTText.framework/RCTText normal x86_64
(1 failure)

My Podfile:

target 'client-trial-app' do
  use_frameworks!

  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end

Does anyone have an idea what might be an issue? I've tried compiling it on different XCode versions but always ends up in the same way (on CI only).

React Native - possible for one app to view/query the existing apps on a users device?

$
0
0

I am building an app in React Native, and was wondering if I could check to see if another app is installed on the user's device. Is it possible, or is there a 'permission' that I could prompt user for in order to have access to this?. Thanks !

Viewing all 16904 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>