React with Native

Bringing together React and React Native

GitHub

README

React with native

react-with-native (

OperationClassification

TODO: Ensure embedding this will embed the actual docs in my markdown renderer. I guess it might already do so!

TODO: It would be great to learn more about this topic and see if I can make more cross-environment packages. A great use case would be to create a wrapper around the current fs-orm to enable using it at the frontend too.

OperationClassification ui-cjs)

Api reference
📄 Div (exported const)
<P />
Input
-
OutputJSX.Element
📄 P (exported const)
<Span />
Input
-
OutputJSX.Element
📄 Span (exported const)
<Button />
Input
-
OutputJSX.Element
📄 Button (exported const)
<Input />
Input
-
OutputJSX.Element
📄 Input (exported const)
<Svg />
Input
{ src, width, height, className, style }SvgType
OutputJSX.Element
📄 Svg (exported const)
<Form />

Form is just a html form on web. On react-native, it's a View

Input
-
OutputJSX.Element
📄 Form (exported const)

Form is just a html form on web. On react-native, it's a View

<A />
Input
-
OutputJSX.Element
<H2 />
Input
-
OutputJSX.Element
<Image />
Input
-
OutputJSX.Element
<Label />
Input
-
OutputJSX.Element
<Li />
Input
-
OutputJSX.Element
<TextArea />
Input
-
OutputJSX.Element
<Ul />
Input
-
OutputJSX.Element
📄 A (exported const)
📄 H2 (exported const)
📄 Image (exported const)
📄 Label (exported const)
📄 Li (exported const)
📄 TextArea (exported const)
📄 Ul (exported const)
<ActivityIndicator />
Input
-
OutputJSX.Element
<Aside />
Input
-
OutputJSX.Element
<Strong />
Input
-
OutputJSX.Element
<Text />
Input
-
OutputJSX.Element
<Toggle />
Input
-
OutputJSX.Element
📄 ActivityIndicator (exported const)
📄 Aside (exported const)
📄 Strong (exported const)
📄 Text (exported const)
📄 Toggle (exported const)
Internal
Show internal (21)
getTailwindModules()
Input
options{ packages?: string[],
modules?: string[],
isWorkspace?: boolean,
}
Output
<I />
Input
-
OutputJSX.Element
joinClassNames()
Input
args{ }[]
Output
<Nav />
Input
-
OutputJSX.Element
<Ol />
Input
-
OutputJSX.Element
<Pressable />

button on web, pressable on react-native

Input
-
OutputJSX.Element
<Select />
Input
-
OutputJSX.Element
<TouchableOpacity />

button on web, pressable on react-native

Input
-
OutputJSX.Element
trimClassName()

in react-native not all classNames are supported

Input
classNamestring
OutputString
wrapInTextIfNeeded()

NB: figure out a way to do the styles of the text right.

Input
children{ }
Output
🔹 SvgType

Properties:

NameTypeDescription
srcobject
width (optional)number
height (optional)number
className (optional)string
style (optional)object
📄 getTailwindModules (exported const)
📄 I (exported const)
📄 joinClassNames (exported const)
📄 Ol (exported const)
📄 Pressable (exported const)

button on web, pressable on react-native

📄 Select (exported const)
📄 TouchableOpacity (exported const)

button on web, pressable on react-native

📄 trimClassName (exported const)

in react-native not all classNames are supported

📄 wrapInTextIfNeeded (exported const)