react-native-boxes 1.4.62 → 1.4.64
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 +1 -1
- package/src/Button.tsx +5 -2
package/package.json
CHANGED
package/src/Button.tsx
CHANGED
|
@@ -151,8 +151,10 @@ export function ButtonView(props: ButtonViewProps) {
|
|
|
151
151
|
|
|
152
152
|
{
|
|
153
153
|
(props.text || props.children) && (
|
|
154
|
+
|
|
154
155
|
<TextView style={[{
|
|
155
156
|
width: '100%',
|
|
157
|
+
textAlign: 'center',
|
|
156
158
|
opacity: isPressed ? .7 : 1,
|
|
157
159
|
fontWeight: "500",
|
|
158
160
|
justifyContent: 'center',
|
|
@@ -279,9 +281,10 @@ export function LoadingButton(props: TextProps & TouchableHighlightProps
|
|
|
279
281
|
const theme = useContext(ThemeContext)
|
|
280
282
|
const [_loading, _setIsLoading] = useState(props.loading)
|
|
281
283
|
useEffect(() => {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
if (props.loading != _loading) {
|
|
285
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
284
286
|
_setIsLoading(props.loading)
|
|
287
|
+
}
|
|
285
288
|
}, [props.loading]);
|
|
286
289
|
let loaderColor = theme.colors.invert.text
|
|
287
290
|
let loaderSize = theme.dimens.icon.md
|