Code Monkey home page Code Monkey logo

react-native-elements-app's Introduction

react-native-elements

Cross Platform React Native UI Toolkit



Installation

npm install @rneui/themed @rneui/base

Follow these instructions to install React Native Elements!

Packages

Package Version Downloads
@rneui/base badge npm
@rneui/themed badge npm

Quick Start

Start using the components or try it on Snack.

import { Button } from '@rneui/base';

const App = () => <Button title="Hello World!" />;

React Native Web support

As a cross platform UI Toolkit, you can now use RNE on the web & share your codebase between your React Native + React web apps. RNE components are rendered perfectly on browser. You can achieve this to target iOS, Android and Web by collaborating RNE and React Native for Web.

Click here for a full walkthrough using React Native Elements + React Native Web.

Expo demo app

Checkout the official React Native Elements App on Expo which uses all of the React Native Elements components.

If you are looking to contribute to the React Native Elements App, here to view the implementation & Use this command to start example app locally

yarn example:start

VS Code Extension

Install the React Native Elements VS Code Extension to speed up development.

Documentation

View the full docs here

Contributing

Interested in contributing to this repo? Check out our Contributing Guide, Setup Guide and submit a PR for a new feature/bug fix.

A big shoutout to all our contributors! You could be here too!

First Contributors

We encourage everyone to contribute & submit PR's especially first-time contributors. Look for the label Good First Issue on the issues. Click here to see them.

If there is something you's like to see or request a new feature, please submit an issue or a pull request.

Community

  • Discord - In case you have any other question or would like to come say Hi! to the RNE community, join our Discord Server. See you on the other side! ๐Ÿ‘‹๐Ÿ˜ƒ

  • Twitter - Follow us on Twitter to get the latest updates.

Backers

Become a backer and show your support for React Native Elements.

React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer

Sponsors

Do you use React Native Elements in production? If so, consider supporting this project as it will allow the maintainers to dedicate more time to maintaining this project and also building new features for everyone. Also, your app or company's logo will show on GitHub and link to your website - who doesn't want a little extra exposure? Here's the info. Check our sponsors on website.

React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer

react-native-elements-app's People

Contributors

aashu0148 avatar abhishek765 avatar abhishekkumar08 avatar arpitbhalla avatar ashwiniyer176 avatar binoy14 avatar dabit3 avatar dependabot[bot] avatar dhananjayan-pn avatar diegogoding avatar dustinromey avatar esbenvb avatar flyingcircle avatar hariacidreign avatar haruelrovix avatar iroachie avatar jonathana avatar khushal87 avatar martinezguillaume avatar monte9 avatar nishargshah avatar oxyii avatar pranshuchittora avatar saxenanihal95 avatar shant24k avatar smellman avatar tingzhouu avatar tristanbbq avatar xavier-villelegier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-elements-app's Issues

Not working react-native-elements with web

./node_modules/@react-navigation/native/dist/Scrollables.js
Module not found: Can't resolve 'react-native-gesture-handler' in 'C:\xampp\htdocs\react\native\react-native-elements-app\node_modules@react-navigation\native\dist'

So can you help me to manage to react native

Need to toggle sidemenu twice after closing.

isOpen flag is not marked as false on closed.

Steps:

  1. Launch app.
  2. Open side menu by pressing hamburger icon.
  3. Close side menu by tapping anywhere outside the sidemenu.
  4. Press hambuger icon.

Expected result:
Sidemenu opens.

Actual result:
Sidemenu remain closed.

Fonts/Entypo.ttf not found.

E:/Wokspace/REACTNATIVE_WORKSPACE/react-native-elements-app/src/helpers/vector-fonts.web.js
Module not found: Can't resolve '@expo/vector-icons/src/vendor/react-native-vector-icons/Fonts/Entypo.ttf' in 'E:\Wokspace\REACTNATIVE_WORKSPACE\react-native-elements-app\src\helpers'

Navigating using the DrawerNavigator

It's funny because if I navigate to the middle tab, then use the DrawerNavigator to navigate to the "profile" and then use the DrawerNavigator again to navigate to "components" then the app crashes with an error message about the routing.

npm install doesn't work

Running npm install takes about 15 minutes and finally fails with only .stage under node_modues.

error code EINTEGRITY 12596 error sha512....

Any thoughts?

image

Tried couple of versions. Now trying with :
node 6.11.3 - npm 4.6.1

Button's onPress cannot call a lass as a function

Hello,

I expect button will open another screen.

I create a test program to call another class using button's onPress.
But it failed with error(cannot call a lass as a function).

