Exp publish change app with nested Text compared to dev version

Already mentionned here but I don’t own the post and can’t change the title as not resolved : Does 'exp publish' change an app? (e.g. break it) -- RESOLVED - #2 by lc3t35

I detected a problem between the published version and the dev version (on simulator or real device),
published version or exp start --no-dev --minify displays :
14
exp start --dev version displays :
26
It seems to be also related to a nested Text inside Text ?

<View style={styles.viewtext}>
  <Text style={styles.text} numberOfLines={4} >
    <View style={styles.viewusername}>
      <Text style={styles.texthightlight} >{username ? item.username : null}</Text>
      { item.verified ?
           <View style={{ marginTop: 0, marginLeft: 2,}}>
                <Verified size={16}/>
            </View>
        : null }
     </View>
     {text}
   </Text>
</View>

Workaround found

<View style={styles.viewtext}>
  <View style={styles.viewusername}>
    <Text style={styles.texthightlight} >{username ? item.username : null}</Text>
    { item.verified ?
      <View style={{ marginTop: 0, marginLeft: 2,}}>
        <Verified />
      </View>
    : null }
  </View>
  <Text style={styles.text}>{text}</Text>
</View>

which displays
03

Where should I submit this issue : expo or react-native, both ?

@lc3t35 good find as always! I think the dev and minify flags are part of react-native. Looked through the source of exp and couldn’t find anything besides hand-off. So probably a React Native error.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.