Comments (7)
Hi Matthew,
The text input requires you to manage its state yourself, see the React Native TextInput documentation here: https://facebook.github.io/react-native/docs/textinput (the onChangeText
prop).
from backpack.
I can assure you I have not changed anything in my implementation. It has been working when I was using sdk27. I can provide more environment information if needed.
from backpack.
More environment information would be good, thanks. Do you have some sample code I can look at too? We can't really help you without more details and code.
from backpack.
{
"devDependencies": {
"babel-preset-expo": "^5.0.0",
"babel-preset-react-native": "^5.0.2",
"jest-expo": "31.0.0",
"react-native-bpk-component-button": "^7.1.1",
"react-native-bpk-component-card": "^1.2.35",
"react-native-bpk-component-flat-list": "^1.0.18",
"react-native-bpk-component-horizontal-nav": "^3.0.23",
"react-native-bpk-component-text": "^2.1.43",
"react-native-bpk-component-text-input": "^3.0.6",
"react-native-scripts": "1.14.0",
"react-test-renderer": "16.3.1"
},
"rnpm": {
"assets": [
"./node_modules/bpk-svgs/dist/font"
]
},
"main": "./node_modules/expo/AppEntry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "jest"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"axios": "^0.18.0",
"deps": "^0.1.2",
"expo": "^31.0.2",
"moment": "^2.22.2",
"react": "16.5.0",
"react-dom": "^16.6.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-bpk-component-icon": "^1.9.2",
"react-native-calendar-select": "^0.1.2",
"react-native-camera-roll-picker": "^1.2.3",
"react-native-device-info": "^0.22.2",
"react-native-gifted-chat": "^0.4.3",
"react-native-linear-gradient": "^2.4.0",
"react-native-modalbox": "^1.6.0",
"react-native-nav": "^2.0.2",
"socket.io-client": "^2.1.1"
}
}
from backpack.
Does it work if you use the built-in TextInput
from React Native? The Backpack version largely uses the same props and just adds styling and validation so it should be easy to switch it out.
from backpack.
TextInput in React Native works. How would I style the TextInput to look like the one in Backpack?
from backpack.
Here's the styles we use: https://github.com/Skyscanner/backpack/blob/master/native/packages/react-native-bpk-component-text-input/src/styles.js
If you send over the actual code you're using I can try and replicate the issue and figure out what's wrong, but I can't help you any more without that.
from backpack.
Related Issues (20)
- An in-range update of husky is breaking the build 🚨 HOT 1
- An in-range update of react-slider is breaking the build 🚨
- An in-range update of eslint_d is breaking the build 🚨 HOT 1
- An in-range update of babel7 is breaking the build 🚨 HOT 1
- An in-range update of yaml is breaking the build 🚨 HOT 1
- [bpk-component-datepicker] /bpk-component-calendar/src/BpkCalendarContainer.js: Support for the experimental syntax 'classProperties' isn't currently enabled (102:21) HOT 1
- Support projects not using scss HOT 2
- [bpk-component-horizontal-nav]/[bpk-mixins] using incompatible shadow styles for React Native HOT 3
- Test HOT 1
- Split of React Native and React components? HOT 3
- Start using react 17 HOT 3
- No bpk-component-switch in the readme? HOT 2
- Error while installing calendar component HOT 1
- Add React.forwardRef to enable ref in BpkButton?
- [feature request] Add holiday highlight in bpk-calendar HOT 2
- problem with typing in BpkButton.js HOT 17
- SyntaxError: Unexpected token 'export' HOT 2
- Mini StackBlitz (or similar) demo request HOT 6
- Extract the in Web UI price of individual fligths when there's 1 or multiple stops HOT 2
- "Sass Loader Error: <Brief Description>" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backpack.