修复Android不能打包的问题(For Version 4.0~4.0.4)

This commit is contained in:
Yuki.lan 2018-07-11 15:24:33 +08:00
parent 3767deeae3
commit 69eee35619
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export default class App extends Component {
backgroundColor: this.props.backgroundColor || 'transparent' backgroundColor: this.props.backgroundColor || 'transparent'
}} }}
scalesPageToFit={Platform.OS !== 'ios'} scalesPageToFit={Platform.OS !== 'ios'}
source={require('./tpl.html')} source={{uri:'file:///android_asset/tpl.html'}}
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
/> />
</View> </View>