Posts by Developer2002 • 59 points
5 posts
-
0
votes1
answer38
viewsQ: Global styles with Styled-Components
How can I increment global styles in Styled-Components? I have a file with several style variables, as I can increment in Styled-Components? Example: src/Styles/Colors.js const ColorPrimary = "#000"…
-
0
votes0
answers13
viewsQ: How to get javascript address in html embedded within a program
How can I get Java-Script code inside an HTML program? So the HTML says the . js file is in the same folder as the program, but it is not. Nor in the %appdata% <script…
-
-1
votes1
answer54
viewsQ: Class pass function
I need to use the same button on different pages and with different functions How can I pass the function to the button ? class App extends Component { render(){ return( <View> <Button…
-
3
votes1
answer2744
viewsA: How to cancel <Text> line break?
Using flexbox: <View style={{flex:1, flexDirection:'row'}}> <Text>abc</Text> <Text>123</Text> </View>…
react-nativeanswered Developer2002 59 -
2
votes1
answer191
viewsQ: Async/await javascript
How can I make the code below less messy with asnyc/await? class Backend { getUsers(callback){ const database = firebase.database().ref('users/') const onReceive = (data) => { callback({ data )}…