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

How to build react native iOS app with docker?

$
0
0

I want to build my react native iOS app using docker, My problem is that when I run react-native run-ios I'm getting an error that it cant find the simulator. I know the issue occur because I don't have Xcode on my docker.

I was looking for image for Mac or Xcode but all found is a few images for old versions of Xcode and they are not working anymore, I couldn't find images for Mac or any other way to install Xcode on my docker or install iOS simulator on image that isn't Mac OS.

Im attaching my docker:

FROM openjdk:8 as builder
ENV SDK_URL "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip"
ENV ANDROID_HOME /usr/src/app
ENV ANDROID_BUILD_TOOLS_VERSION 28.0.3
ENV ANDROID_VERSION 28
ENV PATH $PATH:$ANDROID_HOME/bin
ARG NODE_VERSION=12.x
WORKDIR /usr/src/app
COPY package*.json ./

# installing android and java
RUN apt update -qq && apt install -qq -y --no-install-recommends \
       apt-transport-https \
       curl \
       build-essential \
       file \
       git \
       openjdk-8-jre \
       gnupg2 \
       python \
       ruby-full \
       openssh-client \
       zip \
       unzip \
   && rm -rf /var/lib/apt/lists/*/;  


RUN npm i -g react-native-cli
#installing libraries
RUN npm install
COPY . .
RUN react-native run-ios;

Thank you for the help


Keyboard not being dismissed in React Native

$
0
0

I'm looking to dismiss the keyboard when the user clicks on anywhere outside the keyboard or the input. The following code works fine:

<ScrollView
            keyboardShouldPersistTaps='handled'
            contentContainerStyle={{ flex: 1 }}
        >
            <View style={styles.inputContainer}>
                <TextInput
                    placeholder="Search Term"
                    style={styles.input}
                    onChangeText={setSearch}
                    value={search}
                    returnKeyType="search"
                    onSubmitEditing={handleSubmit}
                />
            </View>
        </ScrollView>

The styling is pretty standard:

    inputContainer: {
        position: 'absolute',
        top: stackHeaderHeight + 10,
        height: height * .1,
        width: '100%',
        flexDirection: 'row',
        justifyContent: 'center',
        alignItems: 'center',
    },

But, when I introduce the map, react-native-maps in this case, the keyboard dismiss doesn't work. Manipulating zIndex of the ScrollView doesn't make a difference.

<ScrollView
            keyboardShouldPersistTaps='handled'
            contentContainerStyle={{ flex: 1 }}
        >
            <View style={styles.inputContainer}>
                <TextInput
                    placeholder="Search Term"
                    style={styles.input}
                    onChangeText={setSearch}
                    value={search}
                    returnKeyType="search"
                    onSubmitEditing={handleSubmit}
                />
            </View>
            <MapView
                style={StyleSheet.absoluteFillObject}
                region={region}
                onRegionChangeComplete={onRegionChangeComplete}
                ref={mapviewRef}
                showsUserLocation={true}
            >
               // markers and callouts
            </MapView>
        </ ScrollView>

I've tried wrapping the entire component with <TouchableWithoutFeedback style={styles.container} onPress={Keyboard.dismiss}>, but doesn't make a difference.

RealmJS: clang: error: linker command failed with exit code 1 (use -v to see invocation)

$
0
0

I have no idea how to get around to fixing this.

I have a feeling it might be related to RealmJS but i have tried everything from their issues page on github.

I have tried, downgrading Realm, cleaning the project, restart xcode, restart the whole computer, I even removed the pods and lockfile end reinstalled the pods. and yes i am using the .xworkspace file

177 more errors
... 
duplicate symbol _OBJC_IVAR_$_GCDWebServerURLEncodedFormRequest._arguments in:
    /Users/henk/Library/Developer/Xcode/DerivedData/WhosThat_app-axxkmftwrprdsnaxtynfzrtgsvca/Build/Products/Debug-iphonesimulator/libGCDWebServers.a(GCDWebServerURLEncodedFormRequest.o)
    /Users/henk/Library/Developer/Xcode/DerivedData/WhosThat_app-axxkmftwrprdsnaxtynfzrtgsvca/Build/Products/Debug-iphonesimulator/libRealmReact.a(GCDWebServerURLEncodedFormRequest.o)
ld: 177 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

React-native: 0.59.8

Realm: 3.2.0, 3.1.0 , 2.8.0

Xcode: 10.1

React Native iOS starts the development server but never connects and then just crashes

$
0
0

So I run my react-native iOS app from Xcode or react-native run-ios like normal. The the server starts and says "Loading dependency graph, done." as normal. The app boots up on the simulator and then stays on the splash screen for around 20 seconds then crashes. It never seems to be able to find the development server and it doesn't print any error in the console.

I haven't been able to solve this issue for the life of me today. I've tried every solution I can find. If someone has any insight, please let me know. Thanks!

React-native Xcode error : "Thread 1: signal SIGABRT"

$
0
0

I faced this problem after building an app in XCode. Here are some logs:

2019-12-23 11:43:38.538929+0200 signer[87746:1862730] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2019-12-23 11:43:38.541152+0200 signer[87746:1862730] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2019-12-23 11:43:38.546 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7fa7de405980> (parent: <RCTBridge: 0x600002424cb0>, executor: (null))
2019-12-23 11:43:38.550376+0200 signer[87746:1862730] Initializing <RCTCxxBridge: 0x7fa7de405980> (parent: <RCTBridge: 0x600002424cb0>, executor: (null))
2019-12-23 11:43:38.639 [info][tid:main][RCTRootView.m:293] Running application signer ({
    initialProps =     {
    };
    rootTag = 1;
})
2019-12-23 11:43:38.639089+0200 signer[87746:1862730] Running application signer ({
    initialProps =     {
    };
    rootTag = 1;
})
2019-12-23 11:43:38.990604+0200 signer[87746:1862730] -[RCTReconnectingWebSocket initWithURL:queue:]: unrecognized selector sent to instance 0x600000149650
2019-12-23 11:43:39.046365+0200 signer[87746:1862730] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTReconnectingWebSocket initWithURL:queue:]: unrecognized selector sent to instance 0x600000149650'
*** First throw call stack:
(
  0   CoreFoundation                      0x00007fff23c7127e exceptionPreprocess + 350
  1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
  2   CoreFoundation                      0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
  3   CoreFoundation                      0x00007fff23c75c4c ___forwarding___ + 1436
  4   CoreFoundation                      0x00007fff23c77f78 _CF_forwarding_prep_0 + 120
  5   signer                              0x00000001083876a5 _ZL17socketForLocationP8NSString + 821
  6   signer                              0x000000010838708c -[RCTPackagerConnection init] + 284
  7   signer                              0x0000000108386f44 __49+[RCTPackagerConnection sharedPackagerConnection]_block_invoke + 36
  8   libdispatch.dylib                   0x0000000109240d48 _dispatch_client_callout + 8
  9   libdispatch.dylib                   0x0000000109242297 _dispatch_once_callout + 66
  10  signer                              0x0000000108386ef4 +[RCTPackagerConnection sharedPackagerConnection] + 84
  11  signer                              0x000000010830e757 -[RCTDevSettings setBridge:] + 567
  12  Foundation                          0x00007fff25712ee3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 325
  13  signer                              0x0000000108373f2d -[RCTModuleData setBridgeForInstance] + 509
  14  signer                              0x0000000108373ab3 -[RCTModuleData setUpInstanceAndBridge] + 2131
  15  signer                              0x0000000108375427 __25-[RCTModuleData instance]_block_invoke + 39
  16  signer                              0x0000000108396083 RCTUnsafeExecuteOnMainQueueSync + 67
  17  signer                              0x0000000108375122 -[RCTModuleData instance] + 738
  18  signer                              0x00000001082b32d4 __49-[RCTCxxBridge _prepareModulesWithDispatchGroup:]_block_invoke + 196
  19  libdispatch.dylib                   0x000000010923fdd4 _dispatch_call_block_and_release + 12
  20  libdispatch.dylib                   0x0000000109240d48 _dispatch_client_callout + 8
  21  libdispatch.dylib                   0x000000010924eadb _dispatch_main_queue_callback_4CF + 721
  22  CoreFoundation                      0x00007fff23bd4049 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
  23  CoreFoundation                      0x00007fff23bceca9 __CFRunLoopRun + 2329
  24  CoreFoundation                      0x00007fff23bce066 CFRunLoopRunSpecific + 438
25  GraphicsServices                    0x00007fff384c0bb0 GSEventRunModal + 65
  26  UIKitCore                           0x00007fff48092d4d UIApplicationMain + 1621
  27  signer                              0x00000001081dc8d0 main + 112
  28  libdyld.dylib                       0x00007fff5227ec25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Same project builds fine on android, but ios throws this error. I have not found anything on the web to solve this type of problem. Any help appreciated!

How to fix pod install error glog is too old or missing react native ios in windows 10

$
0
0

I wanted to detach expo in my expo project to get the bare react native project after expo detach i run pod install bring me this error that during installing glog that script is too old or is missing

[!] C:/Program Files/Git/usr/bin/bash.exe -c
set -e
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -e

PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}"
CURRENT_ARCH="${CURRENT_ARCH}"

if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
    # Xcode 10 beta sets CURRENT_ARCH to "undefined_arch", this leads to incorrect linker arg.
    # it's better to rely on platform name as fallback because architecture differs between simulator and device

    if [[ "$PLATFORM_NAME" == *"simulator"* ]]; then
        CURRENT_ARCH="x86_64"
    else
        CURRENT_ARCH="armv7"
    fi
fi

export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)"
export CXX="$CC"

# Remove automake symlink if it exists
if [ -h "test-driver" ]; then
    rm test-driver
fi

./configure --host arm-apple-darwin

# Fix build for tvOS
cat << EOF >> src/config.h

/* Add in so we have Apple Target Conditionals */
#ifdef __APPLE__
#include <TargetConditionals.h>
#include <Availability.h>
#endif

