Remove all native base dependencies.
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
import { DateTime } from "luxon";
|
||||
import { Input, Item, Label } from "native-base";
|
||||
import React from "react";
|
||||
import { StyleSheet } from "react-native";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({});
|
||||
import { Text, TextInput, View } from "react-native";
|
||||
|
||||
export function DataLabelComponent({ label, content, dateTime, ...restProps }) {
|
||||
export default function DataLabelComponent({
|
||||
label,
|
||||
content,
|
||||
dateTime,
|
||||
...restProps
|
||||
}) {
|
||||
let theContent = content;
|
||||
|
||||
if (dateTime && content)
|
||||
@@ -18,11 +16,9 @@ export function DataLabelComponent({ label, content, dateTime, ...restProps }) {
|
||||
);
|
||||
|
||||
return (
|
||||
<Item stackedLabel {...restProps}>
|
||||
<Label>{label}</Label>
|
||||
<Input disabled placeholder={theContent} />
|
||||
</Item>
|
||||
<View {...restProps}>
|
||||
<Text>{label}</Text>
|
||||
<TextInput disabled placeholder={theContent} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
const localStyles = StyleSheet.create({});
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(DataLabelComponent);
|
||||
|
||||
Reference in New Issue
Block a user