|
| 1 | +import { useContext } from 'react'; |
| 2 | +import { StyleSheet, View } from 'react-native'; |
| 3 | + |
| 4 | +import { colors, darkColors, H3, P } from '~/common/styleguide'; |
| 5 | +import { Button } from '~/components/Button'; |
| 6 | +import ContentContainer from '~/components/ContentContainer'; |
| 7 | +import { GitHub } from '~/components/Icons'; |
| 8 | +import Navigation from '~/components/Navigation'; |
| 9 | +import PageMeta from '~/components/PageMeta'; |
| 10 | +import CustomAppearanceContext from '~/context/CustomAppearanceContext'; |
| 11 | + |
| 12 | +const Tools = () => { |
| 13 | + const { isDark } = useContext(CustomAppearanceContext); |
| 14 | + const textColorStyle = { |
| 15 | + color: isDark ? colors.gray2 : colors.black, |
| 16 | + }; |
| 17 | + |
| 18 | + const primaryButtonColorStyle = { |
| 19 | + backgroundColor: isDark ? darkColors.primaryDark : colors.primary, |
| 20 | + }; |
| 21 | + const buttonColorStyle = { |
| 22 | + backgroundColor: isDark ? darkColors.border : colors.gray3, |
| 23 | + color: isDark ? colors.white : colors.black, |
| 24 | + }; |
| 25 | + |
| 26 | + return ( |
| 27 | + <> |
| 28 | + <PageMeta |
| 29 | + title="Tools" |
| 30 | + description="List of development tools, apps and websites using React Native Directory data." |
| 31 | + path="tools" |
| 32 | + /> |
| 33 | + <Navigation |
| 34 | + title="Tools" |
| 35 | + description="List of development tools, apps and websites using React Native Directory data." |
| 36 | + /> |
| 37 | + <ContentContainer style={styles.container}> |
| 38 | + <H3 style={[styles.subHeader, textColorStyle]}>React Native Directory VS Code extension</H3> |
| 39 | + <P style={[styles.paragraph, textColorStyle]}> |
| 40 | + Browse through the React Native Directory and perform actions related to the chosen |
| 41 | + package inside the built-in editor Command Palette. |
| 42 | + </P> |
| 43 | + <View style={styles.buttonsContainer}> |
| 44 | + <Button |
| 45 | + openInNewTab |
| 46 | + href="https://github.com/react-native-community/vscode-react-native-directory" |
| 47 | + style={[styles.button, primaryButtonColorStyle]}> |
| 48 | + <GitHub width={16} /> <span>GitHub</span> |
| 49 | + </Button> |
| 50 | + <Button |
| 51 | + openInNewTab |
| 52 | + href="https://marketplace.visualstudio.com/items?itemName=react-native-directory.vscode-react-native-directory" |
| 53 | + style={[styles.button, buttonColorStyle]}> |
| 54 | + <span>Visual Studio Marketplace</span> |
| 55 | + </Button> |
| 56 | + <Button |
| 57 | + openInNewTab |
| 58 | + href="https://open-vsx.org/extension/react-native-directory/vscode-react-native-directory" |
| 59 | + style={[styles.button, buttonColorStyle]}> |
| 60 | + <span>Open VSX</span> |
| 61 | + </Button> |
| 62 | + </View> |
| 63 | + <H3 style={[styles.subHeader, textColorStyle]}>React Native Directory Raycast extension</H3> |
| 64 | + <P style={[styles.paragraph, textColorStyle]}> |
| 65 | + A searchable and filterable list of React Native libraries inside Raycast. |
| 66 | + </P> |
| 67 | + <View style={styles.buttonsContainer}> |
| 68 | + <Button |
| 69 | + openInNewTab |
| 70 | + href="https://github.com/raycast/extensions/tree/main/extensions/react-native-directory" |
| 71 | + style={[styles.button, primaryButtonColorStyle]}> |
| 72 | + <GitHub width={16} /> <span>GitHub</span> |
| 73 | + </Button> |
| 74 | + <Button |
| 75 | + openInNewTab |
| 76 | + href="https://www.raycast.com/shubh_porwal/react-native-directory" |
| 77 | + style={[styles.button, buttonColorStyle]}> |
| 78 | + <span>Raycast Store</span> |
| 79 | + </Button> |
| 80 | + </View> |
| 81 | + <H3 style={[styles.subHeader, textColorStyle]}>expo-doctor</H3> |
| 82 | + <P style={[styles.paragraph, textColorStyle]}> |
| 83 | + CLI to check your Expo project for known issues and used libraries compatibility. |
| 84 | + </P> |
| 85 | + <View style={styles.buttonsContainer}> |
| 86 | + <Button |
| 87 | + openInNewTab |
| 88 | + href="https://github.com/expo/expo/tree/main/packages/expo-doctor" |
| 89 | + style={[styles.button, primaryButtonColorStyle]}> |
| 90 | + <GitHub width={16} /> <span>GitHub</span> |
| 91 | + </Button> |
| 92 | + <Button |
| 93 | + openInNewTab |
| 94 | + href="https://www.npmjs.com/package/expo-doctor" |
| 95 | + style={[styles.button, buttonColorStyle]}> |
| 96 | + <span>npm Registry</span> |
| 97 | + </Button> |
| 98 | + </View> |
| 99 | + <H3 style={[styles.subHeader, textColorStyle]}>React Native Package Checker</H3> |
| 100 | + <P style={[styles.paragraph, textColorStyle]}> |
| 101 | + Analyze React Native packages for New Architecture compatibility, check multiple packages |
| 102 | + at once, get detailed insights, and export reports. |
| 103 | + </P> |
| 104 | + <View style={styles.buttonsContainer}> |
| 105 | + <Button |
| 106 | + openInNewTab |
| 107 | + href="https://github.com/sandipshiwakoti/react-native-package-checker" |
| 108 | + style={[styles.button, primaryButtonColorStyle]}> |
| 109 | + <GitHub width={16} /> <span>GitHub</span> |
| 110 | + </Button> |
| 111 | + <Button |
| 112 | + openInNewTab |
| 113 | + href="https://react-native-package-checker.vercel.app/" |
| 114 | + style={[styles.button, buttonColorStyle]}> |
| 115 | + <span>Website</span> |
| 116 | + </Button> |
| 117 | + </View>{' '} |
| 118 | + <H3 style={[styles.subHeader, textColorStyle]}> |
| 119 | + React Native Package Checker VS Code Extension |
| 120 | + </H3> |
| 121 | + <P style={[styles.paragraph, textColorStyle]}> |
| 122 | + Check New Architecture compatibility and version requirements for React Native packages |
| 123 | + inside VS Code. |
| 124 | + </P> |
| 125 | + <View style={styles.buttonsContainer}> |
| 126 | + <Button |
| 127 | + openInNewTab |
| 128 | + href="https://github.com/sandipshiwakoti/vscode-react-native-package-checker" |
| 129 | + style={[styles.button, primaryButtonColorStyle]}> |
| 130 | + <GitHub width={16} /> <span>GitHub</span> |
| 131 | + </Button> |
| 132 | + <Button |
| 133 | + openInNewTab |
| 134 | + href="https://marketplace.visualstudio.com/items?itemName=sandipshiwakoti.vscode-react-native-package-checker" |
| 135 | + style={[styles.button, buttonColorStyle]}> |
| 136 | + <span>Visual Studio Marketplace</span> |
| 137 | + </Button> |
| 138 | + <Button |
| 139 | + openInNewTab |
| 140 | + href="https://open-vsx.org/extension/sandipshiwakoti/vscode-react-native-package-checker" |
| 141 | + style={[styles.button, buttonColorStyle]}> |
| 142 | + <span>Open VSX</span> |
| 143 | + </Button> |
| 144 | + </View> |
| 145 | + <br /> |
| 146 | + <br /> |
| 147 | + </ContentContainer> |
| 148 | + </> |
| 149 | + ); |
| 150 | +}; |
| 151 | + |
| 152 | +const styles = StyleSheet.create({ |
| 153 | + container: { |
| 154 | + marginTop: 32, |
| 155 | + paddingHorizontal: 16, |
| 156 | + }, |
| 157 | + subHeader: { |
| 158 | + fontSize: 22, |
| 159 | + marginTop: 16, |
| 160 | + marginBottom: 12, |
| 161 | + }, |
| 162 | + paragraph: { |
| 163 | + fontSize: 17, |
| 164 | + lineHeight: 29, |
| 165 | + marginBottom: 17, |
| 166 | + fontWeight: 300, |
| 167 | + }, |
| 168 | + buttonsContainer: { |
| 169 | + flexDirection: 'row', |
| 170 | + flexWrap: 'wrap', |
| 171 | + gap: 12, |
| 172 | + marginBottom: 24, |
| 173 | + }, |
| 174 | + button: { |
| 175 | + flexDirection: 'row', |
| 176 | + paddingHorizontal: 12, |
| 177 | + minHeight: 32, |
| 178 | + fontSize: 14, |
| 179 | + gap: 2, |
| 180 | + }, |
| 181 | +}); |
| 182 | + |
| 183 | +export default Tools; |
0 commit comments