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

Don't know how to use navigation.navigate in React Native app

$
0
0

I created a basic SplashScreen.tsx that just has some text on it. Then, I created this LoginCreateAccountScreen.tsx, which has a Login button and Create Account button. I want my app to show the SplashScreen.tsx for a few seconds before it automatically navigates to LoginCreateAccountScreen.tsx. Also, pressing the buttons should redirect the user to other screens, but that also does not work. I don't know how to do this and have had a lot of difficulties figuring out exactly how to accomplish this.

I used this React Native Navigation Article as well as This Tutorial to get to where I am right now, along with various StackOverflow posts. But to be honest, I am pretty lost as there is just so much going on with regards to frontend navigation.

I don't understand how AppNavigator.js and App.js (the entry point for my app) work in conjunction to let me be able to navigate to another screen from my current screen. Right now, I can't get any kind of navigation working. I have to manually change the screen by setting it in App.js.

My App.js, which renders the SplashScreen. But won't transition to the LoginCreateAccountScreen.

import React, { Component } from 'react';

import EmojiDict from './screens/EmojiDict';
import SplashScreen from './screens/SplashScreen';
import LoginCreateAccountScreen from './screens/LoginCreateAccountScreen'

export default class App extends Component {
    render() {
        return <SplashScreen />;
    }
}

My AppNavigator.js:

import { createAppContainer, createSwitchNavigator } from "react-navigation";
import { createStackNavigator } from "react-navigation";
import MainTabNavigator from "./MainTabNavigator";
import { Platform } from "react-native";
// Importing my screens here.
import LoginCreateAccountScreen from "../screens/LoginCreateAccountScreen";
import CreateAccountScreen from "../screens/CreateAccountScreen";
import LoginScreen from "../screens/Login/LoginScreen";
import SplashScreen from "../screens/SplashScreen";

const MainNavigator = createStackNavigator({
  SplashScreen: {screen: SplashScreen},
  LoginCreateAccountScreen: {screen: LoginCreateAccountScreen},
  LoginScreen: {screen: LoginScreen},
  CreateAccountScreen: {screen: CreateAccountScreen},
});

const App = createAppContainer(MainNavigator);

export default App;

My SplashScreen.tsx:

import React, { Component } from 'react';
import { View, Text, StyleSheet, FlatList } from 'react-native';

class SplashScreen extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Text style={styles.title}>
                    The Good App
                </Text>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
    },
    title: {
        fontSize: 45,
        textAlign: 'center',
        fontWeight: 'bold'
    }
});

export default SplashScreen;

My LoginCreateAccountScreen.tsx:

import React, { Component } from 'react';
import {
  StyleSheet,
  Button,
  View,
  SafeAreaView,
  Text,
  Alert,
  TouchableOpacity
} from 'react-native';
import Constants from 'expo-constants';

function Separator() {
  return <View style={styles.separator} />;
}

class CreateAccountOrLogin extends Component {
    handleLogInButton = () => {
        Alert.alert('Log In pressed')
        this.props.navigation.navigate("LoginScreen");
    };

    handleCreateAccountButton = () => {
        Alert.alert('Create Account pressed')
        this.props.navigation.navigate("CreateAccountScreen");
    };

    render() {
        return (
            <View style={styles.container}>
                <TouchableOpacity
                style={styles.customButtonBackground}
                onPress={() => this.handleLogInButton()}>
                    <Text style={styles.customButtonText}>Login</Text>
                </TouchableOpacity>
                <TouchableOpacity
                style={styles.customButtonBackground}
                onPress={() => this.handleCreateAccountButton()}>
                    <Text style={styles.customButtonText}>Create Account</Text>
                </TouchableOpacity>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
    },
    /* Here, style the text of your button */
    customButtonText: {
        fontSize: 35,
        fontWeight: '400',
        color: "#fff",
        textAlign: 'center'
    },
    /* Here, style the background of your button */
    customButtonBackground: {
        backgroundColor: "#007aff",
        paddingHorizontal: 30,
        paddingVertical: 5,
        borderRadius: 30,
        width: "70%",
        aspectRatio: 5 / 1,
    }
});

export default CreateAccountOrLogin;

I get the following error when I press on the Login or Create Account button, which is the same for both: enter image description here


Video cannot close from fullscreen in react-native webview (ios)

$
0
0

I am using react-native-community/react-native-webview and on the website we have Nexx player for playing videos.

Android works fine but I have problems with ios. On ios, I have a fullscreen modal where is possible to play video. And if I click on play button video jump into fullscreen mode and start playing. That is right. But if I want to close video by X button on the corner Video will jump back to start position and immediately jump back to the fullscreen mode and sometimes show an icon over the video. I will try to close it and the situation will be repeating after a few repeating is finally closed.

