diff --git a/src/menu/makeAnimatedOptionsContainer.js b/src/menu/makeAnimatedOptionsContainer.js index 99e89c4..c4efe4a 100644 --- a/src/menu/makeAnimatedOptionsContainer.js +++ b/src/menu/makeAnimatedOptionsContainer.js @@ -6,7 +6,7 @@ module.exports = (React, ReactNative) => { const AnimatedOptionsContainer = React.createClass({ mixins: [TimerMixin], getInitialState() { - return { scaleAnim: new Animated.Value(0.001) }; + return { scaleAnim: new Animated.Value(0.01) }; }, componentDidMount() { this.setTimeout(() => { diff --git a/src/menu/makeMenuContext.js b/src/menu/makeMenuContext.js index e3a7900..c0f6564 100644 --- a/src/menu/makeMenuContext.js +++ b/src/menu/makeMenuContext.js @@ -139,9 +139,12 @@ module.exports = (React, ReactNative, { constants, model, styles }) => { }, onLayout() { const handle = ReactNative.findNodeHandle(this.refs.Container); - UIManager.measure(handle, (x, y, w, h, px, py) => { - this._ownMeasurements = {x, y, w, h, px, py}; - }); + const waitFor = this.props.lazyRender || 0 + setTimeout(()=>{ + UIManager.measure(handle, (x, y, w, h, px, py) => { + this._ownMeasurements = {x, y, w, h, px, py}; + }); + }, waitFor) }, _registerMenu(name, hooks) { if (this._menus[name]) {