我使用react-native-fcm远程推送通知,但它给出了这个错误:
ld:找不到-lFirebaseCore clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)
荚:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'SefrTaSad' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for SefrTaSad
pod 'Firebase'
pod 'Firebase/Messaging'
end
Run Code Online (Sandbox Code Playgroud)
Podfile.lock:
PODS:
- Firebase (5.5.0):
- Firebase/Core (= 5.5.0)
- Firebase/Core (5.5.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 5.1.0)
- Firebase/CoreOnly (5.5.0):
- FirebaseCore (= 5.1.0)
- Firebase/Messaging (5.5.0): …Run Code Online (Sandbox Code Playgroud) 在我的项目中,我想将标题标签中的菜单、主标签中的内容和页脚标签文件中的联系人分开_document.js,为此我创建了一个新的门户,但document is not defined我的Header.js文件中出现错误。
我尝试在 nextjs 中创建新的门户,如下所示:
import React, { Fragment } from "react";
import ReactDOM from "react-dom";
import NavigationBar from "./NavigationBar";
import classes from "./header.module.css";
const Header = (props) => {
return (
<Fragment>
{ReactDOM.createPortal(
<NavigationBar>{props.children}</NavigationBar>,
document.getElementById("header")
)}
</Fragment>
);
};
export default Header;
Run Code Online (Sandbox Code Playgroud)
我创建了_document.js:
import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps }; …Run Code Online (Sandbox Code Playgroud) 我创建了一个空白项目whit expo init,然后我安装了react-navigation npm install @react-navigation/native,但是expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view当我运行该应用程序时,expo start我收到此错误:无法从C:\Android\test\App.js解析模块@react-navigation/stack:在项目中找不到@react-navigation/stack。
应用程序.js 文件:
import * as React from 'react';
import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
function HomeScreen() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Home Screen</Text>
</View>
);
}
const Stack = createStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} /> …Run Code Online (Sandbox Code Playgroud) 我有模板,在帖子中,我需要上传缩略图和横幅,它们是单独的图像,我的意思是横幅它看起来不像缩略图。我无法使用插件并且我不想这样做
add_theme_support('post-thumbnails');
add_theme_support('post-banner');
Run Code Online (Sandbox Code Playgroud)
我知道我输入的代码是错误的,重点是我不知道如何开始