Я работаю, чтобы настроить свою среду для реагирования на родную.
Казалось, что все работает нормально, если я не запустил сервер. Там, где реагирует - родной не может ничего сделать. Он отображает файлы в виде простого текста, даже HTML-файлы.
**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
android:
'ctrl+R on your keyboard to reload,\n' +
'Shake or press menu button for dev menu',
});
type Props = {};
export default class App extends Component<Props> {
render() {
return (..............
############################################### ###########
#
**Below is the output in browser tab**
<View style={styles.container}>
<Text style={styles.welcome}>Welcome to React Native! Although
</Text>
<Text style={styles.instructions}>To get started, edit
App.js</Text>
<Text style={styles.instructions}>{instructions}</Text>
</View>
);