One option to consider is utilizing the well-known-flex LayoutController combined with the HeaderFooterLayout for your layout needs.
Here is a snippet of the code to help you get started:
var LayoutController = require('famous-flex/LayoutController');
var HeaderFooterLayout = require('famous-flex/layouts/HeaderFooterLayout');
// Setting up header and content surfaces/views
var header = new Surface(..);
var content = new Surface(..);
// Initializing header-footer layout
var layout = new LayoutController({
layout: HeaderFooterLayout,
layoutOptions: {
headerSize: 40
},
flow: true,
reflowOnResize: false,
dataSource: {
header: header,
content: content
}
});
...
// Adjusting the header height (thanks to flow, it smoothly animates the transition)
layout.setLayoutOptions({
headerSize: 100
});
Get the library here: https://github.com/IjzerenHein/famous-flex