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

Add live code playground in uilib docs #3254

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

ethanshar
Copy link
Collaborator

@ethanshar ethanshar commented Sep 11, 2024

Description

This is a POC for running live code playground in our docs
It supports react-native-web and react-native-reanimated components
It's a WIP - we need to add ALL components, and to make it pretty (:
Also, we are still getting an error when we build the docs (in docuilib folder) but it works when running the app

[ERROR] Unable to build website for locale en.
[ERROR] Error: Failed to compile with errors.
    at /Users/ethans/Documents/workspace/react-native-ui-lib/docuilib/node_modules/@docusaurus/core/lib/webpack/utils.js:180:24
    at /Users/ethans/Documents/workspace/react-native-ui-lib/docuilib/node_modules/webpack/lib/MultiCompiler.js:629:14
    at processQueueWorker (/Users/ethans/Documents/workspace/react-native-ui-lib/docuilib/node_modules/webpack/lib/MultiCompiler.js:566:6)
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Error thread
plugin reference

Changelog

Additional info

// // end just for not getting warnings
// path.resolve(siteDir, 'node_modules/react-native-haptic-feedback'),
// path.resolve(siteDir, 'node_modules/react-native-animatable'),
// path.resolve(siteDir, 'node_modules/react-native-reanimated'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-native-reanimated is installed but not added to the resolutions but it's working 🤷‍♂️

@M-i-k-e-l M-i-k-e-l merged commit 8cc671a into master Sep 16, 2024
1 check passed
@M-i-k-e-l M-i-k-e-l deleted the infra/docs_live_code branch September 16, 2024 10:40
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

Successfully merging this pull request may close these issues.

2 participants