0
결과를 렌더링하는 나는 사용자 세션이 이미 존재하는지 확인하려고하고, 다른 버튼 옵션중포 기지 체크하면 사용자 세션
render() {
var actionButton = [];
firebaseApp.auth().onAuthStateChanged(function(user) {
if (user) {
actionButton.push(
<RoundedButton onPress={() => { NavigationActions.SubmitScreen() }} text='Place Order' />
)
} else {
actionButton.push(
<RoundedButton onPress={() => { NavigationActions.Login({hide: false}) }} text='Login to Place Order' />
)
}
})
return (
<View style={styles.container}>
<View style={styles.currentBalance}>
<Text style={styles.currentBalanceTitle}>CURRENT BALANCE</Text>
<Text style={styles.currentBalanceAmount}>$0.00</Text>
</View>
<AlertMessage title='Nothing to See Here, Move Along' show={this._noRowData()} />
<View style={styles.heaader}>
<Text style={styles.item}>Item</Text>
<Text style={styles.price}>Price</Text>
</View>
<ListView
contentContainerStyle={styles.listContent}
dataSource={this.state.dataSource}
renderRow={this._renderRow.bind(this)}
enableEmptySections
pageSize={15}
/>
{actionButton}
</View>
)
렌더링하지 않는 경우 그때 {actionButton}
오전, 문제 I 갖는 데있어 결과를 반환하지 않습니다.
콜백 함수를 호출하지 않습니까? 또는 렌더링하지 않습니까? –
ID가 잘못 렌더링되지 않는다고 말합니다. –