Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Styled-system in react native using stylesheet

I am trying to make stylesheet in react native able to use dynamic value, but i have no idea how to declare it, and can we change the styling name of react native style sheet?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can declare a stylesheet in react native in this way

import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';



export default function App() {


return (
  <View style={styles.container}>
     <Text style={styles.welcomeText}>welcome</Text>
  </View>
 );
}

const styles = StyleSheet.create({
  container: {
   flex: 1,
   justifyContent: 'center',
   paddingTop: 10,
   backgroundColor: '#ecf0f1',
   padding: 8,
 },
 welcomeText:{
   color:'red',
 },
 });

Read about this in the documentation here.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!