/* Special configuration for AppleTVOS */
#if TARGET_OS_TV
#undef HAVE_SYSCALL_H
#undef HAVE_SYS_SYSCALL_H
#undef OS_MACOSX
#endif

/* Special configuration for ucontext */
#undef HAVE_UCONTEXT_H
#undef PC_FROM_UCONTEXT
#if defined(__x86_64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#elif defined(__i386__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
#endif
EOF

# Prepare exported header include
EXPORTED_INCLUDE_DIR="exported/glog"
mkdir -p exported/glog
cp -f src/glog/log_severity.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/raw_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/stl_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/vlog_is_on.h "$EXPORTED_INCLUDE_DIR/"

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin-strip... no
checking for strip... no
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for arm-apple-darwin-gcc...  -arch armv7 -isysroot
checking whether the C compiler works... no
/usr/bin/bash: line 24: xcrun: command not found
/usr/bin/bash: line 24: xcrun: command not found
/c/Users/DOZEN/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-aefd1/missing: Unknown `--is-lightweight' option
Try `/c/Users/DOZEN/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-aefd1/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/c/Users/DOZEN/Library/Caches/CocoaPods/Pods/External/glog/2263bd123499e5b93b5efe24871be317-aefd1':
configure: error: C compiler cannot create executables
See `config.log' for more details

i use react-native: 0.59.10 and my podfile

platform :ios, '10.0'

require_relative '../node_modules/react-native-unimodules/cocoapods'

target 'UdahiliPortal' do
  # Pods for UdahiliPortal
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge',
    'DevSupport',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTBlob',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket',
  ]

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

  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'
  pod 'RNGestureHandler', :podspec => '../node_modules/react-native-gesture-handler/RNGestureHandler.podspec'
  pod 'RNReanimated', :podspec => '../node_modules/react-native-reanimated/RNReanimated.podspec'
  pod 'RNScreens', :path => '../node_modules/react-native-screens'


  use_unimodules!

end

in Mac I find out thy fix this error by

sudo xcode-select --switch /Applications/Xcode.app

but this does not work on window help please

How can We Integrate K net Payment in react-native?

$
0
0

Hello I am working on react native project. Here in this project how should we integrate K-net Payment Integration.

Any SDK's is possible for this please let me give the guidance.

scrollToIndex() is not a function

$
0
0

I have currently have a map and a carousel(similar to FlatList) and I want to be able to use scrollToIndex method of FlatList to snap to a certain item in the array. The issue is when I adopted the react-native-snap-carousel library, which is based on ScrollView, I lost the ability to use the scrollToIndex method. The ability to scroll to a certain index was working perfectly fine with FlatList.

I'm using a functional component so I'm using the useRef hook:

    const flatListRef = useRef()
    const handleMarker = index => {
        flatListRef.current.scrollToIndex({ index, animated: true })
    }

I'm using react-native-maps for my map and the handleMarker above is so that when the user clicks on a marker on the map, the Carousel snaps to the pertaining item:

<Marker
    key={marker.id}
    coordinate={{ latitude: marker.latitude, longitude: marker.longitude }}
    onPress={() => handleMarker(index)}
    ref={markerRef[index]}
>
</Marker>

Following is the Carousel that replaced FlatList:

<Carousel
    data={items}
    renderItem={({ item }) => <Item item={item}/>}
    horizontal={true}
    ref={flatListRef}
    sliderWidth={width}
    sliderHeight={100}
    itemWidth={140}
    itemHeight={100}
/>

How do I achieve this this without scrollToIndex?


Disable or update Apple ID settings, or click "Not Now" on simulator

$
0
0

I am developing a react native application, and using ios UI Tests and fastlane to take screenshots of the app. The issue is that the simulator keeps wanting me to update my apple ID settings and it's blocking the automated tests from running. Is there a way to turn these off so that I don't need to update, or if not, a way to wait until it pops up and click "Not Now"?

enter image description here

let app = XCUIApplication()
setupSnapshot(app)
app.launch()

Refresh contentComponent in react-navigation

$
0
0

I am using React-Navigation where I am using functionality of custom drawer by using contentComponent of React-Navigation.

const DrawerNavigation = DrawerNavigator({
  DrawerStack: { screen: DrawerStack }
}, {
  contentComponent: DrawerComponent,
  drawerWidth: 300
})

Here DrawerComponent is my custom navigation drawer where I have used custom navigation items like username, profile picture, email address and other menus.

Now whenever user updates their profile I want to refresh my DrawerComponent, I am not able to find any way to do it. Can anybody suggest me a good way to implement this?

how can we handle assets for multiple environment?

$
0
0

Ok so I am going to use react-native-config to make my app having multiple environments. But the project requirements are such as we should be able to export different apps from same codebase for different clients with different bundle id.

We can achieve that using product flavors in android and schemes in iOS side but I don't know how to handle assets/images we have in our js project. For an example, client A has different images and client B has different images, I can definitely show/hide those images based on the .env variables but I don't want those images to get included while building the app for release.

is it possible to use Webpack or babel in such case or any automation script?

What can be the possible solution for this scenario? Feel free to ask me any questions if you didn't understand what I am asking here, sorry in advance for that.

undefined is not an object (evaluating 'Component.propTypes') - React Native 0.61.5

$
0
0

I have upgraded the existing react native project from react native 0.59.6 to 0.61.5.

react-native upgrade command not working. So I have done the manual upgrade using upgrade helper. Resolved some post issues. Now project build success.

But After rendering into the ios emulator from Xcode, it is giving the following error.

iPhone XR emulator screenshot

I am not using Component.propTypes anywhere. package.lock.json have some packages with prop-types. I am not sure what it is doing exactly. Otherwise, inside my project, I am not using prop-types also. Please find my package.lock.json below,

package.lock.json

...
...
..."prop-types": {"version": "15.7.2","resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz","integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==","requires": {"loose-envify": "^1.4.0","object-assign": "^4.1.1","react-is": "^16.8.1"
      }
    },
...."react": {"version": "16.9.0","resolved": "https://registry.npmjs.org/react/-/react-16.9.0.tgz","integrity": "sha512-+7LQnFBwkiw+BobzOF6N//BdoNw0ouwmSJTEm9cglOOmsg/TMiFHZLe2sEoN5M7LgJTj9oHH0gxklfnQe66S1w==","requires": {"loose-envify": "^1.1.0","object-assign": "^4.1.1","prop-types": "^15.6.2"
      }
    },
....

package.json

{"name": "wasfat","version": "1.0.3","private": true,"rnpm": {"assets": ["app/assets/fonts/corbel"
    ]
  },"scripts": {"prepare-repository": "npm i -g react-native-cli yarn;yarn install; react- native link","emulator": "emulator -avd Nexus5V6L23_x86_64 -scale 1.0","clean": "watchman watch-del-all && npm cache clean && cd android && ./gradlew clean && cd ..","test": "jest","postinstall": "rm -rf node_modules/react-native-twitter-signin/node_modules","android": "react-native run-android","ios": "react-native run-ios","start": "react-native start","lint": "eslint ."
  },"dependencies": {"jetifier": "^1.6.5","react": "16.9.0","react-native": "^0.61.5","react-native-actionsheet": "^2.4.2","react-native-android-keyboard-adjust": "^1.2.0","react-native-aws3": "0.0.8","react-native-deep-linking": "^2.2.0","react-native-device-info": "^5.3.1","react-native-double-tap": "^1.0.1","react-native-drawer": "^2.5.1","react-native-elements": "^1.0.0","react-native-exception-handler": "^2.10.8","react-native-fbsdk": "^1.1.0","react-native-firebase": "^5.5.6","react-native-gesture-handler": "^1.1.0","react-native-google-signin": "^1.2.3","react-native-hide-with-keyboard": "^1.2.0","react-native-image-crop-picker": "^0.25.3","react-native-image-picker": "^0.28.1","react-native-image-slider": "^2.0.3","react-native-image-view": "^2.1.5","react-native-keyboard-avoiding-view": "^1.0.0","react-native-keyboard-aware-scroll-view": "^0.8.0","react-native-keyboard-aware-scrollview": "^2.0.0","react-native-keyboard-aware-view": "0.0.14","react-native-keyboard-listener": "^1.1.0","react-native-modal": "^11.1.0","react-native-paper": "^2.15.0","react-native-picker-select": "^6.2.0","react-native-popup-menu": "^0.15.6","react-native-progress": "^3.6.0","react-native-read-more-text": "^1.1.0","react-native-responsive-image": "^2.3.1","react-native-responsive-screen": "^1.2.1","react-native-s3-upload": "0.0.12","react-native-share": "^1.2.1","react-native-side-drawer": "^1.1.9","react-native-side-menu": "^1.1.3","react-native-simple-toast": "0.0.8","react-native-snap-carousel": "^3.8.0","react-native-swiper-flatlist": "^1.0.10","react-native-twitter-signin": "^1.1.1","react-native-vector-icons": "^6.6.0","react-native-video": "^4.4.4","react-native-video-controls": "^2.2.3","react-native-video-player": "^0.10.0","react-native-view-more-text": "^2.1.0","react-navigation": "^3.3.0","react-redux": "^7.1.0","react-spinkit": "^3.0.0","redux": "^4.0.4"
  },"devDependencies": {"@babel/core": "^7.6.2","@babel/runtime": "^7.6.2","@react-native-community/eslint-config": "^0.0.5","babel-jest": "^24.9.0","eslint": "^6.5.1","jest": "^24.9.0","metro-react-native-babel-preset": "^0.56.0","react-test-renderer": "16.9.0"
  },"jest": {"preset": "react-native"
  }
}

I have found this https://reactjs.org/warnings/dont-call-proptypes.html regarding this issue. But I am not sure how to use it. Because according to this. some third party libraries using propTypes directly. But how to handle it?

There is no help in 0.61 version Github issues. Please suggest some workarounds for this issue.

Thanks for any help.

React-Native integration Support for V2 Pro device SunMI

Possible Expo (react native) issue with Strapi backend - crashing ios app simulator [closed]

$
0
0

I'm following Stephen Grider's react native course in Udemy (https://www.udemy.com/course/the-complete-react-native-and-redux-course). In section 15 we create a tracker app. I thought it was a great opportunity to use Strapi as the backend instead of the express/mongo server we build in section 14.

This is where I ran into a problem. When using Strapi in as the backend, the ios simulator crashes every time after creating (signup) a user. The user's get created in Atlas/MongoDB, and I see them in the Strapi admin panel, but I can't continue working on the app because it keeps crashing.

However, when using the express backend created with Stephen, it works just fine and there's no problem.

The code: tracks-server (created by Stephen): https://github.com/serg337/track-server (git@github.com:serg337/track-server.git) - note: like Strapi docs suggests in a warning I took out the username and password for the mongoUri string. tracks-mobile-app: https://github.com/serg337/tracks-mobile-app (git@github.com:serg337/tracks-mobile-app.git)

After creating the user, the app navigates to another screen (ln 27 in authContext.js). When using Strapi, the app crashes before that, it crashes right after creating the user (crash occurs between ln 24 and ln 25 in authContext.js)

The tracks-mobile-app commit 5 uses Stephen's ngrok baseURL (tracker.js) and signup endpoint (authContext.js) and commit 6 uses Strapi's baseURL and endpoint.

in authContext.js there's a console.log(response) in ln 28, when using Strapi it crashes before reaching the console.log.

I believe this could be an issue with Expo and how Strapi relates to it, but I'm not sure at all because I'm not a pro developer (you can probably deduce that since I take beginner Udemy development tutorials). Is there something I need to do to get Strapi to work with Expo? is this an Expo issue?

Please help, I really like Strapi and would love to continue learning to use it with react native. Thanks!

React Native ios picker is always open

$
0
0

I have two pickers on my screen. Whenever I navigate to the screen in iOS app I find that the pickers are always open and all options are visible.

enter image description here

It works perfectly fine in Android where the options are visible only after we click on the picker.

Can somebody suggest a solution to fix this in iOS?


ProgressViewOffset for IOS Refresh Control React Native

$
0
0

I have the header that hides on a scroll, So I use ProgressViewOffset to bring out refresh control loader below the header.
It's working fine on Android. But in IOS we have no support for offset. But I ended up using contentInset and contentOffset but I'm not getting it.

enter image description here

          refreshControl: (
        <RefreshControl
          // refreshing
          refreshing={this.props.isloading}
          onRefresh={this.onRefresh}
          progressViewOffset={200}
          />
      ),
      contentInset: {top: 200},
      onMomentumScrollBegin,
      onMomentumScrollEnd,
      onScrollEndDrag,
      ItemSeparatorComponent: this.renderSeparator,
      onScrollEventThrottle: 16,
      automaticallyAdjustContentInsets: false, 
      contentOffset: {x: 0, y: -200},

PS: When I use contentContainerStyle and contentInset, There's a space between refreshcontrol and the content...

React Native: RCTFatal + 668

$
0
0

I've also posted the issue in the React Native github repo, hoping to get some insight into the error.

I've noticed that a not insignificant number of my iOS users experience the fatal error ( RCTFatal + 668 ) in production, resulting in the app crashing. The error occurs about 0.004 times per session, not terrible, but not great either.

There seems to be no correlation between the error and what iOS version the user is running, the number of crashes seems to be directly tied to the number of sessions for each iOS version. What iOS device the user has doesn't seem to correlate with the error either.

I'm unable to reproduce the error in local, staging, or production.

Has anyone else had this error, and what can i do to debug this issue further?


react-native info

System:
  OS: macOS Mojave 10.14.6
  CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
  Memory: 189.93 MB / 16.00 GB
  Shell: 3.2.57 - /bin/bash

Binaries:
  Node: 12.8.0 - /usr/local/bin/node
  Yarn: 1.17.3 - /usr/local/bin/yarn
  npm: 6.4.1 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman

SDKs:
  iOS SDK:
    Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
  Android SDK:
    Android NDK: 20.0.5594570

IDEs:
  Android Studio: 3.5 AI-191.8026.42.35.5977832
  Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild

npmPackages:
  react: 16.9.0 => 16.9.0
  react-native: 0.61.2 => 0.61.2

Screenshot from crashes tab in Xcode (App name blurred for privacy)

enter image description here


P.S I'm aware that i'm not running the very latest version of RN. By the time i've upgraded RN, pushed to review, passed review, and got 2 weeks of crash reports there will always be a new version out. If this is known to be fixed in a later RN version, i will happily upgrade.

React-Native Webview With audio-player it's possible?

$
0
0

I'm just starting with React-Native. do i need to play a song inside one in a webview and be able to control it when the screen is locked by running stop / play?

Does anyone have any ideas / worked on this before?

FirebaseCore - Lexical or Preprocessor issue - 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

$
0
0

I was trying to add the firebase SDK to my react-native project and I keep running into this issue when building the app in Xcode. I've tried lots of different version checks on cocoapods and GoogleUtilities but I cannot get rid of this error.

Xcode Version: 11.3

Cocoapods Version: 1.8.4

Here's the Podfile:

platform :ios, '10.0'

target 'fitness' do
  pod 'ExpoKit',
    :git => "http://github.com/expo/expo.git",
    :tag => "ios/2.11.5",
    :subspecs => [
      "Core"
    ],
    :inhibit_warnings => true

  # Install unimodules
  require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
  use_unimodules!(
    modules_paths: ['../node_modules'],
    exclude: [
      'expo-bluetooth',
      'expo-in-app-purchases',
      'expo-payments-stripe',
    ],
  )

  pod 'React',
    :path => "../node_modules/react-native",
    :inhibit_warnings => true,
    :subspecs => [
      "Core",
      "ART",
      "RCTActionSheet",
      "RCTAnimation",
      "RCTCameraRoll",
      "RCTGeolocation",
      "RCTImage",
      "RCTNetwork",
      "RCTText",
      "RCTVibration",
      "RCTWebSocket",
      "DevSupport",
      "CxxBridge"
    ]
  pod 'yoga',
    :path => "../node_modules/react-native/ReactCommon/yoga",
    :inhibit_warnings => true
  pod 'DoubleConversion',
    :podspec => "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec",
    :inhibit_warnings => true
  pod 'Folly',
    :podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec",
    :inhibit_warnings => true
  pod 'glog',
    :podspec => "../node_modules/react-native/third-party-podspecs/glog.podspec",
    :inhibit_warnings => true

  pod 'Firebase/Auth', '~> 6.3.0'

  pod 'Firebase/Firestore', '~> 6.3.0'

And the Podfile.lock:

  - Amplitude-iOS (3.14.1)
  - Analytics (3.7.0)
  - AppAuth (0.95.1)
  - Bolts (1.9.0):
    - Bolts/AppLinks (= 1.9.0)
    - Bolts/Tasks (= 1.9.0)
  - Bolts/AppLinks (1.9.0):
    - Bolts/Tasks
  - Bolts/Tasks (1.9.0)
  - boost-for-react-native (1.63.0)
  - BoringSSL-GRPC (0.0.3):
    - BoringSSL-GRPC/Implementation (= 0.0.3)
    - BoringSSL-GRPC/Interface (= 0.0.3)
  - BoringSSL-GRPC/Implementation (0.0.3):
    - BoringSSL-GRPC/Interface (= 0.0.3)
  - BoringSSL-GRPC/Interface (0.0.3)
  - Branch (0.24.2):
    - Branch/Core (= 0.24.2)
  - Branch/Core (0.24.2)
  - CocoaLumberjack (3.2.1):
    - CocoaLumberjack/Default (= 3.2.1)
    - CocoaLumberjack/Extensions (= 3.2.1)
  - CocoaLumberjack/Default (3.2.1)
  - CocoaLumberjack/Extensions (3.2.1):
    - CocoaLumberjack/Default
  - Crashlytics (3.14.0):
    - Fabric (~> 1.10.2)
  - DoubleConversion (1.1.6)
  - EXAdsAdMob (5.0.1):
    - Google-Mobile-Ads-SDK
    - UMCore
  - EXAdsFacebook (5.0.1):
    - FBAudienceNetwork
    - UMCore
  - EXAmplitude (5.0.1):
    - Amplitude-iOS
    - UMConstantsInterface
    - UMCore
  - EXAppAuth (5.0.1):
    - AppAuth
    - UMCore
  - EXAppLoaderProvider (5.0.1)
  - EXAV (5.0.2):
    - UMCore
    - UMPermissionsInterface
  - EXBackgroundFetch (5.0.1):
    - UMCore
    - UMTaskManagerInterface
  - EXBarCodeScanner (5.0.1):
    - UMCore
    - UMImageLoaderInterface
  - EXBlur (5.0.1):
    - UMCore
  - EXBrightness (5.0.1):
    - UMCore
  - EXCalendar (5.0.1):
    - UMCore
    - UMPermissionsInterface
  - EXCamera (5.0.1):
    - UMBarCodeScannerInterface
    - UMCore
    - UMFaceDetectorInterface
    - UMFileSystemInterface
    - UMImageLoaderInterface
    - UMPermissionsInterface
  - EXConstants (5.0.1):
    - UMConstantsInterface
    - UMCore
  - EXContacts (5.0.2):
    - UMCore
    - UMFileSystemInterface
    - UMPermissionsInterface
  - EXCrypto (5.0.1):
    - UMCore
  - EXDocumentPicker (5.0.2):
    - UMCore
    - UMFileSystemInterface
  - EXFacebook (5.0.1):
    - FBSDKCoreKit
    - FBSDKLoginKit
    - UMConstantsInterface
    - UMCore
  - EXFaceDetector (5.0.1):
    - GoogleMobileVision/FaceDetector (~> 1.1.0)
    - GoogleMobileVision/MVDataOutput (~> 1.1.0)
    - UMCore
    - UMFaceDetectorInterface
  - EXFileSystem (5.0.1):
    - UMCore
    - UMFileSystemInterface
  - EXFont (5.0.1):
    - UMCore
    - UMFontInterface
  - EXGL (5.0.1):
    - EXGL-CPP
    - UMCameraInterface
    - UMCore
    - UMFileSystemInterface
  - EXGL-CPP (5.0.1):
    - EXGL-CPP/UEXGL (= 5.0.1)
  - EXGL-CPP/UEXGL (5.0.1)
  - EXGoogleSignIn (5.0.1):
    - GoogleSignIn (~> 4.4)
    - UMCore
  - EXHaptics (5.0.1):
    - UMCore
  - EXImageManipulator (5.0.1):
    - UMCore
    - UMFileSystemInterface
    - UMImageLoaderInterface
  - EXImagePicker (5.0.2):
    - UMCore
    - UMFileSystemInterface
  - EXKeepAwake (5.0.1):
    - UMCore
  - EXLinearGradient (5.0.1):
    - UMCore
  - EXLocalAuthentication (5.0.1):
    - UMConstantsInterface
    - UMCore
  - EXLocalization (5.0.1):
    - UMCore
  - EXLocation (5.0.1):
    - UMCore
    - UMPermissionsInterface
    - UMTaskManagerInterface
  - EXMailComposer (5.0.1):
    - UMCore
    - UMFileSystemInterface
  - EXMediaLibrary (5.0.1):
    - UMCore
    - UMPermissionsInterface
  - EXPermissions (5.0.1):
    - UMCore
    - UMPermissionsInterface
  - ExpoKit/Core (33.0.0):
    - Amplitude-iOS (~> 3.8)
    - Analytics (~> 3.5)
    - AppAuth (~> 0.4)
    - Branch (~> 0.24.2)
    - CocoaLumberjack (~> 3.2.1)
    - Crashlytics (~> 3.8)
    - Fabric (~> 1.6)
    - FBAudienceNetwork (= 5.1.1)
    - FBSDKCoreKit (= 4.40.0)
    - FBSDKLoginKit (= 4.40.0)
    - Google-Maps-iOS-Utils (~> 2.1.0)
    - Google-Mobile-Ads-SDK (~> 7.22.0)
    - GoogleMaps (~> 2.5.0)
    - GoogleSignIn (~> 4.1)
    - JKBigInteger2 (= 0.0.5)
    - lottie-ios (~> 2.5.0)
    - React
    - UMCameraInterface
    - UMConstantsInterface
    - UMCore
    - UMFileSystemInterface
    - UMPermissionsInterface
    - UMReactNativeAdapter
    - UMSensorsInterface
  - EXPrint (5.0.1):
    - UMCore
    - UMFileSystemInterface
  - EXRandom (5.0.1):
    - UMCore
  - EXSecureStore (5.0.1):
    - UMCore
  - EXSegment (5.0.1):
    - Analytics (~> 3.5)
    - UMConstantsInterface
    - UMCore
  - EXSensors (5.0.1):
    - UMCore
    - UMSensorsInterface
  - EXSharing (5.0.1):
    - UMCore
    - UMFileSystemInterface
  - EXSMS (5.0.1):
    - UMCore
    - UMPermissionsInterface
  - EXSpeech (5.0.2):
    - UMCore
  - EXSQLite (5.0.1):
    - UMCore
    - UMFileSystemInterface
  - EXTaskManager (5.0.1):
    - EXAppLoaderProvider
    - UMConstantsInterface
    - UMCore
    - UMTaskManagerInterface
  - EXWebBrowser (5.0.3):
    - UMCore
  - Fabric (1.10.2)
  - FBAudienceNetwork (5.1.1)
  - FBSDKCoreKit (4.40.0):
    - Bolts (~> 1.9)
  - FBSDKLoginKit (4.40.0):
    - FBSDKCoreKit
  - Firebase/Auth (6.3.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 6.1.2)
  - Firebase/CoreOnly (6.3.0):
    - FirebaseCore (= 6.0.3)
  - Firebase/Firestore (6.3.0):
    - Firebase/CoreOnly
    - FirebaseFirestore (~> 1.4.0)
  - FirebaseAuth (6.1.2):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.2)
    - GoogleUtilities/Environment (~> 6.2)
    - GTMSessionFetcher/Core (~> 1.1)
  - FirebaseAuthInterop (1.0.0)
  - FirebaseCore (6.0.3):
    - GoogleUtilities/Environment (~> 6.0)
    - GoogleUtilities/Logger (~> 6.0)
  - FirebaseFirestore (1.4.2):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - FirebaseFirestore/abseil-cpp (= 1.4.2)
    - "gRPC-C++ (= 0.0.9)"
    - leveldb-library (~> 1.20)
    - nanopb (~> 0.3.901)
    - Protobuf (~> 3.1)
  - FirebaseFirestore/abseil-cpp (1.4.2):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - "gRPC-C++ (= 0.0.9)"
    - leveldb-library (~> 1.20)
    - nanopb (~> 0.3.901)
    - Protobuf (~> 3.1)
  - Folly (2018.10.22.00):
    - boost-for-react-native
    - DoubleConversion
    - glog
  - glog (0.3.5)
  - Google-Maps-iOS-Utils (2.1.0):
    - Google-Maps-iOS-Utils/Clustering (= 2.1.0)
    - Google-Maps-iOS-Utils/Geometry (= 2.1.0)
    - Google-Maps-iOS-Utils/Heatmap (= 2.1.0)
    - Google-Maps-iOS-Utils/QuadTree (= 2.1.0)
    - GoogleMaps
  - Google-Maps-iOS-Utils/Clustering (2.1.0):
    - Google-Maps-iOS-Utils/QuadTree
    - GoogleMaps
  - Google-Maps-iOS-Utils/Geometry (2.1.0):
    - GoogleMaps
  - Google-Maps-iOS-Utils/Heatmap (2.1.0):
    - Google-Maps-iOS-Utils/QuadTree
    - GoogleMaps
  - Google-Maps-iOS-Utils/QuadTree (2.1.0):
    - GoogleMaps
  - Google-Mobile-Ads-SDK (7.22.0)
  - GoogleInterchangeUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleMaps (2.5.0):
    - GoogleMaps/Maps (= 2.5.0)
  - GoogleMaps/Base (2.5.0)
  - GoogleMaps/Maps (2.5.0):
    - GoogleMaps/Base
  - GoogleMobileVision/Detector (1.1.0):
    - GoogleInterchangeUtilities (~> 1.2)
    - GoogleNetworkingUtilities (~> 1.2)
    - GoogleUtilities (~> 1.3)
  - GoogleMobileVision/FaceDetector (1.1.0):
    - GoogleMobileVision/Detector
  - GoogleMobileVision/MVDataOutput (1.1.0):
    - GoogleMobileVision/Detector
  - GoogleNetworkingUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleSignIn (4.4.0):
    - "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
    - "GoogleToolboxForMac/NSString+URLArguments (~> 2.1)"
    - GTMSessionFetcher/Core (~> 1.1)
  - GoogleSymbolUtilities (1.1.2)
  - GoogleToolboxForMac/DebugUtils (2.2.2):
    - GoogleToolboxForMac/Defines (= 2.2.2)
  - GoogleToolboxForMac/Defines (2.2.2)
  - "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.2)":
    - GoogleToolboxForMac/DebugUtils (= 2.2.2)
    - GoogleToolboxForMac/Defines (= 2.2.2)
    - "GoogleToolboxForMac/NSString+URLArguments (= 2.2.2)"
  - "GoogleToolboxForMac/NSString+URLArguments (2.2.2)"
  - GoogleUtilities (1.3.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleUtilities/AppDelegateSwizzler (6.4.0):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.4.0)
  - GoogleUtilities/Logger (6.4.0):
    - GoogleUtilities/Environment
  - GoogleUtilities/Network (6.4.0):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.4.0)"
  - GoogleUtilities/Reachability (6.4.0):
    - GoogleUtilities/Logger
  - "gRPC-C++ (0.0.9)":
    - "gRPC-C++/Implementation (= 0.0.9)"
    - "gRPC-C++/Interface (= 0.0.9)"
  - "gRPC-C++/Implementation (0.0.9)":
    - "gRPC-C++/Interface (= 0.0.9)"
    - gRPC-Core (= 1.21.0)
    - nanopb (~> 0.3)
  - "gRPC-C++/Interface (0.0.9)"
  - gRPC-Core (1.21.0):
    - gRPC-Core/Implementation (= 1.21.0)
    - gRPC-Core/Interface (= 1.21.0)
  - gRPC-Core/Implementation (1.21.0):
    - BoringSSL-GRPC (= 0.0.3)
    - gRPC-Core/Interface (= 1.21.0)
    - nanopb (~> 0.3)
  - gRPC-Core/Interface (1.21.0)
  - GTMSessionFetcher/Core (1.3.0)
  - JKBigInteger2 (0.0.5)
  - leveldb-library (1.22)
  - lottie-ios (2.5.3)
  - nanopb (0.3.9011):
    - nanopb/decode (= 0.3.9011)
    - nanopb/encode (= 0.3.9011)
  - nanopb/decode (0.3.9011)
  - nanopb/encode (0.3.9011)
  - Protobuf (3.11.2)
  - React (0.59.8):
    - React/Core (= 0.59.8)
  - React/ART (0.59.8):
    - React/Core
  - React/Core (0.59.8):
    - yoga (= 0.59.8.React)
  - React/CxxBridge (0.59.8):
    - Folly (= 2018.10.22.00)
    - React/Core
    - React/cxxreact
    - React/jsiexecutor
  - React/cxxreact (0.59.8):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React/jsinspector
  - React/DevSupport (0.59.8):
    - React/Core
    - React/RCTWebSocket
  - React/fishhook (0.59.8)
  - React/jsi (0.59.8):
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
  - React/jsiexecutor (0.59.8):
    - DoubleConversion
    - Folly (= 2018.10.22.00)
    - glog
    - React/cxxreact
    - React/jsi
  - React/jsinspector (0.59.8)
  - React/RCTActionSheet (0.59.8):
    - React/Core
  - React/RCTAnimation (0.59.8):
    - React/Core
  - React/RCTBlob (0.59.8):
    - React/Core
  - React/RCTCameraRoll (0.59.8):
    - React/Core
    - React/RCTImage
  - React/RCTGeolocation (0.59.8):
    - React/Core
  - React/RCTImage (0.59.8):
    - React/Core
    - React/RCTNetwork
  - React/RCTNetwork (0.59.8):
    - React/Core
  - React/RCTText (0.59.8):
    - React/Core
  - React/RCTVibration (0.59.8):
    - React/Core
  - React/RCTWebSocket (0.59.8):
    - React/Core
    - React/fishhook
    - React/RCTBlob
  - UMBarCodeScannerInterface (2.0.1)
  - UMCameraInterface (2.0.1)
  - UMConstantsInterface (2.0.1)
  - UMCore (2.0.1)
  - UMFaceDetectorInterface (2.0.1)
  - UMFileSystemInterface (2.0.1)
  - UMFontInterface (2.0.1)
  - UMImageLoaderInterface (2.0.1)
  - UMPermissionsInterface (2.0.1)
  - UMReactNativeAdapter (2.0.1):
    - React
    - UMCore
    - UMFontInterface
  - UMSensorsInterface (2.0.1)
  - UMTaskManagerInterface (2.0.1)
  - yoga (0.59.8.React)

DEPENDENCIES:
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - EXAdsAdMob (from `../node_modules/expo-ads-admob/ios`)
  - EXAdsFacebook (from `../node_modules/expo-ads-facebook/ios`)
  - EXAmplitude (from `../node_modules/expo-analytics-amplitude/ios`)
  - EXAppAuth (from `../node_modules/expo-app-auth/ios`)
  - EXAppLoaderProvider (from `../node_modules/expo-app-loader-provider/ios`)
  - EXAV (from `../node_modules/expo-av/ios`)
  - EXBackgroundFetch (from `../node_modules/expo-background-fetch/ios`)
  - EXBarCodeScanner (from `../node_modules/expo-barcode-scanner/ios`)
  - EXBlur (from `../node_modules/expo-blur/ios`)
  - EXBrightness (from `../node_modules/expo-brightness/ios`)
  - EXCalendar (from `../node_modules/expo-calendar/ios`)
  - EXCamera (from `../node_modules/expo-camera/ios`)
  - EXConstants (from `../node_modules/expo-constants/ios`)
  - EXContacts (from `../node_modules/expo-contacts/ios`)
  - EXCrypto (from `../node_modules/expo-crypto/ios`)
  - EXDocumentPicker (from `../node_modules/expo-document-picker/ios`)
  - EXFacebook (from `../node_modules/expo-facebook/ios`)
  - EXFaceDetector (from `../node_modules/expo-face-detector/ios`)
  - EXFileSystem (from `../node_modules/expo-file-system/ios`)
  - EXFont (from `../node_modules/expo-font/ios`)
  - EXGL (from `../node_modules/expo-gl/ios`)
  - EXGL-CPP (from `../node_modules/expo-gl-cpp/cpp`)
  - EXGoogleSignIn (from `../node_modules/expo-google-sign-in/ios`)
  - EXHaptics (from `../node_modules/expo-haptics/ios`)
  - EXImageManipulator (from `../node_modules/expo-image-manipulator/ios`)
  - EXImagePicker (from `../node_modules/expo-image-picker/ios`)
  - EXKeepAwake (from `../node_modules/expo-keep-awake/ios`)
  - EXLinearGradient (from `../node_modules/expo-linear-gradient/ios`)
  - EXLocalAuthentication (from `../node_modules/expo-local-authentication/ios`)
  - EXLocalization (from `../node_modules/expo-localization/ios`)
  - EXLocation (from `../node_modules/expo-location/ios`)
  - EXMailComposer (from `../node_modules/expo-mail-composer/ios`)
  - EXMediaLibrary (from `../node_modules/expo-media-library/ios`)
  - EXPermissions (from `../node_modules/expo-permissions/ios`)
  - ExpoKit/Core (from `http://github.com/expo/expo.git`, tag `ios/2.11.5`)
  - EXPrint (from `../node_modules/expo-print/ios`)
  - EXRandom (from `../node_modules/expo-random/ios`)
  - EXSecureStore (from `../node_modules/expo-secure-store/ios`)
  - EXSegment (from `../node_modules/expo-analytics-segment/ios`)
  - EXSensors (from `../node_modules/expo-sensors/ios`)
  - EXSharing (from `../node_modules/expo-sharing/ios`)
  - EXSMS (from `../node_modules/expo-sms/ios`)
  - EXSpeech (from `../node_modules/expo-speech/ios`)
  - EXSQLite (from `../node_modules/expo-sqlite/ios`)
  - EXTaskManager (from `../node_modules/expo-task-manager/ios`)
  - EXWebBrowser (from `../node_modules/expo-web-browser/ios`)
  - Firebase/Auth (~> 6.3.0)
  - Firebase/Firestore (~> 6.3.0)
  - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - React/ART (from `../node_modules/react-native`)
  - React/Core (from `../node_modules/react-native`)
  - React/CxxBridge (from `../node_modules/react-native`)
  - React/DevSupport (from `../node_modules/react-native`)
  - React/RCTActionSheet (from `../node_modules/react-native`)
  - React/RCTAnimation (from `../node_modules/react-native`)
  - React/RCTCameraRoll (from `../node_modules/react-native`)
  - React/RCTGeolocation (from `../node_modules/react-native`)
  - React/RCTImage (from `../node_modules/react-native`)
  - React/RCTNetwork (from `../node_modules/react-native`)
  - React/RCTText (from `../node_modules/react-native`)
  - React/RCTVibration (from `../node_modules/react-native`)
  - React/RCTWebSocket (from `../node_modules/react-native`)
  - UMBarCodeScannerInterface (from `../node_modules/unimodules-barcode-scanner-interface/ios`)
  - UMCameraInterface (from `../node_modules/unimodules-camera-interface/ios`)
  - UMConstantsInterface (from `../node_modules/unimodules-constants-interface/ios`)
  - "UMCore (from `../node_modules/@unimodules/core/ios`)"
  - UMFaceDetectorInterface (from `../node_modules/unimodules-face-detector-interface/ios`)
  - UMFileSystemInterface (from `../node_modules/unimodules-file-system-interface/ios`)
  - UMFontInterface (from `../node_modules/unimodules-font-interface/ios`)
  - UMImageLoaderInterface (from `../node_modules/unimodules-image-loader-interface/ios`)
  - UMPermissionsInterface (from `../node_modules/unimodules-permissions-interface/ios`)
  - "UMReactNativeAdapter (from `../node_modules/@unimodules/react-native-adapter/ios`)"
  - UMSensorsInterface (from `../node_modules/unimodules-sensors-interface/ios`)
  - UMTaskManagerInterface (from `../node_modules/unimodules-task-manager-interface/ios`)
  - yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
  https://github.com/CocoaPods/Specs.git:
    - Amplitude-iOS
    - Analytics
    - AppAuth
    - Bolts
    - boost-for-react-native
    - BoringSSL-GRPC
    - Branch
    - CocoaLumberjack
    - Crashlytics
    - Fabric
    - FBAudienceNetwork
    - FBSDKCoreKit
    - FBSDKLoginKit
    - Firebase
    - FirebaseAuth
    - FirebaseAuthInterop
    - FirebaseCore
    - FirebaseFirestore
    - Google-Maps-iOS-Utils
    - Google-Mobile-Ads-SDK
    - GoogleInterchangeUtilities
    - GoogleMaps
    - GoogleMobileVision
    - GoogleNetworkingUtilities
    - GoogleSignIn
    - GoogleSymbolUtilities
    - GoogleToolboxForMac
    - GoogleUtilities
    - "gRPC-C++"
    - gRPC-Core
    - GTMSessionFetcher
    - JKBigInteger2
    - leveldb-library
    - lottie-ios
    - nanopb
    - Protobuf