<Button
small
backgroundColor={socialColors.facebook}
onPress={() => Home1()}
title='Information'
buttonStyle={styles.button} />

How can I call class Button's onPress?

Or class has to change to function?

Any suggestion will be appreciated.

Thanks,
Shoji

dispatch is undefined

./homerootcontainer
inject a dispatch
`function mapDispatchToProps (dispatch) {
return {dispatch}
}
export default connect(mapStateToProps, mapDispatchToProps)(HomeNav);

./Home
`componentDidMount() {
const { dispatch }=this.props;
console.log(typeof(dispatch));return;

}

typeof dispatch is undefined.

How can do?

Error when run-ios

Hi, I got an error like this when I try to run-ios, any idea what's going on here? many thanks.

View has no propType for native prop RCTView.flexGrow of native type float
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.

verifyPropTypes
verifyPropTypes.js:58
requireNativeComponent
requireNativeComponent.js:90

View.js:509
loadModuleImplementation
require.js:122

AppContainer.js:20
loadModuleImplementation
require.js:122

renderApplication.js:15
loadModuleImplementation
require.js:122

AppRegistry.js:19
loadModuleImplementation
require.js:122

index.ios.js:18
loadModuleImplementation
require.js:122
guardedLoadModule
require.js:58
global code
require-0.js:1

tab section call Navigator , is it a problem?

hello,

Using react-native-hackathon-starter, I incorporated one application into this environment.
my application is calling Navigator in render section.
I wonder this kind of using Navigator will make a problem or not.
I did not study deeply both environment.

Currently my application seems to works without error.

I 'm afraid futures problem.

Any suggestion appreciated.

Thanks
Shoji

Build Failed

** BUILD FAILED **


The following build commands failed:
    CompileC /Users/infacq/Documents/react-native-hackathon-starter/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocket.o RCTSRWebSocket.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/HackathonStarter.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/HackathonStarter.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Document if and how fonts.js is being used

I'd love to know if and how the src/config/font.js file is being used. Is it possible to use something like this system-wide using ThemeProvider or similar?

I don't see any mention of this file in the documentations.

Create a subview

If I want to create a "subview", say every person in the list from the list view should have a detailed view when the user is clicked, I could create such a view for elements in the list, but if I open the detailed view then there is not tabbed view and if I swipe left to right and open the drawer from the detailed view then I get an error message about no route for the view.


Error: There is no route defined for key ButtonsTab.
Must be one of: 'Home','Lists_Detail','Details','navigationOptions'

This error is located at:
    in DrawerView (at DrawerNavigator.js:88)
    in Unknown (at createNavigator.js:13)
    in Navigator (at createNavigationContainer.js:226)
    in NavigationContainer (at renderApplication.js:35)
    in RCTView (at View.js:78)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:78)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:34)
getScreenForRouteName

Unable to resolve "react-navigation" from "App.js"

I get Unable to resolve "react-navigation" from "App.js" after a clean install. If I install it via: npm install react-navigation I then get an error in the expo that says: Expo Developer Tools is disconnected from Expo CLI. Use the expo start command to start the CLI again. If I uninstall react-navigation the Expo error goes away but the app then shows the original unable to resolve error. React npm expo all installed within the last few days and all the latest versions as far as I know.

Toggle Switches don't change

Explain what you did
I've been playing with the demonstration app using my Huawei Mate 10 Pro via Expo. On the Component form the binary toggle switch and the segmented control do not change when pressed.

Expected behaviour
I expect the input state to change

Describe the bug
Pressing the toggle switch just flashes, its state does not change (visually at least)

This effects

  • Toggle Switch
  • Segmented Control
  • Checkbox

To Reproduce
Open the demo app on Expo, scroll down to the Switch row on the Components view. Tap it!

Possible Solution
Can you suggest a possible fix that would address this issue?

Screenshots
If applicable, add screenshots to help explain your problem.

Your Environment (please complete the following information):

Huawei Mate 10 Pro
Android 8.0.0

react-native-elements issue

Hi
I am cloning the same code of your git and import visual studio and install "npm install --save" then go to run "yarn start" it is running but it is showing below issue please solve this my problem Sir

Screenshot from 2019-11-15 12-25-26

Post Install Fail

I have tried cloning and doing an npm i on the directory and this is what I get:

[email protected] postinstall /Users/blainehuff/Documents/Projects/demario/react-native-elements-app

git submodule update

