react-native-boxes 1.4.63 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Button.tsx +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.63",
3
+ "version": "1.4.64",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Button.tsx CHANGED
@@ -281,9 +281,10 @@ export function LoadingButton(props: TextProps & TouchableHighlightProps
281
281
  const theme = useContext(ThemeContext)
282
282
  const [_loading, _setIsLoading] = useState(props.loading)
283
283
  useEffect(() => {
284
- LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
285
- if (props.loading != _loading)
284
+ if (props.loading != _loading) {
285
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
286
286
  _setIsLoading(props.loading)
287
+ }
287
288
  }, [props.loading]);
288
289
  let loaderColor = theme.colors.invert.text
289
290
  let loaderSize = theme.dimens.icon.md