修复Android不能打包的问题(For Version 4.0~4.0.4)
This commit is contained in:
parent
3767deeae3
commit
69eee35619
|
|
@ -33,7 +33,7 @@ export default class App extends Component {
|
|||
backgroundColor: this.props.backgroundColor || 'transparent'
|
||||
}}
|
||||
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}
|
||||
/>
|
||||
</View>
|
||||
|
|
|
|||
Loading…
Reference in New Issue