import React from 'react';
import { Heading, Link, View, Text, Box } from '@native-base/v3';
export const DefaultLink = () => {
return (
This is default Link
Default Link
);
};
export const ExternalLink = () => {
return (
External Link
https://nativebase.io
);
};
export const StyledLink = () => {
return (
Link without underline
www.google.com
);
};
export const CustomOnClick = () => {
const [state, setState] = React.useState(false);
const toggleState = () => {
setState(!state);
};
return (
Custom onClick Functionality
Click here to toggle the color of box.
);
};
export const CompositeLink = () => {
return (
Composite Link Example
Box
Clicking anywhere will trigger the link
Box
);
};