fatal: destination path '/Users/blainehuff/Documents/Projects/demario/react-native-elements-app/node_modules/react-native-elements' already exists and is not an empty directory.
fatal: clone of '[email protected]:react-native-training/react-native-elements.git' into submodule path '/Users/blainehuff/Documents/Projects/demario/react-native-elements-app/node_modules/react-native-elements' failed
Failed to clone 'node_modules/react-native-elements'. Retry scheduled
fatal: destination path '/Users/blainehuff/Documents/Projects/demario/react-native-elements-app/node_modules/react-native-elements' already exists and is not an empty directory.
fatal: clone of '[email protected]:react-native-training/react-native-elements.git' into submodule path '/Users/blainehuff/Documents/Projects/demario/react-native-elements-app/node_modules/react-native-elements' failed
Failed to clone 'node_modules/react-native-elements' a second time, aborting
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: git submodule update
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/blainehuff/.npm/_logs/2018-05-14T02_01_51_246Z-debug.log
2018-05-14T02_01_51_246Z-debug.log

Slow android tab changes

Hey,

I am playing with the app on iPhone 7 and Nexus 5X. On both devices I have installed the app via Expo.

On iPhone the app is working decently, but on Nexus its quite slow. I wonder what's the reason.

  • is it navigation lib slow?
  • is it because of the expo?
  • react-native-elements are too heavy?

I am looking for a right tech stack for the app I plan to build and I am confused with the performance issues of the demo app.

Video clip where I recorded how slow the app on Nexus is: http://take.ms/gi6ET

Build Failed

Unable to resolve module HSText from react-native-hackathon-starter/src/home/Home.js in its module map

Failure while building JavaScript bundle

While trying to run the app by doing npm start after performing npm install, Expo fails to build the JavaScript bundle and I get the following error message:

Unable to resolve "react-native-screens" from "node_modules/react-navigation-stack/lib/module/views/StackView/StackViewCard.js"

Installing react-native-screens as a dependency by doing expo install react-native-screens seems to have fixed the issue.

Extremely slow on real iOS10 device

Dear all,

I've been running this project on real device, but faced an extremely slow response while clicking side menu and the 3rd tabbar. It looks like it's "rendering" a real large UI set.

