diff --git a/src/menu/makeMenuContext.js b/src/menu/makeMenuContext.js index c2d7e60..1802629 100644 --- a/src/menu/makeMenuContext.js +++ b/src/menu/makeMenuContext.js @@ -30,11 +30,20 @@ module.exports = (React, ReactNative, { constants, model, styles }) => { const makeOptions = (options, { top, right }) => { const { optionsContainerStyle, renderOptionsContainer = defaultOptionsContainerRenderer} = options.props; - return ( - - { renderOptionsContainer(options) } - - ); + if(options.animate) { + return ( + + { renderOptionsContainer(options) } + + ); + } + else { + return ( + + { renderOptionsContainer(options) } + + ); + } }; const NULL_HOOKS = { @@ -156,6 +165,7 @@ module.exports = (React, ReactNative, { constants, model, styles }) => { const { w: ownWidth, px: ownPX, py: ownPY } = this._ownMeasurements; const optionsTop = menuPY - ownPY; const optionsRight = ownWidth + ownPX - menuPX - menuWidth; + options['animate'] = 'animate' in this.props ? this.props.animate : true; return makeOptions(options, { top: optionsTop, right: optionsRight }); },