constructor里用this.props没效果 2019-01-03 本文已影响0人 lwtzzz 在react-native里面的constructor不能使用this.props.xxx。 因为this还没有传到constructor,所以要直接用props.xxx。