我已经删除了node_modules并重新运行npm install。之后我得到了这个错误:
\n\nError while updating property \'fontSize\' in shadow node of type: RCTText\nValue for fontSize cannot be cast from String to Double\n
Run Code Online (Sandbox Code Playgroud)\n\n我将 fontSize:\'20\' 形式的所有 fontSize 更改为 fontSize:20 但错误再次显示。现在我删除了所有文件中的 fontSize 属性,并且再次存在错误。\n这是我的 package.json 内容:
\n\n{\n"name": "myApp",\n "version": "0.0.1",\n "private": true,\n "scripts": {\n "start": "node node_modules/react-native/local-cli/cli.js start",\n "test": "jest"\n },\n "dependencies": {\n "jetifier": "^1.6.4",\n "native-base": "^2.13.8",\n "prop-types": "^15.7.2",\n "react": "16.8.3",\n "react-native": "0.59.8",\n "react-native-dialog": "^5.6.0",\n "react-native-gesture-handler": "^1.5.0",\n "react-native-ionicons": "^4.6.3",\n "react-native-material-dropdown": "^0.11.1",\n "react-native-responsive-screen": "^1.3.0",\n "react-native-slideshow": "^1.0.1",\n "react-navigation": "^3.13.0"\n },\n "devDependencies": {\n …
Run Code Online (Sandbox Code Playgroud) 我在我的 React Native 应用程序中使用 React-Query 进行 api 调用。后端是基于graphql的。对于查询和突变请求没有问题。我只是使用 useMutation 和 useQuery 来获取数据。我的问题是我应该通知用户来自 graphql 订阅的新通知。而且我不知道如何将它与反应查询一起使用。我在反应查询文档中找不到任何文档。谢谢你的帮助。
我想访问列表排列并将其作为参数传递给其他函数.
这是排列代码:
takeout(X,[X|R],R).
takeout(X,[F|R],[F|S]) :-
takeout(X,R,S),
write(S).
perm([X|Y],Z) :-
perm(Y,W),
takeout(X,Z,W).
perm([],[]).
Run Code Online (Sandbox Code Playgroud) prolog ×2
react-native ×2
arrays ×1
graphql ×1
list ×1
permutation ×1
prolog-dif ×1
react-query ×1