score:4
Accepted answer
i can confirm it works on ios and does not on android (at least for react native 0.14.2).
this issue was submitted a few days ago (see https://github.com/facebook/react-native/issues/3742).
it should be fixed, but only in the latest prerelease version (v0.15.0-rc).
score:4
add your style to your textinput component and it would work i guess!
render: function() {
return (
<view>
<textinput
style={styles.creditinput}
placeholder='add credit'
placeholdertextcolor='ffffff'
textalign='center'
/>
</view>
);
},
var styles = stylesheet.create({
creditinput: {
backgroundcolor: "#3f51b5",
color: "#ffffff", //expecting this to change input text color
},
Source: stackoverflow.com
Related Query
- Changing textColor of <TextInput/> in ReactNative
- ReactNative TextInput not letting me type
- improve setState with TextInput or Pickers in React & ReactNative & ES6
- A component is changing an uncontrolled input of type text to be controlled error in ReactJS
- React - changing an uncontrolled input
- React: trigger onChange if input value is changing by state?
- Changing font family of all MUI components
- Material UI Select Component- A component is changing a controlled input of type text to be uncontrolled
- Figuring out how to mock the window size changing for a react component test
- Changing style of a button on click
- React-native how to move screen up on textinput
- A component is changing an uncontrolled Autocomplete to be controlled
- React & Jest, how to test changing state and checking for another component
- Redux reducers -- changing deeply-nested state
- Changing height of react-select component
- ReactJS Warning: TextField is changing an uncontrolled input of type text to be controlled
- Changing the order of Grid Item stacking in material-ui
- How to validate TextInput values in react native?
- Changing the document title in React?
- Dynamically changing number of columns in React Native Flat List
- React a component is changing an uncontrolled input of type checkbox to be controlled
- Material-UI changing the color of inputs floating label
- React changing props on grandchildren: object is not extensible / tree traversing react children
- React i18next and correct way of changing language
- React Router Without Changing URL
- Changing state on route change Next.js
- How to include TouchableOpacity within Text ReactNative
- React-native programmatically scrolling multiline TextInput
- How to load local text file into string variable in ReactNative Project?
- MobX: Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed
More Query from same tag
- On first launch choose language React Native
- How to prevent re-render of parent route using React-Router and Framer Motion?
- Separating Material UI in Vite (Rollup) as a manual chunk to reduce chunk size
- How do I implement the delete functionality as mentioned below?
- Empty object being sent to DB
- React-Native Invariant Violation: Element type is invalid
- In Reactjs how to insert api data into ant design table
- React unexepected token on a conditional HTML link
- CRA - window object is undefined - jest/react
- Cannot call callback functions on setState in componentDidMount ?? - React
- Gatsby navigate returns an array while passing data
- How to call async method inside non-async with await?
- example on how and when to use focus in react
- React production build in a meteor app
- Can't import JSON in react
- Why is the cancelledPromise pattern considered better than the isMounted() "antipattern" in React?
- Dynamically change width depending on value
- Is there a way to pass/iterate an array as a style attribute in React?
- MUI Autocomplete change selected option when another field changes
- React testing library Router tests not passing when following RTL's own guide
- React/Redux component does not re-render
- How to implement shallow array copy in mobx
- JS (and maybe React): Is this "find" method actually returning a reference to the array value?
- How to keep componentWillUpdate from causing an infinite loop?
- synchronous operation in componentDidMount()
- TypeScript: Interface cannot simultaneously extends two types
- Wrong onChange event validation in React component
- Updating a React state variable throws cross-origin error
- Headless Chrome to Execute Javascript
- redux-saga: Cancelling multiple tasks of the same action type / saga