我正在学习 Laravel。但运行命令后composer update它向我显示此错误。
我已经这样做了 ->apt-get install php7.4-xml并且apt-get install php-xml
我只是想知道应该将哪一行添加到文件 php.ini 中以启用 PHP 的 xml 扩展。提前致谢。
php--version
PHP 7.4.22 (cli) (built: Jul 30 2021 13:08:17) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.22, Copyright (c), by Zend Technologies
Run Code Online (Sandbox Code Playgroud)
的结果composer udpate
aman@aman-HP-Notebook:~/AMAN/learnLaravel$ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set …Run Code Online (Sandbox Code Playgroud) ThemeProvider从react-native-elements不允许儿童。
这是代码:
const Root = () => {
const {theme, isNewUser} = Settings.useContainer();
const darkMode = useMemo(() => theme === 'dark', [theme]);
return (
<ThemeProvider theme={darkMode ? darkTheme : lightTheme} useDark={darkMode}>
{isNewUser ? <OnboardingStack /> : <BottomTab />}
</ThemeProvider>
);
};
Run Code Online (Sandbox Code Playgroud)
ThemeProvider 有红色下划线,悬停时显示
Type '{ children: Element; theme: RCTheme; useDark: boolean; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ThemeProvider> & Pick<Readonly<ThemeProviderProps>, never> & InexactPartial<...> & InexactPartial<...>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ThemeProvider> …Run Code Online (Sandbox Code Playgroud)