Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Changing Component File location in React native does not show in main App

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

function WelcomeScreen() {
  return (
    <View style={styles.container}>
      <Text>Hello Welcome Screen!</Text>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'blue',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

export default WelcomeScreen;
 
PREVIOUS NEXT
Tagged: #Changing #Component #File #location #React #native #show #main #App
ADD COMMENT
Topic
Name
9+8 =