* [UI] Initial Alerts API * [UI > Alerts] showCustomAlert and showInputAlert * [Constants] Add HTTP_REGEX * [UI > Plugins] Use InputAlert for installing plugins * [UI > Plugins/PluginCard] Pass plugin index to PluginCard to add top margin * [UI > Alerts] Fix indentation
21 lines
No EOL
692 B
TypeScript
21 lines
No EOL
692 B
TypeScript
import { ReactNative as RN } from "@metro/common";
|
|
import { useProxy } from "@lib/storage";
|
|
import { plugins } from "@lib/plugins";
|
|
import PluginCard from "@ui/settings/components/PluginCard";
|
|
import ErrorBoundary from "@ui/components/ErrorBoundary";
|
|
|
|
export default function Plugins() {
|
|
useProxy(plugins);
|
|
|
|
return (
|
|
<ErrorBoundary>
|
|
<RN.View style={{ flex: 1 }}>
|
|
<RN.FlatList
|
|
data={Object.values(plugins)}
|
|
renderItem={({ item, index }) => <PluginCard plugin={item} index={index} />}
|
|
keyExtractor={item => item.id}
|
|
/>
|
|
</RN.View>
|
|
</ErrorBoundary>
|
|
)
|
|
} |