如何解决React Native Pressable 可在滚动时取消
我在 pressable 中有 WebView。当我在 WebView 中执行 OnScroll 时,我希望不要取消按下。我添加了道具可取消={false}。
class Solution {
public:
bool isValidSudoku(vector<vector<char>> &board) {
for (int row = 0; row < 9; row += 3) {
for (int col = 0; col < 9; col += 3) {
for (int i = 0 + row; i < 3; i++) {
for (int j = 0 + col; j < 3; j++) {
for (int k = 0 + row + 1; k < 3; k++) {
for (int kk = 0 + col; kk < 3; k++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
for (int k = 0 + row; k < 3; k++) {
for (int kk = 0 + col + 1; kk < 3; kk++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
}
}
}
}
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
for (int k = i; k < 9; k++) {
for (int kk = j + 1; kk < 9; kk++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
}
}
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
for (int k = i + 1; k < 9; k++) {
for (int kk = j; kk < 9; kk++) {
if (board[i][j] == board[k][kk] && board[i][j] != '.' && board[k][kk] != '.')
return false;
}
}
}
}
return true;
}
};
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。