我遵循了Google login / Expo指南,并获得了访问令牌和刷新令牌。
但是在访问令牌到期后,我无法获得新令牌。
当我尝试获得新的时,出现此错误:
"error": "unauthorized_client", "error_description": "Unauthorized"
以下是用于获取新访问令牌的发送请求示例(Google 文档):
POST /oauth2/v4/token HTTP/1.1
Host: www.googleapis.com
Content-Type: application/x-www-form-urlencoded
client_id=<your_client_id>&
client_secret=<your_client_secret>&
refresh_token=<refresh_token>&
grant_type=refresh_token
Run Code Online (Sandbox Code Playgroud)
PS我没有忘记替换client_id等相关数据。
如何在FlatList中关闭SwipeRow?
这是ListView的简单方法,但由于下一个版本将使用FlatList,因此应该可以.
从阅读他们的源代码,它似乎还没有实现.
我有一个充满内容的页面。
有一个多边形,我想将其设置为整个页面的背景,颜色为 #E0E6E5。
polygon(0 0, 100% 35%, 100% 65%, 0% 100%)
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
我知道这听起来很简单。但是我无法使用剪辑路径来完成它,它基本上切断了页面的另一半并使页面不可见。静态图像不是一种选择。
我还缺少其他选项吗?