This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) Nicolas Gallagher. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
* @flow strict-local | |
*/ | |
type Groups = { [key: number]: Array<string> }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We can listen for events (e.g., 'press. or 'focuswithin') that are fired from responders, | |
// if they are allowed to bubble. | |
// | |
// context.dispatchEvent(eventObject, listener, eventPriority, bubbles) | |
// | |
// This allows us to prevent certain events from bubbling up the tree, e.g., 'focus', 'scroll'. | |
import React, {useRef, useState} from 'react'; | |
import {Pressable, Text, View} from 'react-ui'; | |
import {PressListener} from 'react-events/press'; |
OlderNewer