enter image description here

I think the problem is in ios fullscreen video player. Because if I want to play video some fancy webview features will handle video and show it in fullscreen (because Nexx player looks different then this view and I also tried to turn off fullscreen mode but video always jumps in fullscreen). I try to pause the video when it will jump out of fullscreen but it doesn't work. (It works when I pause the video first in fullscreen mode and then I will click on close button = video is close right but if I click on a close button it is doesn't work)

Is there some way how to fix this issues? Or How to control webview feature pause it and then close it when the user clicks on X button?

How do i add a view on app window by use react-native?

$
0
0

This is a screen with navigation. I want add a view full on phone window. Now my code only cover the screen not excluding navigation. Who can help me?

react-native-firebase notifications().onNotification() is never called in ios

$
0
0

I sent test messages from firebase console but firebase.notifications().onNitification((notification :Notification)=>{ console.log(notification); }) was never called.

The versions

- "react-native": "^0.61.2",
 - "react-native-firebase": "^5.5.6", 

podfile

 1. pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'
 2. pod 'Firebase/Core', '~> 6.3.0'
 3. pod 'Firebase/Messaging', '~> 6.3.0'

What I did are...

  1. I uploaded an APN key to the firebase project.

  2. I put GoogleService-info.plist in my project.

  3. Here is my AppDelegate.m

#import "AppDelegate.h"

#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

#import <GoogleMaps/GoogleMaps.h>
#import <Firebase.h>
#import <FirebaseMessaging.h>
#import "RNFirebaseMessaging.h"
#import "RNFirebaseNotifications.h"
#import "RNSplashScreen.h"

@import Firebase;
@import UserNotifications;

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  [RNFirebaseNotifications configure];
  [GMSServices provideAPIKey:@""];
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@""
                                            initialProperties:nil];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 
  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible]; 
  [RNSplashScreen show]; 
  return YES;
}

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
  [[RNFirebaseNotifications instance] didReceiveLocalNotification:notification];
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
  [[RNFirebaseNotifications instance] didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}

- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
  [[RNFirebaseMessaging instance] didRegisterUserNotificationSettings:notificationSettings];
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}

@end
  1. Here's my code
this.notificationListener = firebase.notifications().onNotification((notification: Notification) => {
    alert('in method')
    console.log("onNotification");
    console.log(notification);
    notification.setSound("default");
    notification.ios.setBadge(notification.ios.badge ? notification.ios.badge + 1 : 0);
    firebase.notifications().displayNotification(notification);
});

How do i use react native RCNAsyncStorage module from native swift code

$
0
0

I have a react native app where I am using RNCAsyncStorage npm module for simple data persistence. How ever, my iOS version of the app ships with a share extension, and this share extensions needs to access one of my stored data strings.

So in short, I want to use RNCAynscStorage from swift native code to get the data which was stored from my react native code.

Before even trying to implement the module I asked RNC and they replied:

This is possible but requires some knowledge of how native modules work in general. I'm not sure how future-proof this is with regards to the upcoming refactoring work in React Native but this is how you could access it today:

// First, get the RNCAsyncStorage instance from the bridge
RNCAsyncStorage *asyncStorage = [bridge moduleForClass:[RNCAsyncStorage class]];

// Then call the getter:
[asyncStorage multiGet:@[@"count"]] callback:^(NSArray *response){
    NSObject *count = response[0];
    if ([count isKindOfClass:[NSError class]]) {
        // Failed to get count
        return;
    }

    // Use count here
}];

However, My extension is written in swift, and I am not sure how this would look when converted to swift.

First I followed a guide to make the react bridge module accessible in swift code, this is how my brinding looks: enter image description here

I also tried to convert the objecttive-C example to seift, but this is not working as you can see. enter image description here I am not sure if this is because the module is not exposed/imported correctly, or simply if the swift conversion is wrong. but both bridge and RNCAsyncStorage is unresolved.

How to write React Native support layer in my iOS SDK [closed]

$
0
0

I am trying to support my iOS native SDK for React Native APP for that I created Sample React Native APP that has my native SDK in it and wrote React Native APIs. Everything working fine.

What I am trying now is to add a react native layer in my iOS SDK it self to support React Native so that If some React native app uses my SDK they cal APIs directly with out they adding any layers for it.

i am not show Component code in react-native text component

$
0
0

I can't show Component code in react-native text component

I have created button component for my app.Here is my code

