diff --git a/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf b/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf new file mode 100644 index 0000000..fc567cd Binary files /dev/null and b/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf differ diff --git a/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf b/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf new file mode 100644 index 0000000..d1ac9ba Binary files /dev/null and b/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf differ diff --git a/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf b/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf new file mode 100644 index 0000000..f33e816 Binary files /dev/null and b/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf differ diff --git a/clip/ClipElement.tsx b/clip/ClipElement.tsx new file mode 100644 index 0000000..54ca94b --- /dev/null +++ b/clip/ClipElement.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import { View, Text, Clipboard } from 'react-native'; +import IconVector from 'react-native-vector-icons/FontAwesome5'; +import Toast from 'react-native-simple-toast'; + +export default class ClipElement extends React.Component { + + constructor(props: any) { + super(props); + } + + onCopy() { + Clipboard.setString(this.props.title); + Toast.show('Put "' + this.props.title + '" in clipboard', Toast.SHORT); + } + + render(): JSX.Element { + return + {this.props.title} + this.onCopy()} /> + ; + } +} \ No newline at end of file diff --git a/clip/ClipList.tsx b/clip/ClipList.tsx new file mode 100644 index 0000000..257e975 --- /dev/null +++ b/clip/ClipList.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import { ScrollView } from 'react-native'; +import ClipElement from './ClipElement'; + +export default class ClipList extends React.Component { + + constructor(props: any) { + super(props); + } + + createClipElement(title: string): JSX.Element { + return ; + } + + render(): JSX.Element { + return + {this.props.clips.map((entry: any) => this.createClipElement(entry.title))} + ; + } +} \ No newline at end of file diff --git a/package.json b/package.json index 1f7a3e9..b6ff354 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "expo": "^48.0.9", "expo-cli": "^6.3.2", "react": "18.2.0", - "react-native": "0.71.4" + "react-native": "0.71.4", + "react-native-simple-toast": "^2.0.0", + "react-native-vector-icons": "^9.2.0" }, "devDependencies": { "@babel/core": "^7.20.0", @@ -24,6 +26,7 @@ "@tsconfig/react-native": "^2.0.2", "@types/jest": "^29.2.1", "@types/react": "^18.0.24", + "@types/react-native-vector-icons": "^6.4.13", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0",