Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several questions about StaticServerExample/App.tsx #105

Open
codthing opened this issue Feb 5, 2021 · 0 comments
Open

Several questions about StaticServerExample/App.tsx #105

codthing opened this issue Feb 5, 2021 · 0 comments

Comments

@codthing
Copy link

codthing commented Feb 5, 2021

image

image

In Example,

  1. const {uri} = Image.resolveAssetSource(index)
    Why get uri in this way?
  2. await FileSystem.makeDirectoryAsync(path)
    Why is it necessary to create an empty file directory, can't it be created manually?
  3. added = FileSystem.copyAsync({ from: uri, to: dest })
    Why create a copy of the catalog file?

I just want to create a html project in the project that needs a static server to run. What I want to achieve is:

Project root directory www/index.html
${origin} = https://xxx/www
${file} = index.html
<WebView source={{ uri: ${origin}/${file} }} />

smellman pushed a commit to smellman/react-native-static-server that referenced this issue Sep 25, 2024
smellman pushed a commit to smellman/react-native-static-server that referenced this issue Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant