@hoddy-ui/core 1.0.76 → 1.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -57,7 +57,7 @@ export const RatingInput: FC<RatingInputProps> = ({
57
57
  inputCon: {
58
58
  marginBottom: "20@vs",
59
59
  backgroundColor: colors.white[3],
60
- padding: "15@ms",
60
+ padding: "10@ms",
61
61
  borderRadius: 20,
62
62
  },
63
63
  input: {
@@ -67,6 +67,10 @@ export const RatingInput: FC<RatingInputProps> = ({
67
67
  },
68
68
  });
69
69
 
70
+ useEffect(() => {
71
+ if (noReview && rate) onSubmit();
72
+ }, [rate, noReview]);
73
+
70
74
  useEffect(() => {
71
75
  setRate(rating);
72
76
  }, [rating]);
@@ -78,7 +82,6 @@ export const RatingInput: FC<RatingInputProps> = ({
78
82
  setTimeout(() => {
79
83
  setShowReviewsModal(true);
80
84
  }, 500);
81
- else onSubmit();
82
85
  };
83
86
 
84
87
  const onSubmit = async () => {
@@ -135,6 +138,7 @@ export const RatingInput: FC<RatingInputProps> = ({
135
138
  <TextInput
136
139
  style={styles.input}
137
140
  multiline
141
+ placeholderTextColor={colors.textSecondary.main}
138
142
  value={review}
139
143
  onChangeText={(text) => setReview(text)}
140
144
  placeholder="Type review here.."