Skip to content

feat(web): add basic setup#491

Open
pkaramon wants to merge 9 commits intomainfrom
@pkaramon/web-setup
Open

feat(web): add basic setup#491
pkaramon wants to merge 9 commits intomainfrom
@pkaramon/web-setup

Conversation

@pkaramon
Copy link
Collaborator

@pkaramon pkaramon commented Mar 18, 2026

Summary

Explain the motivation for making this change: here are some points to help you:

  • Basic web setup for the library and example app, intended for internal use only for now
  • Currently the code related to web is not exported to npm
  • Added web entry + minimal web EnrichedTextInput stub to unblock web integration work.
  • Wired example-web app to the EnrichedTextInput for the web
  • index.native.tsx entrypoint for android/ios, index.tsx entrypoint for the web

Test Plan

  • Run example-web app, make sure a textarea with "Hello from web!" appears.
  • Check that example app still builds for android and ios

Screenshots / Videos

image ## Compatibility
OS Implemented
iOS
Android
Web

@pkaramon pkaramon force-pushed the @pkaramon/web-setup branch from 959e349 to a3444c5 Compare March 18, 2026 11:53
@pkaramon pkaramon force-pushed the @pkaramon/web-setup branch from a3444c5 to c9d4f52 Compare March 18, 2026 14:17
EnrichedTextInputInstance,
} from '../types';

export interface EnrichedTextInputProps extends BaseEnrichedTextInputProps {}
Copy link
Collaborator Author

@pkaramon pkaramon Mar 18, 2026

Choose a reason for hiding this comment

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

I will try to keep the types as close as possible between native and web, but I think we will have to make at least so tiny modifications for example the style?: ViewStyle | TextStyle will need changing on web to CSSProperties.

Comment on lines +28 to +35
"!src/web",
"!src/index.tsx",
"!lib/module/web",
"!lib/module/index.js",
"!lib/module/index.js.map",
"!lib/typescript/src/web",
"!lib/typescript/src/index.d.ts",
"!lib/typescript/src/index.d.ts.map",
Copy link
Collaborator Author

@pkaramon pkaramon Mar 18, 2026

Choose a reason for hiding this comment

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

I think it would be a good idea to keep the web code hidden until it's at least semi-functional. @exploIF @kacperzolkiewski curious what do you think?

@pkaramon pkaramon marked this pull request as ready for review March 19, 2026 09:09
@pkaramon pkaramon requested review from exploIF and kacperzolkiewski and removed request for exploIF and kacperzolkiewski March 19, 2026 09:09
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.

1 participant