>     <TouchableOpacity>
>      <Text>Button</Text>
>     </TouchableOpacity>

how to show this code in Text?

Please Help me for this issue.

Thread 1: signal SIGABRT error running on XCode 11.2.1

$
0
0

The project(react-native) was running fine on XCode 10.2, and to test it on iOS 13, i tried opening the project with XCode 11.2.1 and the app crashes at startup and the error from the XCode 11.2.1 console is below:

Assertion failure in -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3900.12.16/UIApplication.m:5316
2019-12-10 14:26:37.206842+0530 workish[73259:574909] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
*** First throw call stack:

React Native: How to select the next TextInput after pressing the "next" keyboard button?

$
0
0

I defined two TextInput fields as follows:

<TextInput 
   style = {styles.titleInput}
   returnKeyType = {"next"}
   autoFocus = {true}
   placeholder = "Title" />
<TextInput
   style = {styles.descriptionInput}          
   multiline = {true}
   maxLength = {200}
   placeholder = "Description" />

But after pressing the "next" button on my keyboard, my react-native app isn't jumping to the second TextInput field. How can I achieve that?

Thanks!

React native - build aplication

$
0
0

I downloaded the react app via npx react-native init AwesomeProject. The application ran for the first time. After stopping through the terminal, the build application pauses and thus see the screen is a few minutes and does not continue. For Android everything is OK. This "mistake" is just for ios.

Anyone have any idea? Thank you

screen shot

How to change the "Bundle Identifier" within React Native?

$
0
0

Starting a new react-native project, the xcode-project gots the bundle-identifier "org.reactjs.native.example.XYZApp". XYZ is the placeholder here for my real project name.

Is there any way to change this bundle identifier on react-native side? Sure, I can change it in XCode. But this is not safe because it can be overriden when react-native will recreate the xcode-project, which could happen at any time, as well es when rebuilding the project.

React native fs unable to upload file to API

$
0
0

When i try to upload the file from "react-native-fs" uploadFiles. File not uploading. But file is present in RNFS.DocumentDirectoryPath

enter image description here

var files = [{name: "CCM_Errorlog",filename: "CCM_Errorlog_" + now + "_" + driverIdNew + ".txt",filepath: RNFS.DocumentDirectoryPath + "/CCM_Errorlog_Copy.txt"}];

RNFS.uploadFiles({
        toUrl: uploadUrl,
        binaryStreamOnly:true,
        files: files,
        method: "POST",
        headers: {
          Accept: "application/json",
        },
        begin: uploadBegin,
        progress: uploadProgress
      })
        .promise.then(response => {
          console.log("Response_up:"+ JSON.stringify(response));
          if (response.statusCode == 200) {
            console.log("FILES UPLOADED!:" + JSON.stringify(response)); // response.statusCode, response.headers, response.body
            alert(JSON.stringify(response));
          } else {
            alert(JSON.stringify(response));
            console.log(response);
            console.log(RNFS.DocumentDirectoryPath);
          }
        })
        .catch(err => {
          if (err.description === "cancelled") {
            // cancelled by user
            console.log("Uploading Canceleed by User");
          }
          alert("uploadFile Error" + err);
        });

React-native - iOS device crashes "undefined is not an object (evaluating 's.Manager')"

$
0
0

The app runs fine on the emulator and all Android devices. When I try to run on an iOS device the app opens and then crashes almost instantly. I can't seem to locate the issue as s.Manager is not mentioned anywhere in my code.

What I have done:

  • Deleted node_modules, updated some, reinstalled
  • Deleted pod files, updated pods, reinstalled

Error logs:

2019-12-04 17:11:40.958445+0100 mid[9239:4992389] undefined is not an object (evaluating 's.Manager')
2019-12-04 17:11:40.964 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating 's.Manager')
2019-12-04 17:11:40.963688+0100 app[9239:4992383] Unhandled JS Exception: undefined is not an object (evaluating 's.Manager')
2019-12-04 17:11:40.964 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
2019-12-04 17:11:40.964345+0100 app[9239:4992389] Module AppRegistry is not a registered callable module (calling runApplication)
2019-12-04 17:11:41.179884+0100 mid[9239:4992383] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: undefined is not an object (evaluating 's.Manager')', reason: 'Unhandled JS Exception: undefined is not an object (evaluating 's.Manager'), stack:
u@80:391
<unknown>@80:1029
forEach@<null>:<null>
<unknown>@80:1015
h@2:1670
<unknown>@79:49
h@2:1670
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23baa1ee __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff50864b20 objc_exception_throw + 48
    2   app                                 0x000000010202490b RCTFormatError + 0
    3   app                                 0x0000000102046bbc -[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 495
    4   CoreFoundation                      0x00007fff23bb138c __invoking___ + 140
    5   CoreFoundation                      0x00007fff23bae49f -[NSInvocation invoke] + 319
    6   CoreFoundation                      0x00007fff23bae9a4 -[NSInvocation invokeWithTarget:] + 68
    7   app                                 0x0000000102058a20 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 578
    8   app                                 0x000000010205acce _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 246
    9   app                                 0x000000010205aa56 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 78
    10  libdispatch.dylib                   0x00007fff516ac810 _dispatch_call_block_and_release + 12
    11  libdispatch.dylib                   0x00007fff516ad781 _dispatch_client_callout + 8
    12  libdispatch.dylib                   0x00007fff516b34ee _dispatch_lane_serial_drain + 707
    13  libdispatch.dylib                   0x00007fff516b3f24 _dispatch_lane_invoke + 388
    14  libdispatch.dylib                   0x00007fff516bdffc _dispatch_workloop_worker_thread + 626
    15  libsystem_pthread.dylib             0x00007fff518cd611 _pthread_wqthread + 421
    16  libsystem_pthread.dylib             0x00007fff518cd3fd start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException

dependencies

"@react-native-community/async-storage": "^1.6.1",
    "@react-native-community/netinfo": "^4.2.1",
    "@sentry/react-native": "^1.1.0",
    "axios": "^0.18.0",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "base-64": "^0.1.0",
    "base64-js": "^1.3.0",
    "crypto-js": "^3.1.9-1",
    "jwt-decode": "^2.2.0",
    "lodash": "^4.17.11",
    "lottie-ios": "^3.0.3",
    "lottie-react-native": "^3.1.0",
    "metro-config": "^0.55.0",
    "moment": "^2.23.0",
    "prop-types": "^15.6.2",
    "react": "16.6.3",
    "react-devtools-core": "^3.4.3",
    "react-native": "^0.60.4",
    "react-native-action-sheet-component": "MY_PACKAGE",
    "react-native-animatable": "^1.3.0",
    "react-native-auth0": "^1.5.0",
    "react-native-camera": "^2.11.2",
    "react-native-collapsible": "^1.4.0",
    "react-native-config": "^0.11.7",
    "react-native-datepicker": "^1.7.2",
    "react-native-deep-link": "^0.2.3",
    "react-native-device-info": "^3.0.0",
    "react-native-easy-toast": "^1.2.0",
    "react-native-elements": "^1.2.7",
    "react-native-fabric": "0.5.2",
    "react-native-firebase": "^5.5.5",
    "react-native-flags": "MY_PACKAGE",
    "react-native-fs": "2.15.2",
    "react-native-geolocation-service": "^3.1.0",
    "react-native-gesture-handler": "^1.5.2",
    "react-native-image-crop-picker": "^0.25.0",
    "react-native-image-resizer": "^1.0.1",
    "react-native-image-zoom-viewer": "MY_PACKAGE",
    "react-native-indicators": "^0.13.0",
    "react-native-keyboard-aware-scroll-view": "^0.8.0",
    "react-native-keychain": "^3.1.3",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-material-menu": "^0.6.6",
    "react-native-modal-filter-picker": "^1.3.4",
    "react-native-permissions": "^2.0.4",
    "react-native-phone-input": "MY_PACKAGE",
    "react-native-picker-select": "^5.2.0",
    "react-native-pincode": "MY_PACKAGE",
    "react-native-progress": "^3.5.0",
    "react-native-shadow": "^1.2.2",
    "react-native-splash-screen": "^3.1.1",
    "react-native-svg": "^9.13.3",
    "react-native-svg-transformer": "^0.12.1",
    "react-native-touch-id": "^4.4.1",
    "react-native-vector-icons": "^6.6.0",
    "react-navigation": "^4.0.10",
    "react-navigation-drawer": "^1.4.0",
    "react-navigation-stack": "^1.10.2",
    "react-navigation-tabs": "^1.2.0",
    "react-redux": "^6.0.0",
    "recompose": "^0.30.0",
    "redux": "^4.0.1",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0",
    "redux-promise-middleware": "^5.1.1",
    "redux-thunk": "^2.3.0",
    "rn-fetch-blob": "^0.10.16",
    "styled-components": "^4.1.3",
    "uuid": "^3.3.2",
    "validator": "^10.9.0"

Help would be greatly appreciated!

FBSDK: Cannot read property loginwithreadpermissions of undefined

$
0
0

I'm setting up a React Native project using the FBSDK for login purpose.

Here's what I've done so far:

  1. I ran npm install react-native-fbsdk --save
  2. I ran react-native link
  3. I followed each step mentioned there: https://developers.facebook.com/docs/facebook-login/ios/
  4. I double checked using this video: https://www.youtube.com/watch?v=rAXVKapP5cM

However, I still get this red screen error:

Cannot read property logInWithReadPermissions of undefined at FBLoginManager.js, line 77 (https://github.com/facebook/react-native-fbsdk/blob/master/js/FBLoginManager.js)

Here's my AppDelegate.m content:

#import "AppDelegate.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  NSURL *jsCodeLocation;

  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                      moduleName:@"PegaseBuzzApp"
                                               initialProperties:nil
                                                   launchOptions:launchOptions];
  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  [[FBSDKApplicationDelegate sharedInstance] application:application
                           didFinishLaunchingWithOptions:launchOptions];


  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  return YES;
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
  [FBSDKAppEvents activateApp];
}


- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation {
  return [[FBSDKApplicationDelegate sharedInstance] application:application
                                                        openURL:url
                                              sourceApplication:sourceApplication
                                                     annotation:annotation];
}
@end

Here's my linked frameworks and binaries:

enter image description here

EDIT: on my project:

const FBSDK = require('react-native-fbsdk');
const {
  LoginManager,
} = FBSDK;

Plus:

_onFBButtonPress () {
    LoginManager.logInWithReadPermissions(['public_profile']).then(
      function(result) {
        if (result.isCancelled) {
          alert('Login cancelled');
        } else {
          alert('Login success with permissions: '
            +result.grantedPermissions.toString());
        }
      },
      function(error) {
        alert('Login fail with error: ' + error);
      }
    );
  }

And:

<Button onPress={() => this._onFBButtonPress()} buttonStyle={'buttonFb'} labelStyle={'buttonFbText'} label={I18n.t('Login.btnConnectFB')}></Button>

What do I miss?

React Native states not updating value after changing value

$
0
0

I am new to React-Native and its states, here I am stuck with a problem (using dummy data but my problem is same) all I want to achieve is get the latest JSONARRAY fetched from the state, based on button clicks when I click on button one it should only return [{"one":"oneKey"},{"key":"mutatedFruit"}] and similar approach for other buttons as well any help is appreciated I have attached my

expo snack code here


How to add border radius on the App main view?

$
0
0

How can I add a border radius on the main view that surround the AppContainer like Snapchat ?

Snapchat has it in all its app

I tried to put a 'border-radius: 20' on the view that surround the AppContainer but it doesn't work.

Snapchat border radius

Submitting Apple iOS app with previously used template

$
0
0

I've created an app specific to a certain business model and now I am helping a select group of other business teams by essentially using the same app template but with their info and content as they desire. Will Apple reject this? Everything I have seen so far from Apple is very vague.

"Repeated submission of similar apps Submitting several apps that are essentially the same ties up the App Review process and risks the rejection of your apps. Improve your review experience — and the experience of your future users — by thoughtfully combining your apps into one."

If anyone has more insight into this, please let me know! Thanks!

How to add React Native support layer inside my iOS Native SDK

$
0
0

What I am trying is to add a react native layer inside my iOS SDK it self to support React Native so that If some React native app uses my SDK they cal APIs directly with out they adding any layers for it.

How to make the Alert / Modal / Dialog service appear when the application is closed react native?

$
0
0

I have a problem, here I made two applications say, seller and buyer. When the buyer pays with the hit API / Socket IO the Seller application displays a popup. These Pop-Up are like phone calls or video calls.

#

React Native - sometimes app freezes when opened from background

$
0
0

Recently I noticed some strange bug in my IOS app (on Android I did not see that problem so far).

When the release mode is installed on my real device (the same problem happens even with production app from App Store), and when the app is opened from a background where it was for example 1,2 hours - my app freezes for several seconds (I can scroll my lists but Touchables are not working). Sometimes it freezes 5sec, sometimes 10sec... The freeze time is not constant.

For navigation, I use React Native Navigation. First of all, I thought that it can be a navigation problem - but I can navigate through tabs. So I can navigate through tabs, can scroll FlatLists in the tabs, but the list items are not Touchable - I can click them but onPress is not called. And after several sec when the freeze is over - my app does all pending navigations. Namely it opens all screens which were tapped while the app was frozen...

Who had such kind of problem? And how can I solve this? Please help, I am stuck here a couple of days :(

React-Native: 0.59.10; React: 16.8.3;

Thanks in advance

Viewing all 16564 articles
Browse latest View live