
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-messenger-engine
Advanced tools
A modern, scalable and highly customizable chat engine for React Native.
A modern, scalable, and highly customizable chat engine for React Native.
react-native-messenger-engine provides a modular chat UI architecture with
typed models, grouped messages, date separators, reactions, reply previews, and
an extensible rendering system for building production messaging interfaces.
Example app: dark theme, date separators, reply preview, scroll-to-bottom button.
Header, MessageList, InputToolbar, hooks, utils)renderHeader, renderMessage, renderInputToolbar)npm install react-native-messenger-engine react-native-nitro-modules react-native-keyboard-controller react-native-reanimated react-native-worklets
react-native-nitro-modulesis required because this library uses Nitro Modules.
The package exposes two primary entry points:
MessengerEngine - fully featured React chat containerMessengerEngineView - Nitro host component exportimport React, { useMemo, useState } from 'react';
import { KeyboardProvider } from 'react-native-keyboard-controller';
import {
MessengerEngine,
type ChatInfo,
type Message,
type User,
} from 'react-native-messenger-engine';
export default function App() {
const [messages, setMessages] = useState<Message[]>([]);
const currentUser = useMemo<User>(
() => ({
id: 'u-current',
name: 'You',
}),
[]
);
const chatInfo = useMemo<ChatInfo>(
() => ({
id: 'group-tech',
name: 'Tech Hub',
participants: [{ id: 'u-1', name: 'Alex' }],
isGroup: true,
}),
[]
);
return (
<KeyboardProvider>
<MessengerEngine
chatInfo={chatInfo}
currentUser={currentUser}
messages={messages}
onSendMessage={(text) => {
const newMessage: Message = {
id: String(Date.now()),
type: 'text',
text,
sender: currentUser,
timestamp: new Date(),
status: 'sent',
reactions: [],
};
setMessages((prev) => [newMessage, ...prev]);
}}
/>
</KeyboardProvider>
);
}
Important: wrap app root with
KeyboardProviderfromreact-native-keyboard-controller.
<MessengerEngine
messages={messages}
currentUser={currentUser}
chatInfo={chatInfo}
onSendMessage={handleSend}
groupMessagesByUser
groupMessagesThreshold={300000}
typingUsers={typingUsers}
theme={{
colors: {
primary: '#7c5cff',
background: '#0d0f17',
text: '#eef1ff',
userMessage: '#353c86',
otherMessage: '#1b1f2d',
mutedText: '#8a92af',
inputBackground: '#121726',
separator: '#2a2f43',
secondary: '#202438',
destructive: '#ff5d66',
},
}}
renderHeader={(props) => <CustomHeader {...props} />}
renderMessage={(props) => <CustomMessage {...props} />}
/>
MessengerEngine supports:
messages, currentUser, chatInfoonSendMessage, onSendImage, onSendStickeronMessageLongPress, onReactionAdd, onReplyPressdisableTypingIndicator, disableReactions, disableRepliesgroupMessagesByUser, groupMessagesThresholdrenderHeader, renderMessage, renderInputToolbar, renderDateSeparatorFor full type definitions, see src/types/index.ts.
A runnable demo is included in example/ and already wired to the new chat
components:
yarn example
yarn typecheck
yarn lint
yarn test
MIT
Made with create-react-native-library
FAQs
A modern, scalable and highly customizable chat engine for React Native.
We found that react-native-messenger-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.