@momo-kits/collapse 0.112.1-beta.7 → 0.112.1-beta.8
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/index.tsx +3 -4
- package/package.json +1 -1
package/index.tsx
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
Animated,
|
|
4
4
|
LayoutAnimation,
|
|
5
5
|
Platform,
|
|
6
|
-
Text as RNText,
|
|
7
6
|
ScrollView,
|
|
8
7
|
TouchableOpacity,
|
|
9
8
|
UIManager,
|
|
@@ -169,7 +168,8 @@ const Collapse = React.forwardRef<CollapseHandle, CollapseProps>(
|
|
|
169
168
|
)}
|
|
170
169
|
<View style={[styles.headerContent]}>
|
|
171
170
|
<View style={styles.flex2}>
|
|
172
|
-
<
|
|
171
|
+
<Text
|
|
172
|
+
typography="body_default_regular"
|
|
173
173
|
numberOfLines={1}
|
|
174
174
|
style={[
|
|
175
175
|
getTitleTypo(),
|
|
@@ -181,7 +181,7 @@ const Collapse = React.forwardRef<CollapseHandle, CollapseProps>(
|
|
|
181
181
|
accessibilityLabel={accessibilityLabelTitle}
|
|
182
182
|
>
|
|
183
183
|
{title}
|
|
184
|
-
</
|
|
184
|
+
</Text>
|
|
185
185
|
{!!description && (
|
|
186
186
|
<Text accessibilityLabel={accessibilityLabelDescription} numberOfLines={2} typography={'body_default_regular'}>
|
|
187
187
|
{description}
|
|
@@ -204,7 +204,6 @@ const Collapse = React.forwardRef<CollapseHandle, CollapseProps>(
|
|
|
204
204
|
: Animated.ScrollView;
|
|
205
205
|
return (
|
|
206
206
|
<ParentComponent
|
|
207
|
-
|
|
208
207
|
scrollEnabled={scrollEnabled}
|
|
209
208
|
showsVerticalScrollIndicator={false}
|
|
210
209
|
style={[
|