This file contains hidden or 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
| import Foundation | |
| import Combine | |
| public enum WebSocketError: Swift.Error { | |
| case alreadyConnectedOrConnecting | |
| case notConnected | |
| case cannotParseMessage(String) | |
| } | |
| public extension WebSocket { |
This file contains hidden or 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
| import useThemedStyles, { createThemedStyleSheet } from "./useThemedStyles" | |
| export default function Component() { | |
| const [styles, colorScheme] = useThemedStyles(stylesheet) | |
| // ... | |
| } | |
| const stylesheet = createThemedStyleSheet((theme) => ({ | |
| container: { | |
| backgroundColor: theme.colors.background |
OlderNewer