Device: iPhone 6s
OS: iOS 10
Toolchain: XCode 8 (Didn't change compile flags)

AppRootContainer called from ios but Android where?

Hello react-native-hackathon-starter,

I'm just studying this APL, and have one question.

AppRootContainer is called in IOS as follows.

import AppRootContainer from './src/AppRootContainer'
const Rera = () => (

)

but I can't see the point where AppRootContainer is called in Android.

in Android environment, Please explain the structure of this?

Thanks
Shoji

Maintain a expo-free branch

Re #64, #49, it is clear that people have difficulties using this app without expo.

Is there any interests having a branch with expo removed?
I could prepare a PR if needed.

Hide Tabs?

I'm pushing a new route, and wondering how I might hide the Tab Bar in certain routes?

Error with expo 34.0.0

Please provide an updated example of the demo app with the latest expo version 34.0.0. Actually with this version of demo app if you try to upgrade expo There's a lot of errors.

Fatal error while cloning the git repo

git clone --recursive https://github.com/react-native-training/react-native-elements-app.git
Cloning into 'react-native-elements-app'...
remote: Counting objects: 1308, done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 1308 (delta 57), reused 89 (delta 43), pack-reused 1198
Receiving objects: 100% (1308/1308), 6.00 MiB | 336.00 KiB/s, done.
Resolving deltas: 100% (653/653), done.
Submodule 'node_modules/react-native-elements' ([email protected]:react-native-training/react-native-elements.git) registered for path 'node_modules/react-native-elements'
Cloning into '/Users/yashagarwal/arti/react-native-elements-app/node_modules/react-native-elements'...
Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:react-native-training/react-native-elements.git' into submodule path '/Users/yashagarwal/arti/react-native-elements-app/node_modules/react-native-elements' failed
Failed to clone 'node_modules/react-native-elements'. Retry scheduled
Cloning into '/Users/yashagarwal/arti/react-native-elements-app/node_modules/react-native-elements'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:react-native-training/react-native-elements.git' into submodule path '/Users/yashagarwal/arti/react-native-elements-app/node_modules/react-native-elements' failed
Failed to clone 'node_modules/react-native-elements' a second time, aborting

Input Element Not supported in RNInit App

I started new app from scrach( React native init ) but there input not wotk.
error occured when i implement input.
i think react native elements is the best library in react native.

Environment:-

{
"name": "New app from Start",
"version": "0.0.1",
"private": true,
"rnpm": {
"assets": [
"./assets/fonts"
]
},
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"axios": "^0.18.0",
"moment": "^2.22.2",
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.1",
"react-native-elements": "^0.19.1",
"react-native-linear-gradient": "^2.4.2",
"react-native-screen-orientation": "^1.1.0",
"react-native-vector-icons": "^6.0.2",
"react-navigation": "^2.18.0",
"schedule": "0.4.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
"jest": {
"preset": "react-native"
}
}

Code :-

              <View style={{ backgroundColor: 'transparent', marginTop: SCREEN_HEIGHT / 15 }}>

                <Input
                  placeholder='INPUT WITH ICON'
                  leftIcon={{ type: 'font-awesome', name: 'chevron-left' }}
                />
              </View>

OR

              <View style={{ backgroundColor: 'transparent', marginTop: SCREEN_HEIGHT / 15 }}>

                <Input
                  inputContainerStyle={{
                    borderRadius: 40, backgroundColor: 'rgba(41,122,94,0.4)', borderWidth: 1,
                    borderColor: "transparent", height: SCREEN_HEIGHT / 15, width: SCREEN_WIDTH / 1.3, marginVertical: 10
                  }}
                  maxLength={40} multiline={false}
                  ref={input => this.emailInput = input}
                  onChangeText={(email) => {
                    this.setState({ email: email })
                    this.setState({ email_valid: this.validateEmail(email) })
                    // this._onshow({ text, id, type })
                  }}
                  value={email}
                  // value={this.state.answerArray.hasOwnProperty(id) ? this.state.answerArray[id] : null}
                  leftIcon={<Icon type='feather'
                    name="mail" color="rgba(63, 174, 135,0.6)" size={SCREEN_HEIGHT / 35} />}
                  iconContainerStyle={{ marginLeft: 30 }} placeholder="Email"
                  placeholderTextColor="rgba(63, 174, 135,0.6)"
                  inputStyle={{ marginLeft: 10, marginRight: 10, color: "white", fontSize: SCREEN_HEIGHT / 41 }}
                  autoCapitalize="none" autoCorrect={false} keyboardAppearance="light"
                  errorStyle={{ textAlign: 'center', fontSize: Fonts.size.regular }}
                  errorMessage={email === "" ? null : email_valid ? null : "Please enter a valid email address"}
                  keyboardType="email-address" returnKeyType="next"
                  onSubmitEditing={() => {
                    this.setState({ email_valid: this.validateEmail(email) });
                    this.otpInput.focus();
                  }} blurOnSubmit={false} />
              </View>

Error :-
err

Not Able to Clone in Windows with CMD terminal or Git Bash

When I try to clone this project, the clone fails as below.


E:\Venkat\Sources\expo>git clone --recursive https://github.com/react-native-training/react-native-elements-app.git
Cloning into 'react-native-elements-app'...
remote: Counting objects: 1289, done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 1289 (delta 46), reused 66 (delta 32), pack-reused 1198
Receiving objects: 100% (1289/1289), 6.00 MiB | 1.63 MiB/s, done.
Resolving deltas: 100% (642/642), done.
Submodule 'node_modules/react-native-elements' ([email protected]:react-native-training/react-native-elements.git) registered for path 'node_modules/react-native-elements'
Cloning into 'E:/Venkat/Sources/expo/react-native-elements-app/node_modules/react-native-elements'...
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:react-native-training/react-native-elements.git' into submodule path 'E:/Venkat/Sources/expo/react-native-elements-app/node_modules/react-native-elements' failed
Failed to clone 'node_modules/react-native-elements'. Retry scheduled
Cloning into 'E:/Venkat/Sources/expo/react-native-elements-app/node_modules/react-native-elements'...
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:react-native-training/react-native-elements.git' into submodule path 'E:/Venkat/Sources/expo/react-native-elements-app/node_modules/react-native-elements' failed
Failed to clone 'node_modules/react-native-elements' a second time, aborting

E:\Venkat\Sources\expo>
E:\Venkat\Sources\expo>ssh-keygen
'ssh-keygen' is not recognized as an internal or external command,
operable program or batch file.

How to eject and run as native on device

Can I eject this project and create a native app that runs with native Android instead of expo?

Or is it only working with the expo?

Edit: I could run it as a native Android app with my Android device after (1) ejecting after adding eject script and (2) adding back node_modules by running npm install and then making a manual gradlew assembleRelease (3) deleted the Expo imports from the code (4) Changing the default script to App.js

Now I can run the thing with my physical Samsung S8 :-)

This project needs an update

