This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

1 line
7.4 KiB
Plaintext

{"version":3,"sources":["ConfigHelper.js"],"names":["UI_THREAD_PROPS_WHITELIST","opacity","transform","backgroundColor","borderRightColor","borderBottomColor","borderColor","borderEndColor","borderLeftColor","borderStartColor","borderTopColor","shadowOpacity","shadowRadius","scaleX","scaleY","translateX","translateY","NATIVE_THREAD_PROPS_WHITELIST","borderBottomWidth","borderEndWidth","borderLeftWidth","borderRightWidth","borderStartWidth","borderTopWidth","borderWidth","bottom","flex","flexGrow","flexShrink","height","left","margin","marginBottom","marginEnd","marginHorizontal","marginLeft","marginRight","marginStart","marginTop","marginVertical","maxHeight","maxWidth","minHeight","minWidth","padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","right","start","top","width","zIndex","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderRadius","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","elevation","fontSize","lineHeight","textShadowRadius","letterSpacing","display","backfaceVisibility","overflow","resizeMode","fontStyle","fontWeight","textAlign","textDecorationLine","fontFamily","textAlignVertical","fontVariant","textDecorationStyle","textTransform","writingDirection","color","configureProps","ReanimatedModule","Object","keys","addWhitelistedNativeProps","props","addWhitelistedUIProps"],"mappings":";;;;;;;;AAAA;;;;;;;;;;AAEA;;;AAGA,IAAIA,yBAAyB,GAAG;AAC9BC,EAAAA,OAAO,EAAE,IADqB;AAE9BC,EAAAA,SAAS,EAAE,IAFmB;;AAG9B;AACAC,EAAAA,eAAe,EAAE,IAJa;AAK9BC,EAAAA,gBAAgB,EAAE,IALY;AAM9BC,EAAAA,iBAAiB,EAAE,IANW;AAO9BC,EAAAA,WAAW,EAAE,IAPiB;AAQ9BC,EAAAA,cAAc,EAAE,IARc;AAS9BC,EAAAA,eAAe,EAAE,IATa;AAU9BC,EAAAA,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wB;AA4DlCC,EAAAA,UAAU,EAAE,IA5DsB;AA6DlCC,EAAAA,SAAS,EAAE,IA7DuB;AA8DlCC,EAAAA,UAAU,EAAE,IA9DsB;AA+DlCC,EAAAA,SAAS,EAAE,IA/DuB;AAgElCC,EAAAA,kBAAkB,EAAE,IAhEc;AAiElCC,EAAAA,UAAU,EAAE,IAjEsB;AAkElCC,EAAAA,iBAAiB,EAAE,IAlEe;AAmElCC,EAAAA,WAAW,EAAE,IAnEqB;AAoElCC,EAAAA,mBAAmB,EAAE,IApEa;AAqElCC,EAAAA,aAAa,EAAE,IArEmB;AAsElCC,EAAAA,gBAAgB,EAAE,IAtEgB;;AAuElC;AACAC,EAAAA,KAAK,EAAE;AAxE2B,CAApC;;AA2EA,SAASC,cAAT,GAA0B;AACxBC,4BAAiBD,cAAjB,CACEE,MAAM,CAACC,IAAP,CAAYzE,6BAAZ,CADF,EAEEwE,MAAM,CAACC,IAAP,CAAY1F,yBAAZ,CAFF;AAID;;AAEM,SAAS2F,yBAAT,CAAmCC,KAAnC,EAA0C;AAC/C3E,EAAAA,6BAA6B,mCACxBA,6BADwB,GAExB2E,KAFwB,CAA7B;AAIAL,EAAAA,cAAc;AACf;;AAEM,SAASM,qBAAT,CAA+BD,KAA/B,EAAsC;AAC3C5F,EAAAA,yBAAyB,mCAAQA,yBAAR,GAAsC4F,KAAtC,CAAzB;AACAL,EAAAA,cAAc;AACf;;AAEDA,cAAc","sourcesContent":["import ReanimatedModule from './ReanimatedModule';\n\n/**\n * Styles allowed to be direcly updated in UI thread\n */\nlet UI_THREAD_PROPS_WHITELIST = {\n opacity: true,\n transform: true,\n /* colors */\n backgroundColor: true,\n borderRightColor: true,\n borderBottomColor: true,\n borderColor: true,\n borderEndColor: true,\n borderLeftColor: true,\n borderStartColor: true,\n borderTopColor: true,\n /* ios styles */\n shadowOpacity: true,\n shadowRadius: true,\n /* legacy android transform properties */\n scaleX: true,\n scaleY: true,\n translateX: true,\n translateY: true,\n};\n\n/**\n * Whitelist of view props that can be updated in native thread via UIManagerModule\n */\nlet NATIVE_THREAD_PROPS_WHITELIST = {\n borderBottomWidth: true,\n borderEndWidth: true,\n borderLeftWidth: true,\n borderRightWidth: true,\n borderStartWidth: true,\n borderTopWidth: true,\n borderWidth: true,\n bottom: true,\n flex: true,\n flexGrow: true,\n flexShrink: true,\n height: true,\n left: true,\n margin: true,\n marginBottom: true,\n marginEnd: true,\n marginHorizontal: true,\n marginLeft: true,\n marginRight: true,\n marginStart: true,\n marginTop: true,\n marginVertical: true,\n maxHeight: true,\n maxWidth: true,\n minHeight: true,\n minWidth: true,\n padding: true,\n paddingBottom: true,\n paddingEnd: true,\n paddingHorizontal: true,\n paddingLeft: true,\n paddingRight: true,\n paddingStart: true,\n paddingTop: true,\n paddingVertical: true,\n right: true,\n start: true,\n top: true,\n width: true,\n zIndex: true,\n borderBottomEndRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderBottomStartRadius: true,\n borderRadius: true,\n borderTopEndRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderTopStartRadius: true,\n opacity: true,\n elevation: true,\n fontSize: true,\n lineHeight: true,\n textShadowRadius: true,\n letterSpacing: true,\n /* strings */\n display: true,\n backfaceVisibility: true,\n overflow: true,\n resizeMode: true,\n fontStyle: true,\n fontWeight: true,\n textAlign: true,\n textDecorationLine: true,\n fontFamily: true,\n textAlignVertical: true,\n fontVariant: true,\n textDecorationStyle: true,\n textTransform: true,\n writingDirection: true,\n /* text color */\n color: true,\n};\n\nfunction configureProps() {\n ReanimatedModule.configureProps(\n Object.keys(NATIVE_THREAD_PROPS_WHITELIST),\n Object.keys(UI_THREAD_PROPS_WHITELIST)\n );\n}\n\nexport function addWhitelistedNativeProps(props) {\n NATIVE_THREAD_PROPS_WHITELIST = {\n ...NATIVE_THREAD_PROPS_WHITELIST,\n ...props,\n };\n configureProps();\n}\n\nexport function addWhitelistedUIProps(props) {\n UI_THREAD_PROPS_WHITELIST = { ...UI_THREAD_PROPS_WHITELIST, ...props };\n configureProps();\n}\n\nconfigureProps();\n"]}