Closed gjpsiqueira closed 3 years ago
You sure this has to do with us? All the logs are pointing to Flipper
Hi, andersonaddo!
That's happens after to update the React Native Firebase to version 10.08
.
I disable the Flipper
commenting the lines on the Podfile
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
# use_flipper!
# post_install do |installer|
# flipper_post_install(installer)
# end
It worked! It will be there's some relation with React Native Firebase ?
There is no relation between Flipper and react-native-firebase, this is a flipper problem of some sort for you. What is it? Really hard to say, it's not our module. You might try npx react-native-clean-project
to make sure you are building fresh?
Issue
Hey people! I'm trying to use the latest version from React Native Firebase to use the
firebase.auth().useEmulator(url: string)
. However my app not run IOS Simulator. I updated all packages and then update pods withcd ios && pod install --repo-update
, but not working. When I runnpx react-native run-ios
, the following outputsProject Files
Javascript
Click To Expand
#### `package.json`: ```json { "name": "app", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@react-native-community/checkbox": "^0.5.5", "@react-native-community/cli-debugger-ui": "4.7.0", "@react-native-community/datetimepicker": "^3.0.6", "@react-native-community/masked-view": "^0.1.10", "@react-native-firebase/app": "^10.8.0", "@react-native-firebase/auth": "^10.8.0", "@react-native-firebase/database": "^10.8.0", "@react-native-firebase/firestore": "^10.8.0", "@react-native-picker/picker": "^1.9.10", "@react-navigation/bottom-tabs": "^5.11.2", "@react-navigation/drawer": "^5.10.4", "@react-navigation/material-bottom-tabs": "^5.3.10", "@react-navigation/native": "^5.7.6", "@react-navigation/stack": "^5.9.3", "axios": "^0.20.0", "cep-promise": "^4.0.2", "formik": "^2.2.1", "moment": "^2.29.1", "prop-types": "^15.7.2", "react": "16.13.1", "react-native": "0.63.3", "react-native-awesome-alerts": "^1.4.2", "react-native-device-screen-switcher": "^0.2.0", "react-native-elements": "^3.2.0", "react-native-gesture-handler": "^1.8.0", "react-native-get-random-values": "^1.5.0", "react-native-image-picker": "^2.3.4", "react-native-keyboard-aware-scroll-view": "^0.9.3", "react-native-masked-text": "^1.13.0", "react-native-modal-datetime-picker": "^9.1.0", "react-native-numeric-input": "^1.8.3", "react-native-paper": "^4.4.1", "react-native-picker-select": "^8.0.4", "react-native-reanimated": "^1.13.1", "react-native-safe-area-context": "^3.1.8", "react-native-screens": "^2.11.0", "react-native-snap-carousel": "^3.9.1", "react-native-svg": "^12.1.0", "react-native-vector-icons": "^7.1.0", "react-redux": "^7.2.1", "redux": "^4.0.5", "redux-logger": "^3.0.6", "redux-thunk": "^2.3.0", "uuid": "^8.3.2", "yup": "^0.29.3" }, "devDependencies": { "@babel/core": "^7.12.3", "@babel/runtime": "^7.12.1", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.5.2", "eslint": "^7.11.0", "jest": "^26.5.3", "metro-react-native-babel-preset": "^0.63.0", "react-native-svg-transformer": "^0.14.3", "react-test-renderer": "16.13.1" }, "jest": { "preset": "react-native" } } ``` #### `firebase.json` for react-native-firebase v6: ```json { "emulators": { "auth": { "port": 9099 }, "functions": { "port": 5001 }, "firestore": { "port": 8080 }, "database": { "port": 9000 }, "ui": { "enabled": true } } } ```
iOS
Click To Expand
#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '10.0' target 'app' do config = use_native_modules! use_react_native!(:path => config["reactNativePath"]) target 'appTests' do inherit! :complete # Pods for testing end # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable these next few lines. use_flipper! post_install do |installer| flipper_post_install(installer) end end target 'app-tvOS' do # Pods for app-tvOS target 'app-tvOSTests' do inherit! :search_paths # Pods for testing end end ``` #### `AppDelegate.m`: ```objc #import
#import "AppDelegate.h"
#import
#import
#import
#ifdef FB_SONARKIT_ENABLED
#import
#import
#import
#import
#import
#import
static void InitializeFlipper(UIApplication *application) {
FlipperClient *client = [FlipperClient sharedClient];
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client addPlugin:[FlipperKitReactPlugin new]];
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
[client start];
}
#endif
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if([FIRApp defaultApp] == nil) {
[FIRApp configure];
}
#ifdef FB_SONARKIT_ENABLED
InitializeFlipper(application);
#endif
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"app"
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];
return YES;
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
@end
```
Android
Click To Expand
#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `MainApplication.java`: ```java // N/A ``` #### `AndroidManifest.xml`: ```xml ```
Environment
Click To Expand
**`react-native info` output:** ``` $ react-native info info Fetching system and libraries information... System: OS: macOS 10.15.7 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Memory: 60.46 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.18.3 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.6 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 28, 29 Build Tools: 28.0.3, 29.0.2, 30.0.2 System Images: android-28 | Google Play Intel x86 Atom, android-29 | Intel x86 Atom, android-29 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 11.7/11E801a - /usr/bin/xcodebuild Languages: Java: 1.8.0_222 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.3 => 0.63.3 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found ``` - **Platform that you're experiencing the issue on**: - [x] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `10.8.0` - **`Firebase` module(s) you're using that has the issue:** - `N/A` - **Are you using `TypeScript`?** - `N` & `VERSION`
React Native Firebase
andInvertase
on Twitter for updates on the library.