Expo says:
This project uses Expo SDK v23.0.0. If you want to open this project, the author will need to update the project's SDK version.

I would like to view this library in Expo to decide if I want to use it.

README proposal

@Monte9 My english is bad, so I'll not change readme )))

I think Build must be before deploy. Something like this:

Build it

(...build instructions, yarn build:ios, ..., yarn build:web ...)

Deploy it

after yarn build:web you can see generated build folder. This folder can be hosted as static website. For example you can publish on Github Pages via gh-pages cli

gh-pages -d build

Note don't forget to add or change "homepage" key in your package.json

...

and bla-bla-bla ....

A warning shows up in regard to nesting VirtualizedLists within plain ScrollViews having the same orientation

The respective warning pops up on launching the application:-

VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.
- node_modules/expo/build/environment/muteWarnings.fx.js:18:23 in warn
- node_modules/react-native/Libraries/Lists/VirtualizedList.js:1054:16 in ScrollView.Context.Consumer.props.children
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:14701:25 in updateContextConsumer
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:20459:25 in beginWork$$1
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:19370:24 in performUnitOfWork
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:19347:39 in workLoopSync
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:18997:22 in renderRoot
* [native code]:null in renderRoot
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:18709:28 in runRootCallback
* [native code]:null in runRootCallback
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:5642:32 in runWithPriority$argument_1
- node_modules/scheduler/cjs/scheduler.development.js:643:23 in unstable_runWithPriority
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:5638:22 in flushSyncCallbackQueueImpl
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:5627:28 in flushSyncCallbackQueue
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:18851:26 in flushSync
- node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:6416:14 in flushSync$argument_0
- node_modules/react-refresh/cjs/react-refresh-runtime.development.js:218:32 in mountedRoots.forEach$argument_0
* [native code]:null in forEach
- node_modules/react-refresh/cjs/react-refresh-runtime.development.js:210:25 in mountedRoots.forEach$argument_0
- node_modules/react-native/Libraries/Core/setUpReactRefresh.js:43:6 in Refresh.performReactRefresh
- node_modules/metro/src/lib/polyfills/require.js:609:10 in setTimeout$argument_0
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:146:14 in _callTimer
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:399:17 in callTimers
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:436:47 in __callFunction
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:111:26 in __guard$argument_0
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:384:10 in __guard
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:110:17 in __guard$argument_0
* [native code]:null in callFunctionReturnFlushedQueue

undefined is not an object (evaluating 'FS.bundledAssets')

RNE demo app won't run due to this error:
undefined
The buggy code is located at node_modules/expo/src/Asset.js:

import { NativeModules, PixelRatio, Platform } from 'react-native';
import AssetRegistry from 'react-native/Libraries/Image/AssetRegistry';
import AssetSourceResolver from 'react-native/Libraries/Image/AssetSourceResolver';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';

import Constants from './Constants';

const FS = NativeModules.ExponentFileSystem;

// Fast lookup check if assets are available in the local bundle.
const bundledAssets = new Set(FS.bundledAssets || []);

The package.json is:

{
  "name": "react-native-elements-app",
  "version": "1.0.0",
  "description": "Demo app for React Native Elements UI Library",
  "author": "Monte Thakkar",
  "private": true,
  "main": "main.js",
  "dependencies": {
    "@expo/vector-icons": "6.3.0",
    "expo": "26.0.0",
    "lodash": "^4.17.4",
    "react": "16.3.0-alpha.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz",
    "react-native-touchable-scale": "2.0.0",
    "react-native-elements": "^1.0.0-beta3",
    "react-native-ratings": "^5.3.0",
    "react-navigation": "1.5.8"
  },
  "scripts": {
    "postinstall": "git submodule update",
    "clean-install":
      "rm -rf node_modules && npm cache clean --force && watchman watch-del-all && npm install"
  }
}

Thanks in advance for considering this issue.

UPDATE:
I created a new project using create-react-native-app and copied the files and faced a new problem:
type

react-native link hangs

the console is stuck after running "react-native link" command

Omri@OMRI-LAPTOP MINGW64 /c/Workspace/CrossPlatform/React-Native-Elements/react-native-hackathon-starter (master)
$ react-native link
rnpm-install info Linking react-native-vector-icons android dependency
rnpm-install info Android module react-native-vector-icons has been successfully linked
rnpm-install info iOS module react-native-vector-icons is already linked
rnpm-install info Linking assets to ios project
rnpm-install info Linking assets to android project
rnpm-install info Assets have been successfully linked to your project

Running on Windows 10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.