
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
expo-dev-client-components
Advanced tools
Shared JS components and configuration for expo-dev-client
A package for sharing React Native components between different dev-client RN apps
import { View, Spacer, Row, useExpoTheme, ChevronRightICon } from 'expo-dev-client-components';
function ExampleRow() {
const theme = useExpoTheme();
return (
<View px="small" py="large">
<Row align="center">
<ChevronRightIcon />
<Spacer.Horizontal size="tiny" />
<Text size="large" style={{ color: theme.text.default }}>
Enter URL manually
</Text>
</Row>
</View>
);
}
create-primitive is a utility that generates a set of themed react-native components.
Features:
import { Text } from 'react-native';
import { create } from './create-primitives';
const Heading = create(Text, {
base: {
fontFamily: 'Helvetica',
},
variants: {
size: {
large: {
fontSize: 28,
lineHeight: 34,
},
medium: {
fontSize: 22,
lineHeight: 28,
},
small: {
fontSize: 18,
lineHeight: 22,
},
},
color: {
success: {
color: 'green',
},
danger: {
color: 'red',
},
},
},
});
This above produces a Heading component that can be used like so:
function App() {
return (
<Heading size="medium" color="success">
Hi
</Heading>
);
}
All of the variants are captured by typescript which makes using them a breeze.
We can extend the Heading component above with selectors:
const Heading = create(RNText, {
variants: {
// ....
},
selectors: {
// when device theme is 'light'...
light: {
color: {
// ...any `Heading` with `color="success"`...
success: {
// ...will have these styles applied
color: 'green',
},
},
},
},
});
You can also pass selectors to primitives for one-off instances where you need a specific style:
function App() {
return (
<View>
<Heading
selectors={{
dark: { color: 'green' },
light: { color: 'blue' },
}}>
Hi
</Heading>
</View>
);
}
You can use any style library you'd like - for example using tailwind for a terser, readable configuration.
import tw from 'somewhere';
import { create } from './create-primitives';
const Heading = create(RNText, {
size: {
large: tw('text-4xl'),
medium: tw('text-3xl'),
small: tw('text-2xl'),
},
weight: {
normal: tw('font-medium'),
heavy: tw('font-semibold'),
},
color: {
success: tw('text-green-500'),
danger: tw('text-red-500'),
},
});
There are no native dependencies exported and so this module should be compatible with any RN project
There are no native dependencies exported and so this module should be compatible with any RN project
Contributions are very welcome! Please refer to guidelines described in the contributing guide.
FAQs
Shared JS components and configuration for expo-dev-client
The npm package expo-dev-client-components receives a total of 838 weekly downloads. As such, expo-dev-client-components popularity was classified as not popular.
We found that expo-dev-client-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.