Data dodania Pytanie
2017-11-30 07:11 multiple normalizer in redux form »
I want to pass multiple functions for normalizing redux fields, is there a way to do so? like we pass a array in validation prop? validate={[alphanum...
(1) odpowiedzi
2017-11-29 16:11 React portal: host multiple inside same domNode parent? »
React has recently added Portal feature, effectively ripping a sub-tree of virtual DOM out and placing it elsewhere in physical DOM. render() { // ...
(0) odpowiedzi
2017-11-29 15:11 How to set property in React state array of objects »
I have 2 React components Memory and children MemoryShape At the Memory component i have method newGame which setting 4 random MemoryShapes to the pu...
(2) odpowiedzi
2017-11-29 10:11 ReactJS - Can anyone explain how and why this state is being altered? »
I am attempting to make Conway's Game of Life with React. I have an array of boolean values representing the grid in state, and then render an "alive"...
(2) odpowiedzi
2017-11-28 22:11 How to make post request using react,redux and axios? »
I am new to React JS and Redux and I must tell you that it has been too overwhelming to get going. I am trying to make a POST request using axios. But...
(3) odpowiedzi
2017-11-28 21:11 do you need to explicitly bind a function? »
I have a function called multiply and a component called NumberInputField when I pass the function to the component I use: <NumberInputField id='1...
(2) odpowiedzi
2017-11-28 17:11 Redirect to previous route after a login success »
I am having a hell of a time trying to understand the best way to do this and where to even handle this redirect at. I found an example of creating a...
(1) odpowiedzi
2017-11-27 18:11 Map with bootstrap columns »
I'm using map to iterate throug a list of elements, what I want is to have 4 elements per row. This is my render part of the class: render() { re...
(1) odpowiedzi
2017-11-27 14:11 Datatables selected rows are deselected if calling props function »
I have a datatable with the following constructor: var table = $('.select-samples-list').DataTable({ paging: false, dom: 'Bfr...
(0) odpowiedzi
2017-11-27 10:11 ReactJS: e.preventDefault() is not a function »
I'm making a simple todo app, where i have put in the logic to edit and delete the todos as well. I'm trying to update the parent state from child com...
(3) odpowiedzi
2017-11-27 03:11 Can i still use expo after i detach my react native app? »
I want to use expokit and also other native library, how can i do this? Do i need to start my app using create-react-native-app and then detach it or...
(0) odpowiedzi
2017-11-26 22:11 Why mapStateToProps and mapDispatchToProps are not just one function in Redux? »
Could someone explain to me what are the reasons why Redux has two functions mapStateToProps and mapDispatchToProps that both add props to a container...
(1) odpowiedzi
2017-11-26 22:11 Static images with Webpack not loading »
I am working with React using Webpack and I am having trouble getting static images to load. The loader seems to be correctly converting the image to ...
(2) odpowiedzi
2017-11-26 04:11 React Navigation Header change with screen »
I have a StackNavigation and want a default Header (component Header) and want that "deep pages" shows up with the default header generated for the Re...
(1) odpowiedzi
2017-11-26 02:11 Properly call/fetch information »
I could use some guidance/nudge/light on an issue i’m having. I am trying to figure out a way to create fetchUserImg, so that it can display user p...
(2) odpowiedzi
2017-11-25 20:11 Moment.js giving Incorrect Difference between 2 Dates »
I am using moment.js in my React app with the following code to find the difference between 2 unix timestamps: import Moment from 'moment'; Moment.d...
(1) odpowiedzi
2017-11-25 20:11 Unable to setItem in AsyncStorage »
I'm unable to setItem with AsyncStorage. Following is my code. So I'm getting the name in state from a TextInput and then want to store it in AsyncSto...
(2) odpowiedzi
2017-11-25 17:11 Animatable Re-render animation React Native »
I have an action bar with icons functioning as buttons as per this gif: The animation works when the app loads, but when I click a button, and new ...
(1) odpowiedzi
2017-11-25 16:11 React this.state undefined array »
I have an issue with React. I have an array that I pass to this.state. But I'm facing an issue, I can't access to the sub-elements in the array. In my...
(1) odpowiedzi
2017-11-24 16:11 When user is not logged in redirect to login. Reactjs »
My App looks like: class App extends Component { render() { <Router> <div> <Route exact path='/login' component={Log...
(1) odpowiedzi
2017-11-24 14:11 Reactjs: update specific row »
I would like suggestions on the most efficient way to implement a price / depth ladder GUI in Reactjs. Each ladder represents a single stock and eac...
(1) odpowiedzi
2017-11-24 11:11 Chat widget with react.js »
I am writing a chat widget, that would be distributed to the end users with little code to put in their website. Usual routine. My widget is going t...
(0) odpowiedzi
2017-11-24 11:11 Why are React props immutable? »
I've been reading React's Quick Start documentation; Whether you declare a component as a function or a class, it must never modify its own props ...
(3) odpowiedzi
2017-11-23 23:11 React Native passing Component/Object property to OnPress function »
Just started learning React Native and running into some basic issues. I am using the React-native-draggable component, and I would like to use the p...
(1) odpowiedzi
2017-11-23 10:11 Handle form props of a redux-form stylised with material-ui »
I'm trying to create a login form that makes a API call who returns a token. I'm new with react and redux so to do that I followed this tutorial. Th...
(1) odpowiedzi
2017-11-23 04:11 How to add shadow to `<View>` like normal tab bar »
This is my custom NavBar using <View> Can I add bottom shadow like normal react-navigation bar (like image below)? Adding shadow seems dif...
(1) odpowiedzi
2017-11-22 13:11 How to mirror AND resize the part of image with fixed width and height »
I'm building "Tagging from photo" functionality. When the user move or pinch the square on the image, PanResponder changes the state of x-coordin...
(1) odpowiedzi
2017-11-22 10:11 SetState from Child Component fails on React Native »
I have a Child component which triggers a function in the Parent component. Although the function is triggered, the setState method seems to throw the...
(3) odpowiedzi
2017-11-22 07:11 How to remove element when clicking outside the element in javascript? »
I have created a dropdown menu for my web app and when clicking on a icon i'm opening my dropdown menu. I want to remove the dropdown menu when i clic...
(2) odpowiedzi
2017-11-22 06:11 React - Adding component in Map function not adding »
I want to add components into the dom through using the map function over an array. {books.map((book) => <Book/>)} However, it is not adding...
(3) odpowiedzi
2017-11-21 20:11 HTML script is loading AFTER react components »
My index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" co...
(2) odpowiedzi
2017-11-21 15:11 Elixir/Erlang: How to find the source of high CPU usage? »
My Elixir app is using about 50% of the CPU, but it really should only be using <1%. I'm trying to figure out what is causing the high CPU usage an...
(1) odpowiedzi
2017-11-21 10:11 Check history previous location before goBack() react router v4 »
My goal is to enable a "Go Back" button, but only if the route/path the user would go back to is in a certain category. More precisely I have two ki...
(1) odpowiedzi
2017-11-20 21:11 Authentication and Session management in react-native apps »
I've been looking at solutions for authenticating users on react-native based apps. I've come across things like Firebase and JSON web tokens, howeve...
(1) odpowiedzi
2017-11-20 21:11 progress[value] style with react »
I want a progressbar, which is a multibar. Looks like this: [----------][----50% ][ ] [---20% ][ ][ ] [----------][----...
(2) odpowiedzi