Hi, I have this error in a native reaction and can't figure out what causes it. Help would be greatly appreciated.
thank
The problem is the gap. However, using tabs is not considered a space. Try removing the space between the tag and the comment on lines 32 and 37.
<View> {/*green*/}
should be either
<View>{/*green*/}
or
I encountered a similar error when checking if the component should be displayed as follows:
{somevariable && <Text>abcd</Text>}
, somevariable 0, somevariable -, , , , 0 React. , , .
somevariable
{!!somevariable && <Text>abcd</Text>}
. - Preferences | Editor | General | Appearance
Preferences | Editor | General | Appearance
, / .js JSX. JSX, . , , - node_module node npm install .
.js
node_module
npm install
, :
<View style={{width:40, height:40, backgroundColor:"green", margin:5}}> <Text style={{fontSize:18}}>格子{this.state.size1}</Text> </View>
not
格子 {this.state.size1}
:
Source: https://habr.com/ru/post/1655712/More articles:System Health Check - linuxDoes Rust include individual elements that are added to the vector? - heapProviding at compile time initialization of all elements of a fixed-size array - cAdd nested dictionaries - pythonHow to check if a property provided to a React component is an instance of Immutable.js Record with Flow? - reactjsHow to configure the percolator to return when the aggregation value reaches a certain threshold? - elasticsearchRun Jenkins Master and Docker Slave - dockerHow can I make these methods generalized? - genericsКак получить elastalert triger, когда сумма поля для всех документов, соответствующих запросу, превышает некоторую ценность - elasticsearchPush an element to the bottom of its parent without overlapping? - htmlAll Articles