小编sam*_*pta的帖子

GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' 文件 > 未找到

将 react-native-firebase 迁移到@react-native-firebase 之后

出现错误

/Users/samridhgupta/Work/Development/TCD/classroom-door-react-native/ios/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler.h:19:9: 'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' 文件不是成立

存档

Pods > GoogleUtilities > AppDelegateSwizzler

#import "GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h"
Run Code Online (Sandbox Code Playgroud)

PodLock 文件有这些包 (GoogleUtilities/AppDelegateSwizzler)

尝试通过删除 Podlock 文件然后运行 ​​Pod install 来重置 Pod。另外还尝试删除 DerivedData 问题仍然是挂锁文件中的 Gist

     - Firebase/Core (6.27.1):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.6.2)
  - Firebase/CoreOnly (6.27.1):
    - FirebaseCore (= 6.8.1)
  - Firebase/Database (6.27.1):
    - Firebase/CoreOnly
    - FirebaseDatabase (~> 6.3.0)
  - Firebase/Firestore (6.27.1):
    - Firebase/CoreOnly
    - FirebaseFirestore (~> 1.16.0)
  - Firebase/Functions (6.27.1):
    - Firebase/CoreOnly
    - FirebaseFunctions (~> 2.6.0)
  - Firebase/Messaging (6.27.1):
    - Firebase/CoreOnly
    - FirebaseMessaging …
Run Code Online (Sandbox Code Playgroud)

ios firebase react-native firebase-authentication

11
推荐指数
2
解决办法
3245
查看次数

groovy.lang.MissingPropertyException:无法获得未知属性“manifestOutputFile”

将我的应用程序从 RN 0.42 升级到 RN 0.59.10 后,出现了这个问题,无法构建我的项目。

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> groovy.lang.MissingPropertyException: Could not get unknown property 'manifestOutputFile' for task ':app:processDebugManifest' of type com.android.build.gradle.tasks.ProcessApplicationManifest.
Run Code Online (Sandbox Code Playgroud)

构建.gradle

  apply plugin: 'com.bugsnag.android.gradle'
apply plugin: "com.android.application"

import com.android.build.OutputFile

/**
 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
 * and bundleReleaseJsAndAssets).
 * These basically call `react-native bundle` with the correct arguments during the Android build
 * cycle. By …
Run Code Online (Sandbox Code Playgroud)

android gradle build.gradle react-native

8
推荐指数
1
解决办法
2万
查看次数

通知按钮点击不起作用

我为我的应用设置了通知,代码如下:

public int getNotification( View view) {

        NotificationManager notificationManager = (NotificationManager) getActivity().getSystemService(Context.NOTIFICATION_SERVICE);

        Intent intent = new Intent(getActivity() ,RouteMap.class );
        intent.putExtra("Stop Ride",true);
        PendingIntent pendingIntent = PendingIntent.getActivity(getActivity(), (int) System.currentTimeMillis(), intent, 0) ;

        if (Build.VERSION.SDK_INT < 16) {
            getToast("API below 16 ...notification not supported");

        } else {

            Notification notify = new Notification.Builder(getActivity())
                    .setSmallIcon(R.drawable.icon1)
                    .setContentTitle("Car Rental")
                    .setContentText("Click to view ")
                    .setOngoing(true)
                    .setContentIntent(pendingIntent)
                    .addAction(R.drawable.icon3,"View ",pendingIntent)
                    .addAction(R.drawable.alert_icon,"Stop Ride", pendingIntent )
                    .build();

            notificationManager.notify(notificationID, notify);

        }

        return notificationID;
    }

    public void removeNotification() {
        NotificationManager manager = (NotificationManager)getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
        manager.cancel( …
Run Code Online (Sandbox Code Playgroud)

notifications android

6
推荐指数
1
解决办法
1417
查看次数

使用 react-native-gesture-handler 将触摸事件传递给子视图

我正在使用这个React-Native-Gesture-Handler来处理我的手势用户在应用程序上所做的。

但是手势似乎没有按预期工作,或者某些功能似乎无法将手势事件传递给子视图

这里的传承

              <PanGestureHandler
            {...this.props}
            ref={this.panRef}
            onGestureEvent={this._onGestureEvent}
            onHandlerStateChange={this._onPanHandlerStateChange}>
            <Animated.View
                onLayout={this._onLayout}
                style={[this.props.style,
                this.props.windowSize,
                this.props.isFullScreen ? {} : {
                    transform: [
                        { translateX: this._translateX },
                        { translateY: this._translateY },
                    ],
               }]}>
                    <View style={styles.wrapper}>       ----> Child View
                        {this.props.children}
                    </View>
            </Animated.View>
        </PanGestureHandler>
Run Code Online (Sandbox Code Playgroud)

在这个例子中,整个视图被一个平移手势包裹着,这个平移手势用于在屏幕空间周围移动视图。

除了这个子视图之外,这里还将包含将具有一些平移手势实现的视图。如果此平移手势事件由于外部平移手势而被取消。

有没有办法正确获取内部子视图的平移手势事件?

我无法找到任何解决方案来将这些父手势事件传递给孩子并取消父手势操作。

如果您需要有关整个问题的更多信息......请询问。

gesture react-native react-native-android react-native-ios

5
推荐指数
0
解决办法
1064
查看次数