
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
stream-chat-react-native-core
Advanced tools
> The official React Native and Expo components for Stream Chat, a service for > building chat applications.
The official React Native and Expo components for Stream Chat, a service for building chat applications.
You can sign up for a Stream account at https://getstream.io/chat/get_started/.
You can find detailed and set-by-step tutorial at https://getstream.io/chat/react-native-chat/tutorial/
You can find the design kit for this project at https://getstream.io/chat/ui-kit/
Library currently exposes following components:
You can see detailed documentation about the components at https://getstream.github.io/stream-chat-react-native
yarn global add expo-cli
expo init StreamChatExpoExample
cd StreamChatExpoExample
yarn add stream-chat-expo
Please check Example to see usage of the components.
OR you can swap this file for your App.js
in the root folder with additional following steps:
yarn add react-navigation
and finally
yarn start
react-native init StreamChatReactNativeExample
cd StreamChatReactNativeExample
yarn add stream-chat-react-native
react-native link @react-native-community/netinfo
# if you are plannign to use image picker or file picker or both
react-native link react-native-image-picker
react-native link react-native-document-picker
Please check Example to see usage of components.
OR you can swap this file for your App.js
in root folder with additional following steps:
yarn add react-navigation
yarn add react-native-gesture-handler
react-native link react-native-gesture-handler
and finally
react-native run-ios
NOTE If you are planning to use file picker functionality, make sure you enable iCloud capability in your app
yarn global add expo-cli
git clone https://github.com/GetStream/stream-chat-react-native.git
cd stream-chat-react-native
make
cd examples/one
yarn start
Please make sure you have installed necessary dependencies depending on your development OS and target OS. Follow the guidelines given on official react native documentation for installing dependencies: https://facebook.github.io/react-native/docs/getting-started#
Make sure node version is >= v10.13.0
Start the simulator
git clone https://github.com/GetStream/stream-chat-react-native.git
cd stream-chat-react-native
make
cd examples/two
react-native run-ios
react-native run-android
When you execute react-native run-ios
for the first time, it starts a metro bundler in parallel. It can result into some errors, since build process isn't complete yet. Try the following to fix this:
yarn start
inside stream-chat-react-native/examples/two
directory.When you execute react-native run-android
, you may (not necessarily) run into following error:
info Starting JS server...
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':@react-native-community_netinfo'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.
To resolve this, do the following
local.properties
inside stream-chat-react-native/examples/two/android
directorysdk.dir=/Users/{user_name}/Library/Android/sdk/
react-native run-android
in stream-chat-react-native/examples/two
directoryFAQs
The official React Native and Expo components for Stream Chat, a service for building chat applications
The npm package stream-chat-react-native-core receives a total of 19,139 weekly downloads. As such, stream-chat-react-native-core popularity was classified as popular.
We found that stream-chat-react-native-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.