Browse Source

Fix image paths

pull/4620/head
Halil İbrahim Kalkan 6 years ago
parent
commit
d3670617ad
  1. 10
      docs/en/Getting-Started-React-Native.md

10
docs/en/Getting-Started-React-Native.md

@ -9,14 +9,14 @@ When you **create a new application** as described in the [getting started docum
A React Native application running on an Android emulator or a physical phone **can not connect to the backend** on `localhost`. To fix this problem, it is necessary to run the backend application on your **local IP address**.
{{ if Tiered == "No"}}
![React Native host project local IP entry](D:/Github/abp/docs/en/images/rn-host-local-ip.png)
![React Native host project local IP entry](images/rn-host-local-ip.png)
* Open the `appsettings.json` in the `.HttpApi.Host` folder. Replace the `localhost` address on the `SelfUrl` and `Authority` properties with your local IP address.
* Open the `launchSettings.json` in the `.HttpApi.Host/Properties` folder. Replace the `localhost` address on the `applicationUrl` properties with your local IP address.
{{ else if Tiered == "Yes" }}
![React Native tiered project local IP entry](D:/Github/abp/docs/en/images/rn-tiered-local-ip.png)
![React Native tiered project local IP entry](images/rn-tiered-local-ip.png)
* Open the `appsettings.json` in the `.IdentityServer` folder. Replace the `localhost` address on the `SelfUrl` property with your local IP address.
* Open the `launchSettings.json` in the `.IdentityServer/Properties` folder. Replace the `localhost` address on the `applicationUrl` properties with your local IP address.
@ -39,7 +39,7 @@ yarn
* Open the `Environment.js` in the `react-native` folder and replace the `localhost` address on the `apiUrl` and `issuer` properties with your local IP address as shown below:
![react native environment local IP](D:/Github/abp/docs/en/images/rn-environment-local-ip.png)
![react native environment local IP](images/rn-environment-local-ip.png)
{{ if Tiered == "Yes" }}
@ -59,13 +59,13 @@ yarn start
Wait Expo CLI to start. Expo CLI opens the management interface on the `http://localhost:19002/` address.
![expo-interface](D:/Github/abp/docs/en/images/rn-expo-interface.png)
![expo-interface](images/rn-expo-interface.png)
In the above management interface, you can start the application with an Android emulator, an iOS simulator or a physical phone by the scan the QR code with the [Expo Client](https://expo.io/tools#client).
> See the [Android Studio Emulator](https://docs.expo.io/workflow/android-simulator/), [iOS Simulator](https://docs.expo.io/workflow/ios-simulator/) documents on expo.io.
![React Native login screen on iPhone 11](D:/Github/abp/docs/en/images/rn-login-iphone.png)
![React Native login screen on iPhone 11](images/rn-login-iphone.png)
Enter **admin** as the username and **1q2w3E*** as the password to login to the application.

Loading…
Cancel
Save