Carlos Fernández
Software Developer @ Málaga
Carlos Fernández Llamas
Development Advisor @ Plain Concepts
React
React Native
React-DOM
JavaScriptCore
Operating System
*JS Engine
WebView
Native Android UI
Native iOS UI
Sin depuración
Con depuración
JavaScriptCore
V8
fetch('https://mywebsite.com/endpoint/', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
firstParam: 'yourValue',
secondParam: 'yourOtherValue',
})
})
<TouchableOpacity
accessible={true}
accessibilityLabel={'Tap me!'}
onPress={this._onPress}>
<View style={styles.button}>
<Text style={styles.buttonText}>
Press me!
</Text>
</View>
</TouchableOpacity>
// __tests__/sum-test.js
jest.dontMock('../sum');
describe('sum', function() {
it('adds 1 + 2 to equal 3', function() {
var sum = require('../sum');
expect(sum(1, 2)).toBe(3);
});
});
<Animated.Image
source={{uri: 'http://.../img.jpg'}}
style={{
flex: 1,
transform: [
{scale: this.state.bounceValue},
]
}}
/>
...
this.state.bounceValue.setValue(1.5);
Animated.spring(
this.state.bounceValue,
{
toValue: 0.8,
friction: 1,
}
).start();
Carlos Fernández Llamas
Development Advisor @ Plain Concepts
By Carlos Fernández
Charla de React Native para BilboStack 2016