components APIs
- Header
- Button
- Layout
- Footer
- Text
- Box
- Card
- Table
- Loading
- Select
- Loader
- Toolbar
- Icon
- CodeInput
- BottomSheet
- InfoBlock
- LanguageToggle
- ProgressCircles
- Ripple
- Toggle
- Tag
- Input
- Paginator
- Filter
- AsyncSelect
- CatalogBigButton
- ReadMore
- ConditionalWrapper
- LastCheckedDisplay
- PriceLabel
- PageTitle
- CartTable
- CartFinalPriceTable
- LoadingSpin
- InfoModal
- ProductCard
- RecommendCoupon
- PriceVales
- NomalLayout
- Web3ReactManager
- Popups
- CurrencyInput
- TransactionErrorContent
- TransactionConfirmationModal
- ConfirmationModalContent
- DoubleCurrencyLogo
- CustomModal
- CurrencySearchModal
- CurrencyLogo
- NumericalInput
- Logo
- QuestionHelper
- ListLogo
- DataTable
- WalletModal
- CustomTable
- MinimalPositionCard
- RemoveLiquidityModal
- CustomTooltip
- ColoredSlider
- ToggleSwitch
- FormattedPriceImpact
- SettingsModal
- ConfirmSwapModal
- AdvancedSwapDetails
- AddressInput
- LineChart
- StakeSyrupModal
- AccountDetails
- BetaWarningBanner
- AreaChart
- ChartType
- TokensTable
- PairTable
- TopMovers
- BarChart
- TransactionsTable
- StakeQuickModal
- UnstakeQuickModal
- SyrupCard
- CustomMenu
- SearchInput
- CustomSwitch
- FarmCard
- BuyFiatModal
- MoonpayModal
- RewardSlider
- Swap
- AddLiquidity
- PoolFinderModal
- PoolPositionCard
- SwapTokenDetails
- SuperHeader
- GlobalStyles
- PrimaryButton
- SectionTitle
- Section
- AccentSection
- ChainSelection
- CoinSelection
- AddressSelection
- SendAction
- Buttons
- Content
- Particles
- IconButton
- NotSupported
- InputSearch
- RouteGuard
- SearchBar
- FileInput
- GovBanner
- AuthForm
- DomainDetails
- Subnav
- ColumnFilter
- ImportExport
- selectFilter
- TaggedArrayInput
- FacetFilter
- ButtonSingleLine
- TextMultiline
- ButtonSelect
- BottomSheetBehavior
- InfoButton
- BulletPointX
- BulletPointCheck
- Title
- LoadingIcon
- SelectFilterControls
- CORInputForm
- SdnInputForm
- Navbar
- HomeRoute
- AuthRoute
- DocumentDetails
- DocumentStepper
- AddGame
- Auth
- Effectiveness
- Export
- PokemonType
- Moves
- Member
- MoveSelector
- Type
- Natures
- Move
- PokeInfo
- Share
- Badges
- Status
- UpdateSW
- About
- Builder
- Calculator
- Changelog
- Import
- Pokestats
- Report
- Rules
- Settings
- Tracker
- DarkThemeProvider
- NotificationHandler
- Background
- Indicator
- StyledButton
- StyledText
- Illustration
- OnboardingSlider
- FlexList
- AppLayout
- ScrollableList
- Visualization
- DataSearch
- Region
- App
- CompareApiLegend
- CompareApiBreadcrumbs
- CompareApiLink
- CompareApiCard
- ExploreApiBreadcrumbs
- ExploreApiLink
- ExploreApiSearch
- ExploreApiConst
- ApiLoader
- RefreshButton
- Listing
- PriceModal
- ConfirmationModal
- Transition
- AutoComplete
- useInput
- Avatar
- Badge
- Breadcrumbs
- ButtonDropdown
- ButtonGroup
- Capacity
- Checkbox
- Code
- Collapse
- CssBaseline
- GeistProvider
- Description
- Display
- Divider
- Dot
- Drawer
- useModal
- Fieldset
- Grid
- Image
- Keyboard
- Link
- Modal
- Note
- Page
- Pagination
- Popover
- Progress
- Radio
- Rating
- Slider
- Snippet
- Spacer
- Spinner
- Tabs
- Textarea
- Tooltip
- Tree
- useBodyScroll
- useClasses
- useClickAway
- useClipboard
- useCurrentState
- useKeyboard
- KeyMod
- KeyCode
- useMediaQuery
- useTabs
- useToasts
- User
- useTheme
- Themes
- GeistUIThemes
- useAllThemes
- CollapsableDialog
- Map
- IPForm
- IPMenu
- Container
- Parallax
- Nav
- SEO
- BlogNav
- ExtensionCard
- MenuComp
Other Related APIs
- react#useCallback
- react-native#View
- react-native#Platform
- react-native#TouchableOpacity
- react-native#StyleSheet
- react-native#Linking
- @react-navigation/native#useNavigation
- react-native-gesture-handler#ScrollView
- react-native-safe-area-context#SafeAreaView
- react-native-reanimated#sub
- react-native-reanimated#abs
- components#Box
- components#Icon
- components#InfoBlock
- components#BottomSheetBehavior
components#InfoButton TypeScript Examples
The following examples show how to use
components#InfoButton.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OverlayView.tsx From mobile with Apache License 2.0 | 6 votes |
SystemStatusOff = ({i18n}: {i18n: I18n}) => {
const startExposureNotificationService = useStartExposureNotificationService();
const onPress = () => {
if (Platform.OS === 'android') {
startExposureNotificationService();
return;
}
return toSettings();
};
const toSettings = useCallback(() => {
Linking.openSettings();
}, []);
return (
<InfoButton
title={i18n.translate('OverlayOpen.ExposureNotificationCardAction')}
text={i18n.translate('OverlayOpen.ExposureNotificationCardBody')}
color="danger25Background"
variant="danger50Flat"
internalLink
onPress={onPress}
/>
);
}
Example #2
Source File: OverlayView.tsx From mobile with Apache License 2.0 | 6 votes |
SystemStatusUnauthorized = ({i18n}: {i18n: I18n}) => {
const startExposureNotificationService = useStartExposureNotificationService();
const onPress = () => {
if (Platform.OS === 'android') {
startExposureNotificationService();
return;
}
return toSettings();
};
const toSettings = useCallback(() => {
Linking.openSettings();
}, []);
return (
<InfoButton
title={i18n.translate('OverlayOpen.EnUnauthorizedCardAction')}
text={i18n.translate('OverlayOpen.EnUnauthorizedCardBody')}
color="danger25Background"
variant="danger50Flat"
internalLink
onPress={onPress}
/>
);
}
Example #3
Source File: OverlayView.tsx From mobile with Apache License 2.0 | 6 votes |
NotificationStatusOff = ({action, i18n}: {action: () => void; i18n: I18n}) => {
return (
<InfoButton
title={i18n.translate('OverlayOpen.NotificationCardStatus')}
color="danger25Background"
internalLink
text={i18n.translate('OverlayOpen.NotificationCardBody')}
onPress={action}
variant="danger50Flat"
/>
);
/*
return (
<InfoBlock
icon="icon-notifications"
title={i18n.translate('OverlayOpen.NotificationCardStatus')}
titleBolded={i18n.translate('OverlayOpen.NotificationCardStatusOff')}
text={i18n.translate('OverlayOpen.NotificationCardBody')}
button={{text: i18n.translate('OverlayOpen.NotificationCardAction'), action}}
backgroundColor="infoBlockNeutralBackground"
color="overlayBodyText"
/>
);
*/
}