UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

127 lines (126 loc) 2.98 kB
'use strict'; export const PropsAllowlists = { /** Styles allowed to be direcly updated in UI thread */ UI_THREAD_PROPS_WHITELIST: { opacity: true, transform: true, /* colors */ backgroundColor: true, borderRightColor: true, borderBottomColor: true, borderColor: true, borderEndColor: true, borderLeftColor: true, borderStartColor: true, borderTopColor: true, /* ios styles */ shadowOpacity: true, shadowRadius: true, /* legacy android transform properties */ scaleX: true, scaleY: true, translateX: true, translateY: true }, /** * Whitelist of view props that can be updated in native thread via * UIManagerModule */ NATIVE_THREAD_PROPS_WHITELIST: { borderBottomWidth: true, borderEndWidth: true, borderLeftWidth: true, borderRightWidth: true, borderStartWidth: true, borderTopWidth: true, borderWidth: true, bottom: true, boxShadow: true, flex: true, flexGrow: true, flexShrink: true, height: true, left: true, margin: true, marginBottom: true, marginEnd: true, marginHorizontal: true, marginLeft: true, marginRight: true, marginStart: true, marginTop: true, marginVertical: true, maxHeight: true, maxWidth: true, minHeight: true, minWidth: true, padding: true, paddingBottom: true, paddingEnd: true, paddingHorizontal: true, paddingLeft: true, paddingRight: true, paddingStart: true, paddingTop: true, paddingVertical: true, right: true, start: true, top: true, width: true, zIndex: true, borderBottomEndRadius: true, borderBottomLeftRadius: true, borderBottomRightRadius: true, borderBottomStartRadius: true, borderRadius: true, borderTopEndRadius: true, borderTopLeftRadius: true, borderTopRightRadius: true, borderTopStartRadius: true, elevation: true, fontSize: true, lineHeight: true, textShadowRadius: true, textShadowOffset: true, letterSpacing: true, aspectRatio: true, columnGap: true, // iOS only end: true, // number or string flexBasis: true, // number or string gap: true, rowGap: true, /* strings */ display: true, backfaceVisibility: true, overflow: true, resizeMode: true, fontStyle: true, fontWeight: true, textAlign: true, textDecorationLine: true, fontFamily: true, textAlignVertical: true, fontVariant: true, textDecorationStyle: true, textTransform: true, writingDirection: true, alignContent: true, alignItems: true, alignSelf: true, direction: true, // iOS only flexDirection: true, flexWrap: true, justifyContent: true, position: true, /* text color */ color: true, tintColor: true, shadowColor: true, placeholderTextColor: true } }; //# sourceMappingURL=propsAllowlists.js.map