EXTERNAL SOURCES:
  DoubleConversion:
    :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
  EXAdsAdMob:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-ads-admob/ios"
  EXAdsFacebook:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-ads-facebook/ios"
  EXAmplitude:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-analytics-amplitude/ios"
  EXAppAuth:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-app-auth/ios"
  EXAppLoaderProvider:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-app-loader-provider/ios"
  EXAV:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-av/ios"
  EXBackgroundFetch:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-background-fetch/ios"
  EXBarCodeScanner:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-barcode-scanner/ios"
  EXBlur:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-blur/ios"
  EXBrightness:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-brightness/ios"
  EXCalendar:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-calendar/ios"
  EXCamera:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-camera/ios"
  EXConstants:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-constants/ios"
  EXContacts:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-contacts/ios"
  EXCrypto:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-crypto/ios"
  EXDocumentPicker:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-document-picker/ios"
  EXFacebook:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-facebook/ios"
  EXFaceDetector:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-face-detector/ios"
  EXFileSystem:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-file-system/ios"
  EXFont:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-font/ios"
  EXGL:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-gl/ios"
  EXGL-CPP:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-gl-cpp/cpp"
  EXGoogleSignIn:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-google-sign-in/ios"
  EXHaptics:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-haptics/ios"
  EXImageManipulator:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-image-manipulator/ios"
  EXImagePicker:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-image-picker/ios"
  EXKeepAwake:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-keep-awake/ios"
  EXLinearGradient:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-linear-gradient/ios"
  EXLocalAuthentication:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-local-authentication/ios"
  EXLocalization:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-localization/ios"
  EXLocation:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-location/ios"
  EXMailComposer:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-mail-composer/ios"
  EXMediaLibrary:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-media-library/ios"
  EXPermissions:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-permissions/ios"
  ExpoKit:
    :git: http://github.com/expo/expo.git
    :tag: ios/2.11.5
  EXPrint:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-print/ios"
  EXRandom:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-random/ios"
  EXSecureStore:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-secure-store/ios"
  EXSegment:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-analytics-segment/ios"
  EXSensors:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-sensors/ios"
  EXSharing:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-sharing/ios"
  EXSMS:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-sms/ios"
  EXSpeech:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-speech/ios"
  EXSQLite:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-sqlite/ios"
  EXTaskManager:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-task-manager/ios"
  EXWebBrowser:
    :path: !ruby/object:Pathname
    path: "../node_modules/expo-web-browser/ios"
  Folly:
    :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
  glog:
    :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
  React:
    :path: "../node_modules/react-native"
  UMBarCodeScannerInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-barcode-scanner-interface/ios"
  UMCameraInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-camera-interface/ios"
  UMConstantsInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-constants-interface/ios"
  UMCore:
    :path: !ruby/object:Pathname
    path: "../node_modules/@unimodules/core/ios"
  UMFaceDetectorInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-face-detector-interface/ios"
  UMFileSystemInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-file-system-interface/ios"
  UMFontInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-font-interface/ios"
  UMImageLoaderInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-image-loader-interface/ios"
  UMPermissionsInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-permissions-interface/ios"
  UMReactNativeAdapter:
    :path: !ruby/object:Pathname
    path: "../node_modules/@unimodules/react-native-adapter/ios"
  UMSensorsInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-sensors-interface/ios"
  UMTaskManagerInterface:
    :path: !ruby/object:Pathname
    path: "../node_modules/unimodules-task-manager-interface/ios"
  yoga:
    :path: "../node_modules/react-native/ReactCommon/yoga"

CHECKOUT OPTIONS:
  ExpoKit:
    :git: http://github.com/expo/expo.git
    :tag: ios/2.11.5

COCOAPODS: 1.8.4

At this point, I have no idea what's going wrong so any help would be appreciated

React Native Settings.set() API method is not working as expected

$
0
0

Environment:

react: "16.8.3"

react-native: "0.59.3"

Description:

I'm trying to use React Native's Settings API. To be specific, I'm setting a key/value pair in NSUserDefaults via Settings as follows,

    try {
      Settings.set({
        foo: 'bar',
      })
    } catch (e) {
      console.error(e)
    }

However, I'm getting following error,

Object.assign requires that input parameter not be null or undefined

Error Screenshot

Is this API working fine? Or am I using it incorrectly?

I see that there is a similar issues in Expo GitHub repo: https://github.com/expo/expo/issues/2133. In this issue, I found a comment saying its deprecated due to security concerns. Is that true only for Expo or Settings API in general?

Viewing all 16564 articles
Browse latest View live


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